diff --git a/.rubocop.yml b/.rubocop.yml index ae0a409dcc..3b37c4ec30 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -74,6 +74,9 @@ Style/For: - for - each +Style/NumericLiteralPrefix: + Enabled: false + Style/RegexpLiteral: Description: Use / or %r around regular expressions. StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-r diff --git a/CHANGELOG.md b/CHANGELOG.md index 95ccf6bcf2..b0d969ba3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## HEAD Unreleased ### Bug/Fixes +- [PR #1494](https://github.com/stympy/faker/pull/1494) Fix Faker::Internet.ip_v4_address to include all IP ranges [@lucasqueiroz](https://github.com/lucasqueiroz) - [PR #1456](https://github.com/stympy/faker/pull/1456) fix: omit . from slug [@ivanoblomov](https://github.com/ivanoblomov) - [PR #1436](https://github.com/stympy/faker/pull/1436) Fix regex and add magic string to pass rubocop check [@jakrzus](https://github.com/jakrzus) - [PR #1425](https://github.com/stympy/faker/pull/1425) NHS: fix occasional bad numbers [@ChaoticBoredom](https://github.com/ChaoticBoredom) @@ -20,6 +21,8 @@ - [PR #1310](https://github.com/stympy/faker/pull/1310) Add alias for middle_name and remove locale [@vbrazo](https://github.com/vbrazo) ### Chores +- [PR #1496](https://github.com/stympy/faker/pull/1496) Update yaml format in docs [@SpyMaster356](https://github.com/SpyMaster356) +- [PR #1508](https://github.com/stympy/faker/pull/1508) Changes before release [@vbrazo](https://github.com/vbrazo) - [PR #1490](https://github.com/stympy/faker/pull/1490) Add missing Faker::HeroesOfTheStorm tests [@vbrazo](https://github.com/vbrazo) - [PR #1457](https://github.com/stympy/faker/pull/1457) Add tests for new Faker::Internet.slug glue [@vbrazo](https://github.com/vbrazo) - [PR #1434](https://github.com/stympy/faker/pull/1434) Add keyword argument to Faker::Games::Dota.quote [@vbrazo](https://github.com/vbrazo) @@ -56,6 +59,7 @@ - [PR #803](https://github.com/stympy/faker/pull/803) Modify Faker::Educator, Fix #576 [@ghbooth12](https://github.com/ghbooth12) ### Documentation +- [PR #1497](https://github.com/stympy/faker/pull/1497) add TV Shows to table of contents [@SpyMaster356](https://github.com/SpyMaster356) - [PR #1488](https://github.com/stympy/faker/pull/1488) Fix unreleased docs [@vbrazo](https://github.com/vbrazo) - [PR #1462](https://github.com/stympy/faker/pull/1462) Fix documentation on Faker::Avatar [@mrstebo](https://github.com/mrstebo) - [PR #1445](https://github.com/stympy/faker/pull/1445) Separate README.md: unreleased and latest version [@vbrazo](https://github.com/vbrazo) @@ -72,6 +76,7 @@ - [PR #1329](https://github.com/stympy/faker/pull/1329) Update docs on behavior of price [@softwaregravy](https://github.com/softwaregravy) ### Feature Request +- [PR #1493](https://github.com/stympy/faker/pull/1493) Add Faker::Books::CultureSeries [@richardbulger](https://github.com/richardbulger) - [PR #1489](https://github.com/stympy/faker/pull/1489) Format brazilian_company_number and brazilian_citizen_number [@jpkarvonen](https://github.com/jpkarvonen) - [PR #1487](https://github.com/stympy/faker/pull/1487) Add Faker::TvShows::TheExpanse [@jpkarvonen](https://github.com/jpkarvonen) - [PR #1475](https://github.com/stympy/faker/pull/1475) Adds Faker::Nation.flag [@JonathanWThom](https://github.com/JonathanWThom) @@ -127,6 +132,10 @@ - [PR #1246](https://github.com/stympy/faker/pull/1246) Store list of generators with enabled uniqueness for faster clear [@MarcPer](https://github.com/MarcPer) ### Update/add locales +- [PR #1492](https://github.com/stympy/faker/pull/1492) Fix abbreviation for Osten [@sonOfRa](https://github.com/sonOfRa) +- [PR #1499](https://github.com/stympy/faker/pull/1499) Adds some items on pt-BR locales seniority and education levels. And removes duplicated items from cities list. [@ramonlg](https://github.com/ramonlg) +- [PR #1501](https://github.com/stympy/faker/pull/1501) fix asajj_ventress alternate name [@ethan-dowler](https://github.com/ethan-dowler) +- [PR #1502](https://github.com/stympy/faker/pull/1502) Add support for Armenian language [@hovikman](https://github.com/hovikman) - [PR #1486](https://github.com/stympy/faker/pull/1486) Added some professions in company.yml [@ReneIvanov](https://github.com/ReneIvanov) - [PR #1474](https://github.com/stympy/faker/pull/1474) Fr format and translation [@maxime-lenne](https://github.com/maxime-lenne) - [PR #1468](https://github.com/stympy/faker/pull/1468) Update "Black Pink" to "Blackpink" [@agungyuliaji](https://github.com/agungyuliaji) diff --git a/doc/v1.9.2/blockchain/bitcoin.md b/doc/v1.9.2/blockchain/bitcoin.md new file mode 100755 index 0000000000..512e8741aa --- /dev/null +++ b/doc/v1.9.2/blockchain/bitcoin.md @@ -0,0 +1,7 @@ +# Faker::Blockchain::Bitcoin + +```ruby +Faker::Blockchain::Bitcoin.address #=> "1HUoGjmgChmnxxYhz87YytV4gVjfPaExmh" + +Faker::Blockchain::Bitcoin.testnet_address #=> "msHGunDvoEwmVFXvd2Bub1SNw5RP1YHJaf" +``` diff --git a/doc/v1.9.2/blockchain/ethereum.md b/doc/v1.9.2/blockchain/ethereum.md new file mode 100755 index 0000000000..6e03aa0a63 --- /dev/null +++ b/doc/v1.9.2/blockchain/ethereum.md @@ -0,0 +1,7 @@ +# Faker::Blockchain::Ethereum + +Available since version 1.9.0. + +```ruby +Faker::Blockchain::Ethereum.address #=> "c38bbc8e93c09f6ed3fe39b5135da91ad1a99d397ef16948606cdcbd14929f9d" +``` diff --git a/doc/v1.9.2/blockchain/tezos.md b/doc/v1.9.2/blockchain/tezos.md new file mode 100644 index 0000000000..8cd53c3eeb --- /dev/null +++ b/doc/v1.9.2/blockchain/tezos.md @@ -0,0 +1,13 @@ +# Faker::Blockchain::Tezos + +It might be available in the next version. + +```ruby +Faker::Blockchain::Tezos.account #=> "tz1eUsgK6aj752Fbxwk5sAoEFvSDnPjZ4qvk" + +Faker::Blockchain::Tezos.contract #=> "KT1MroqeP15nnitB4CnNfkqHYa2NErhPPLWF" + +Faker::Blockchain::Tezos.operation #=> "onygWYXJX3xNstFLv9PcCrhQdCkENC795xwSinmTEc1jsDN4VDa" + +Faker::Blockchain::Tezos.signature #=> "edsigu165B7VFf3Dpw2QABVzEtCxJY2gsNBNcE3Ti7rRxtDUjqTFRpg67EdAQmY6YWPE5tKJDMnSTJDFu65gic8uLjbW2YwGvAZ" +``` diff --git a/doc/v1.9.2/books/book.md b/doc/v1.9.2/books/book.md new file mode 100644 index 0000000000..c3dee2ce9a --- /dev/null +++ b/doc/v1.9.2/books/book.md @@ -0,0 +1,15 @@ +# Faker::Book + +```ruby +# Random Book Title +Faker::Book.title #=> "The Odd Sister" + +# Random Author +Faker::Book.author #=> "Alysha Olsen" + +# Random Publisher +Faker::Book.publisher #=> "Opus Reader" + +# Random Genre +Faker::Book.genre #=> "Mystery" +``` diff --git a/doc/v1.9.2/books/culture_series.md b/doc/v1.9.2/books/culture_series.md new file mode 100644 index 0000000000..eefb375340 --- /dev/null +++ b/doc/v1.9.2/books/culture_series.md @@ -0,0 +1,15 @@ +# Faker::Books::CultureSeries + +```ruby +Faker::Books::CultureSeries.book #=> "The Player of Games" + +Faker::Books::CultureSeries.culture_ship #=> "Fate Amenable To Change" + +Faker::Books::CultureSeries.culture_ship_class #=> "General Systems Vehicle" + +Faker::Books::CultureSeries.culture_ship_class_abv #=> "GSV" + +Faker::Books::CultureSeries.civ #=> "Culture" + +Faker::Books::CultureSeries.planet #=> "Xinth" +``` diff --git a/doc/v1.9.2/books/dune.md b/doc/v1.9.2/books/dune.md new file mode 100644 index 0000000000..eb4ca66288 --- /dev/null +++ b/doc/v1.9.2/books/dune.md @@ -0,0 +1,19 @@ +# Faker::Books::Dune + +### A Faker module beyond your dreams, test data beyond your imagination. + +```ruby +Faker::Books::Dune.character #=> "Leto Atreides" + +Faker::Books::Dune.title #=> "Duke" + +Faker::Books::Dune.planet #=> "Caladan" + +Faker::Books::Dune.quote #=> "A dead man, surely, no longer requires that water." + +Faker::Books::Dune.quote("baron_harkonnen") #=> "He who controls the spice, controls the universe!" + +Faker::Books::Dune.saying #=> "You do not beg the sun for mercy." + +Faker::Books::Dune.saying("fremen") #=> "May thy knife chip and shatter." +``` diff --git a/doc/v1.9.2/books/lovecraft.md b/doc/v1.9.2/books/lovecraft.md new file mode 100644 index 0000000000..a73b33e233 --- /dev/null +++ b/doc/v1.9.2/books/lovecraft.md @@ -0,0 +1,41 @@ +# Faker::Books::Lovecraft + +```ruby +Faker::Books::Lovecraft.fhtagn #=> "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn" +Faker::Books::Lovecraft.fhtagn(3) #=> "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn. Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn. Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn" + +Faker::Books::Lovecraft.deity #=> "Shub-Niggurath" + +Faker::Books::Lovecraft.tome #=> "Book of Eibon" + +Faker::Books::Lovecraft.location #=> "Kingsport" + +Faker::Books::Lovecraft.word #=> "furtive" + +# Optional arguments: word_count=4, random_words_to_add=6 +Faker::Books::Lovecraft.sentence #=> "Furtive antiquarian squamous dank cat loathsome amorphous lurk." +Faker::Books::Lovecraft.sentence(3) #=> "Daemoniac antediluvian fainted squamous comprehension gambrel nameless singular." +Faker::Books::Lovecraft.sentence(3, 1) #=> "Amorphous indescribable tenebrous." + +# Optional arguments: num=3, spaces_allowed = false +Faker::Books::Lovecraft.words #=> ["manuscript", "abnormal", "singular"] +Faker::Books::Lovecraft.words(2) #=> ["daemoniac", "cat"] +Faker::Books::Lovecraft.words(2, true) #=> ["lurk", "charnel"] + +# Optional arguments: sentence_count=3 +Faker::Books::Lovecraft.sentences #=> ["Nameless loathsome decadent gambrel.", "Ululate swarthy immemorial cat madness gibbous unmentionable unnamable.", "Decadent antediluvian non-euclidean tentacles amorphous tenebrous."] +Faker::Books::Lovecraft.sentences(2) #=> ["Antediluvian amorphous unmentionable singular accursed squamous immemorial.", "Gambrel daemoniac gibbous stygian shunned ululate iridescence abnormal."] + +# Optional arguments: sentence_count=3, random_sentences_to_add=3 +Faker::Books::Lovecraft.paragraph #=> "Squamous nameless daemoniac fungus ululate. Cyclopean stygian decadent loathsome manuscript tenebrous. Foetid abnormal stench. Dank non-euclidean comprehension eldritch. Charnel singular shunned lurk effulgence fungus." +Faker::Books::Lovecraft.paragraph(2) #=> "Decadent lurk tenebrous loathsome furtive spectral amorphous gibbous. Gambrel eldritch daemoniac cat madness comprehension stygian effulgence." +Faker::Books::Lovecraft.paragraph(2, 1) #=> "Stench cyclopean fainted antiquarian nameless. Antiquarian ululate tenebrous non-euclidean effulgence." + +# Optional arguments: paragraph_count=3 +Faker::Books::Lovecraft.paragraphs #=> ["Noisome daemoniac gibbous abnormal antediluvian. Unutterable fungus accursed stench noisome lurk madness indescribable. Antiquarian fungus gibbering lurk dank fainted. Hideous loathsome manuscript daemoniac lurk charnel foetid.", "Non-euclidean immemorial indescribable accursed furtive. Dank unnamable cyclopean tenebrous stench immemorial. Eldritch abnormal gibbering tenebrous. Singular accursed lurk.", "Charnel antediluvian unnamable cat blasphemous comprehension tenebrous. Nameless accursed amorphous unnamable stench. Squamous unnamable mortal accursed manuscript spectral gambrel amorphous. Shunned stygian charnel unutterable. Tenebrous ululate lurk amorphous unnamable."] +Faker::Books::Lovecraft.paragraphs(2) #=> ["Hideous amorphous manuscript antediluvian non-euclidean cat eldritch foetid. Stench squamous manuscript amorphous gibbering fainted gibbous. Accursed loathsome blasphemous iridescence antediluvian abnormal ululate manuscript. Singular manuscript gibbering decadent accursed indescribable.", "Tenebrous unnamable comprehension antediluvian lurk. Lurk spectral noisome gibbering. Furtive manuscript madness tenebrous daemoniac."] + +# Optional arguments: chars=3, supplemental=false +Faker::Books::Lovecraft.paragraph_by_chars #=> "Truffaut stumptown trust fund 8-bit messenger bag portland. Meh kombucha selvage swag biodiesel. Lomo kinfolk jean shorts asymmetrical diy. Wayfarers portland twee stumptown. Wes anderson biodiesel retro 90's pabst. Diy echo 90's mixtape semiotics. Cornho." +Faker::Books::Lovecraft.paragraph_by_chars(256) #=> "Hella kogi blog narwhal sartorial selfies mustache schlitz. Bespoke normcore kitsch cred hella fixie. Park aesthetic fixie migas twee. Cliche mustache brunch tumblr fixie godard. Drinking pop-up synth hoodie dreamcatcher typewriter. Kitsch biodiesel green." +``` diff --git a/doc/v1.9.2/creature/animal.md b/doc/v1.9.2/creature/animal.md new file mode 100644 index 0000000000..42eb0fcb85 --- /dev/null +++ b/doc/v1.9.2/creature/animal.md @@ -0,0 +1,7 @@ +# Faker::Creature::Animal + +It might be available in the next version. + +```ruby +Faker::Creature::Animal.name #=> "Antelope" +``` diff --git a/doc/v1.9.2/creature/cat.md b/doc/v1.9.2/creature/cat.md new file mode 100644 index 0000000000..825dd22682 --- /dev/null +++ b/doc/v1.9.2/creature/cat.md @@ -0,0 +1,14 @@ +# Faker::Creature::Cat + +Available since version 1.6.2. + +```ruby +# Random cat name +Faker::Creature::Cat.name #=> "Shadow" + +# Random cat breed +Faker::Creature::Cat.breed #=> "British Semipi-longhair" + +# Random cat registry +Faker::Creature::Cat.registry #=> "American Cat Fanciers Association" +``` diff --git a/doc/v1.9.2/creature/dog.md b/doc/v1.9.2/creature/dog.md new file mode 100644 index 0000000000..0b13164a2e --- /dev/null +++ b/doc/v1.9.2/creature/dog.md @@ -0,0 +1,27 @@ +# Faker::Creature::Dog + +```ruby +# Random dog name +Faker::Creature::Dog.name #=> "Spike" + +# Random dog breed +Faker::Creature::Dog.breed #=> "Yorkshire Terrier" + +# Random dog sound +Faker::Creature::Dog.sound #=> "woof woof" + +# Random dog meme phrase +Faker::Creature::Dog.meme_phrase #=> "smol pupperino" + +# Random dog age +Faker::Creature::Dog.age #=> "puppy" + +# Random dog gender +Faker::Creature::Dog.gender #=> "female" + +# Random dog coat length +Faker::Creature::Dog.coat_length #=> "short" + +# Random dog size +Faker::Creature::Dog.size #=> "small" +``` diff --git a/doc/v1.9.2/default/address.md b/doc/v1.9.2/default/address.md new file mode 100644 index 0000000000..a3a8cf5656 --- /dev/null +++ b/doc/v1.9.2/default/address.md @@ -0,0 +1,54 @@ +# Faker::Address + +Available since version 0.3.0. + +```ruby +Faker::Address.city #=> "Imogeneborough" + +Faker::Address.street_name #=> "Larkin Fork" + +Faker::Address.street_address #=> "282 Kevin Brook" + +Faker::Address.secondary_address #=> "Apt. 672" + +Faker::Address.building_number #=> "7304" + +Faker::Address.community #=> "University Crossing" + +Faker::Address.zip_code #=> "58517" or "23285-4905" + +Faker::Address.zip #=> "58517" or "66259-8212" + +Faker::Address.postcode #=> "76032-4907" or "58517" + +Faker::Address.time_zone #=> "Asia/Yakutsk" + +Faker::Address.street_suffix #=> "Street" + +Faker::Address.city_suffix #=> "fort" + +Faker::Address.city_prefix #=> "Lake" + +Faker::Address.state #=> "California" + +Faker::Address.state_abbr #=> "AP" + +Faker::Address.country #=> "French Guiana" + +# Optional arguments: code +Faker::Address.country_by_code(code: 'NL') #=> "Netherlands" + +# Optional arguments: name +Faker::Address.country_name_to_code(name: 'united_states') #=> "US" + +Faker::Address.country_code #=> "IT" + +Faker::Address.country_code_long #=> "ITA" + +Faker::Address.latitude #=> "-58.17256227443719" + +Faker::Address.longitude #=> "-156.65548382095133" + +Faker::Address.full_address #=> "282 Kevin Brook, Imogeneborough, CA 58517" + +``` diff --git a/doc/v1.9.2/default/alphanumeric.md b/doc/v1.9.2/default/alphanumeric.md new file mode 100644 index 0000000000..c53a4c15eb --- /dev/null +++ b/doc/v1.9.2/default/alphanumeric.md @@ -0,0 +1,9 @@ +# Faker::Alphanumeric + +It might be available in the next version. + +```ruby +Faker::Alphanumeric.alpha 10 #=> "zlvubkrwga" + +Faker::Alphanumeric.alphanumeric 10 #=> "3yfq2phxtb" +``` diff --git a/doc/v1.9.2/default/ancient.md b/doc/v1.9.2/default/ancient.md new file mode 100644 index 0000000000..d0b54b9672 --- /dev/null +++ b/doc/v1.9.2/default/ancient.md @@ -0,0 +1,13 @@ +# Faker::Ancient + +Available since version 1.7.0. + +```ruby +Faker::Ancient.god #=> "Zeus" + +Faker::Ancient.primordial #=> "Gaia" + +Faker::Ancient.titan #=> "Atlas" + +Faker::Ancient.hero #=> "Achilles" +``` diff --git a/doc/v1.9.2/default/app.md b/doc/v1.9.2/default/app.md new file mode 100644 index 0000000000..9247fc1432 --- /dev/null +++ b/doc/v1.9.2/default/app.md @@ -0,0 +1,19 @@ +# Faker::App + +Available since version 1.4.3. + +```ruby +Faker::App.name #=> "Treeflex" + +Faker::App.version #=> "1.85" + +Faker::App.author #=> "Daphne Swift" + +Faker::App.semantic_version #=> "3.2.5" + +Faker::App.semantic_version(major: 42) #=> "42.5.2" + +Faker::App.semantic_version(minor: 100..101) #=> "42.100.4" + +Faker::App.semantic_version(patch: 5..6) #=> "7.2.6" +``` diff --git a/doc/v1.9.2/default/appliance.md b/doc/v1.9.2/default/appliance.md new file mode 100644 index 0000000000..41f52552fc --- /dev/null +++ b/doc/v1.9.2/default/appliance.md @@ -0,0 +1,9 @@ +# Faker::Appliance + +Available since version 1.9.0. + +```ruby +Faker::Appliance.brand #=> "Bosch" + +Faker::Appliance.equipment #=> "Appliance plug" +``` diff --git a/doc/v1.9.2/default/artist.md b/doc/v1.9.2/default/artist.md new file mode 100644 index 0000000000..d84b42dea6 --- /dev/null +++ b/doc/v1.9.2/default/artist.md @@ -0,0 +1,7 @@ +# Faker::Artist + +Available since version 1.8.8. + +```ruby +Faker::Artist.name #=> "Michelangelo" +``` diff --git a/doc/v1.9.2/default/avatar.md b/doc/v1.9.2/default/avatar.md new file mode 100644 index 0000000000..cf462c9c64 --- /dev/null +++ b/doc/v1.9.2/default/avatar.md @@ -0,0 +1,15 @@ +# Faker::Avatar + +```ruby +Faker::Avatar.image #=> "https://robohash.org/sitsequiquia.png?size=300x300" + +Faker::Avatar.image("my-own-slug") #=> "https://robohash.org/my-own-slug.png?size=300x300" + +Faker::Avatar.image("my-own-slug", "50x50") #=> "https://robohash.org/my-own-slug.png?size=50x50" + +Faker::Avatar.image("my-own-slug", "50x50", "jpg") #=> "https://robohash.org/my-own-slug.jpg?size=50x50" + +Faker::Avatar.image("my-own-slug", "50x50", "bmp") #=> "https://robohash.org/my-own-slug.bmp?size=50x50" + +Faker::Avatar.image("my-own-slug", "50x50", "bmp", "set1", "bg1") #=> "https://robohash.org/my-own-slug.bmp?size=50x50&set=set1&bgset=bg1" +``` diff --git a/doc/v1.9.2/default/bank.md b/doc/v1.9.2/default/bank.md new file mode 100644 index 0000000000..b5ce1aa4f7 --- /dev/null +++ b/doc/v1.9.2/default/bank.md @@ -0,0 +1,21 @@ +# Faker::Bank +```ruby + +Faker::Bank.account_number #=> 6738582379 + +Faker::Bank.account_number(13) #=> 673858237902 + +Faker::Bank.iban #=> "GB76DZJM33188515981979" + +# Optional argument bank_country_code +# All countries should be supported +Faker::Bank.iban("be") #=> "BE6375388567752043" + +Faker::Bank.name #=> "ABN AMRO CORPORATE FINANCE LIMITED" + +Faker::Bank.routing_number #=> "729343831" + +Faker::Bank.routing_number(true) #=> "22-3833/64805" + +Faker::Bank.swift_bic #=> "AAFMGB21" +``` diff --git a/doc/v1.9.2/default/beer.md b/doc/v1.9.2/default/beer.md new file mode 100644 index 0000000000..641032ae64 --- /dev/null +++ b/doc/v1.9.2/default/beer.md @@ -0,0 +1,23 @@ +# Faker::Beer + +Available since version 1.6.2. + +```ruby +Faker::Beer.brand #=> "Heineken" + +Faker::Beer.name #=> "Hercules Double IPA" + +Faker::Beer.style #=> "Belgian Strong Ale" + +Faker::Beer.hop #=> "Equinox" + +Faker::Beer.yeast #=> "2278 - Czech Pils" + +Faker::Beer.malts #=> "Rye malt" + +Faker::Beer.ibu #=> "40 IBU" + +Faker::Beer.alcohol #=> "6.3%" + +Faker::Beer.blg #=> "18.5°Blg" +``` diff --git a/doc/v1.9.2/default/boolean.md b/doc/v1.9.2/default/boolean.md new file mode 100644 index 0000000000..4bb4709a0b --- /dev/null +++ b/doc/v1.9.2/default/boolean.md @@ -0,0 +1,10 @@ +# Faker::Boolean + +Available since version 1.6.2. + +```ruby +# Optional parameter: true_ratio=0.5 +Faker::Boolean.boolean #=> true + +Faker::Boolean.boolean(0.2) #=> false +``` diff --git a/doc/v1.9.2/default/bossa_nova.md b/doc/v1.9.2/default/bossa_nova.md new file mode 100644 index 0000000000..3675799d53 --- /dev/null +++ b/doc/v1.9.2/default/bossa_nova.md @@ -0,0 +1,7 @@ +# Faker::BossaNova + +```ruby +Faker::BossaNova.artist #=> "Tom Jobin" + +Faker::BossaNova.song #=> "Chega de Saudade" +``` diff --git a/doc/v1.9.2/default/business.md b/doc/v1.9.2/default/business.md new file mode 100644 index 0000000000..6c7d9a0f7e --- /dev/null +++ b/doc/v1.9.2/default/business.md @@ -0,0 +1,9 @@ +# Faker::Business + +```ruby +Faker::Business.credit_card_number #=> "1228-1221-1221-1431" + +Faker::Business.credit_card_expiry_date #=> + +Faker::Business.credit_card_type #=> "visa" +``` diff --git a/doc/v1.9.2/default/cannabis.md b/doc/v1.9.2/default/cannabis.md new file mode 100644 index 0000000000..c0cbd11a36 --- /dev/null +++ b/doc/v1.9.2/default/cannabis.md @@ -0,0 +1,32 @@ +# Faker::Cannabis + +Available since version 1.9.0. + +```ruby +# Random strain +Faker::Cannabis.strain #=> "24k" + +# Random cannabinoid_abbreviation +Faker::Cannabis.cannabinoid_abbreviation #=> "THC" + +# Random cannabinoid +Faker::Cannabis.cannabinoid #=> "Tetrahydrocannabinol" + +# Random terpene +Faker::Cannabis.terpene #=> "α Pinene" + +# Random medical_use +Faker::Cannabis.medical_use #=> "analgesic" + +# Random health_benefit +Faker::Cannabis.health_benefit #=> "relieves pain" + +# Random category +Faker::Cannabis.category #=> "capsules" + +# Random type +Faker::Cannabis.type #=> "hybrid" + +# Random buzzword +Faker::Cannabis.buzzword #=> "blunt wrap" +``` diff --git a/doc/v1.9.2/default/chile_rut.md b/doc/v1.9.2/default/chile_rut.md new file mode 100644 index 0000000000..7c6c1b3715 --- /dev/null +++ b/doc/v1.9.2/default/chile_rut.md @@ -0,0 +1,23 @@ +# Faker::ChileRut + +It might be available in the next version. + +```ruby +Faker::ChileRut.full_rut #=> "30686957-4" + +# Returns rut between 1 (default param) and 99999999 +Faker::ChileRut.rut #=> 11235813 + +# Returns rut between passed minimum rut and 99999999 +Faker::ChileRut.rut(20_890_156) #=> 31853211 + +# Every call to rut or full_rut generates a new random rut, so last_rut and dv +# allows you to get the separated parts of the full rut without losing the already generated rut +Faker::ChileRut.rut #=> 23567131 +Faker::ChileRut.last_rut #=> 23567131 +Faker::ChileRut.dv #=> "k" + +# check_digit is an alias for dv, for English speaking devs +Faker::ChileRut.rut #=> 30528772 +Faker::ChileRut.check_digit #=> "5" +``` diff --git a/doc/v1.9.2/default/chuck_norris.md b/doc/v1.9.2/default/chuck_norris.md new file mode 100644 index 0000000000..fdcaf02ddd --- /dev/null +++ b/doc/v1.9.2/default/chuck_norris.md @@ -0,0 +1,7 @@ +# Faker::ChuckNorris + +Available since version 1.6.4. + +```ruby +Faker::ChuckNorris.fact #=> "Chuck Norris can solve the Towers of Hanoi in one move." +``` diff --git a/doc/v1.9.2/default/code.md b/doc/v1.9.2/default/code.md new file mode 100644 index 0000000000..cc83363a83 --- /dev/null +++ b/doc/v1.9.2/default/code.md @@ -0,0 +1,21 @@ +# Faker::Code + +```ruby +Faker::Code.npi #=> "0000126252" + +Faker::Code.isbn #=> "759021701-8" + +Faker::Code.ean #=> "4600051000057" + +Faker::Code.rut #=> "91389184-8" + +Faker::Code.nric #=> "S5589083H" + +Faker::Code.nric(27, 34) #=> S8505970Z + +Faker::Code.imei #= "546327785982623" + +Faker::Code.asin #=> "B00000IGGJ" + +Faker::Code.sin #=> "159160274" +``` diff --git a/doc/v1.9.2/default/coffee.md b/doc/v1.9.2/default/coffee.md new file mode 100644 index 0000000000..d8bf0552a6 --- /dev/null +++ b/doc/v1.9.2/default/coffee.md @@ -0,0 +1,13 @@ +# Faker::Coffee + +```ruby +Faker::Coffee.blend_name #=> "Summer Solstice" + +Faker::Coffee.origin #=> "Antigua, Guatemala" + +Faker::Coffee.variety #=> "Pacas" + +Faker::Coffee.notes #=> "balanced, silky, marzipan, orange-creamsicle, bergamot" + +Faker::Coffee.intensifier #=> "quick" +``` diff --git a/doc/v1.9.2/default/coin.md b/doc/v1.9.2/default/coin.md new file mode 100644 index 0000000000..3fa75413b6 --- /dev/null +++ b/doc/v1.9.2/default/coin.md @@ -0,0 +1,9 @@ +# Faker::Coin + +```ruby +# Flip a coin +Faker::Coin.flip #=> "Heads" + +# The currency of the coin +Faker::Coin.name #=> "Philippine Peso" +``` diff --git a/doc/v1.9.2/default/color.md b/doc/v1.9.2/default/color.md new file mode 100644 index 0000000000..5152b511fa --- /dev/null +++ b/doc/v1.9.2/default/color.md @@ -0,0 +1,13 @@ +# Faker::Color + +```ruby +Faker::Color.hex_color #=> "#31a785" + +Faker::Color.color_name #=> "yellow" + +Faker::Color.rgb_color #=> [54, 233, 67] + +Faker::Color.hsl_color #=> [69.87, 0.66, 0.3] + +Faker::Color.hsla_color #=> [154.77, 0.36, 0.9, 0.26170574657729073] +``` diff --git a/doc/v1.9.2/default/commerce.md b/doc/v1.9.2/default/commerce.md new file mode 100644 index 0000000000..9dc358bc93 --- /dev/null +++ b/doc/v1.9.2/default/commerce.md @@ -0,0 +1,25 @@ +# Faker::Commerce + +```ruby +Faker::Commerce.color #=> "lavender" + +# Optional arguments max=3, fixed_amount=false +Faker::Commerce.department #=> "Grocery, Health & Beauty" +Faker::Commerce.department(5) #=> "Grocery, Books, Health & Beauty" +Faker::Commerce.department(2, true) #=> "Books & Tools" + +Faker::Commerce.material #=> "Steel" + +Faker::Commerce.product_name #=> "Practical Granite Shirt" + +# Produces a Float by default +Faker::Commerce.price #=> 44.6 +Faker::Commerce.price(range = 0..10.0, as_string = true) #=> "2.18" + +# Generate a random promotion code. +# Optional argument digits = 6 for number of random digits in suffix +Faker::Commerce.promotion_code #=> "AmazingDeal829102" +Faker::Commerce.promotion_code(digits = 2) #=> "AmazingPrice57" + +Faker::Commerce.material #=> "Plastic" +``` diff --git a/doc/v1.9.2/default/company.md b/doc/v1.9.2/default/company.md new file mode 100644 index 0000000000..674e1703a8 --- /dev/null +++ b/doc/v1.9.2/default/company.md @@ -0,0 +1,65 @@ +# Faker::Company + +```ruby +Faker::Company.name #=> "Hirthe-Ritchie" + +Faker::Company.suffix #=> "Group" + +Faker::Company.industry #=> "Information Services" + +# Generate a buzzword-laden catch phrase. +Faker::Company.catch_phrase #=> "Business-focused coherent parallelism" + +Faker::Company.buzzword #=> "Business-focused" + +# When a straight answer won't do, BS to the rescue! +Faker::Company.bs #=> "empower one-to-one web-readiness" + +# Generate US employee identification numbers +Faker::Company.ein #=> "34-8488813" + +# Generate "Data Universal Numbering System" +Faker::Company.duns_number #=> "08-341-3736" + +# Get a random company logo url in PNG format. +Faker::Company.logo #=> "https://pigment.github.com/fake-logos/logos/medium/color/5.png" + +Faker::Company.type #=> "Privately Held" + +# Get a random profession +Faker::Company.profession #=> "firefighter" + +# Generate country specific identifiers + +Faker::Company.swedish_organisation_number #=> "7962578022" + +Faker::Company.czech_organisation_number #=> "77778171" + +Faker::Company.french_siren_number #=> "819489626" + +Faker::Company.french_siret_number #=> "81948962600013" + +Faker::Company.norwegian_organisation_number #=> "839071558" + +Faker::Company.australian_business_number #=> "81137773602" + +Faker::Company.spanish_organisation_number #=> "P2344979" + +# Get a random Polish taxpayer identification number +Faker::Company.polish_taxpayer_identification_number #=> "1060000062" + +# Get a random Polish register of national economy number +Faker::Company.polish_register_of_national_economy #=> "123456785" + +# Generate South African company registration numbers: +Faker::Company.south_african_pty_ltd_registration_number #=> "5301/714689/07" +Faker::Company.south_african_close_corporation_registration_number #=> "CK74/7585/23" +Faker::Company.south_african_listed_company_registration_number #=> "7039/3135/06" +Faker::Company.south_african_trust_registration_number #=> "IT38/6489900" + +# Generate a Brazilian company number (CNPJ) +Faker::Company.brazilian_company_number #=> "18553414000618" + +# Generate a formatted Brazilian company number (CNPJ) +Faker::Company.brazilian_company_number(formatted: true) #=> "00.000.000/0000-00" +``` diff --git a/doc/v1.9.2/default/compass.md b/doc/v1.9.2/default/compass.md new file mode 100644 index 0000000000..ce762a2481 --- /dev/null +++ b/doc/v1.9.2/default/compass.md @@ -0,0 +1,26 @@ +# Faker::Compass + +Available since version 1.8.0. + +```ruby +# A random direction +Faker::Compass.direction #=> "southeast" +Faker::Compass.cardinal #=> "north" +Faker::Compass.ordinal #=> "northwest" +Faker::Compass.half_wind #=> "north-northwest" +Faker::Compass.quarter_wind #=> "north by west" + +# Random abbreviation +Faker::Compass.abbreviation #=> "NEbN" +Faker::Compass.cardinal_abbreviation #=> "N" +Faker::Compass.ordinal_abbreviation #=> "SW" +Faker::Compass.half_wind_abbreviation #=> "NNE" +Faker::Compass.quarter_wind_abbreviation #=> "SWbS" + +# Random azimuth +Faker::Compass.azimuth #=> "168.75" +Faker::Compass.cardinal_azimuth #=> "90" +Faker::Compass.ordinal_azimuth #=> "135" +Faker::Compass.half_wind_azimuth #=> "292.5" +Faker::Compass.quarter_wind_azimuth #=> "56.25" +``` diff --git a/doc/v1.9.2/default/construction.md b/doc/v1.9.2/default/construction.md new file mode 100644 index 0000000000..0b0fad334b --- /dev/null +++ b/doc/v1.9.2/default/construction.md @@ -0,0 +1,11 @@ +# Faker::Construction + +Available in future versions of faker + +```ruby +# Random material +Faker::Construction.material #=> "Wood" + +# Random subcontract category +Faker::Construction.subcontract_category #=> "Curb & Gutter" +``` diff --git a/doc/v1.9.2/default/cosmere.md b/doc/v1.9.2/default/cosmere.md new file mode 100644 index 0000000000..a865f40b6c --- /dev/null +++ b/doc/v1.9.2/default/cosmere.md @@ -0,0 +1,25 @@ +# Faker::Cosmere + +It might be available in the next version. + +```ruby +Faker::Cosmere.aon #=> "Rao" + +Faker::Cosmere.shard_world #=> "Yolen" + +Faker::Cosmere.shard #=> "Ambition" + +Faker::Cosmere.surge #=> "Progression" + +Faker::Cosmere.knight_radiant #=> "Truthwatcher" + +Faker::Cosmere.metal #=> "Brass" + +Faker::Cosmere.allomancer #=> "Coinshot" + +Faker::Cosmere.feruchemist #=> "Archivist" + +Faker::Cosmere.herald #=> "Ishar" + +Faker::Cosmere.spren #=> "Flamespren" +``` diff --git a/doc/v1.9.2/default/crypto.md b/doc/v1.9.2/default/crypto.md new file mode 100644 index 0000000000..ab29262cc1 --- /dev/null +++ b/doc/v1.9.2/default/crypto.md @@ -0,0 +1,11 @@ +# Faker::Crypto + +Available since version 1.6.4. + +```ruby +Faker::Crypto.md5 #=> "6b5ed240042e8a65c55ddb826c3408e6" + +Faker::Crypto.sha1 #=> "4e99e31c51eef8b2d290e709f757f92e558a503f" + +Faker::Crypto.sha256 #=> "51e4dbb424cd9db1ec5fb989514f2a35652ececef33f21c8dd1fd61bb8e3929d" +``` diff --git a/doc/v1.9.2/default/crypto_coin.md b/doc/v1.9.2/default/crypto_coin.md new file mode 100644 index 0000000000..a99304ffe0 --- /dev/null +++ b/doc/v1.9.2/default/crypto_coin.md @@ -0,0 +1,13 @@ +# Faker::CryptoCoin + +```ruby +Faker::CryptoCoin.coin_name #=> "Bitcoin" + +Faker::CryptoCoin.acronym #=> "BTC" + +Faker::CryptoCoin.url_logo #=> "https://i.imgur.com/EFz61Ei.png" + +Faker::CryptoCoin.coin_array #=> ["Dash", "DASH", "https://i.imgur.com/2uX91cb.png"] + +Faker::CryptoCoin.coin_hash {:name=>"Ethereum", :acronym=>"ETH", :url_logo=>"https://i.imgur.com/uOPFCXj.png"} +``` diff --git a/doc/v1.9.2/default/currency.md b/doc/v1.9.2/default/currency.md new file mode 100644 index 0000000000..033a654ab7 --- /dev/null +++ b/doc/v1.9.2/default/currency.md @@ -0,0 +1,9 @@ +# Faker::Currency + +```ruby +Faker::Currency.name #=> "Swedish Krona" + +Faker::Currency.code #=> "USD" + +Faker::Currency.symbol #=> "$" +``` diff --git a/doc/v1.9.2/default/date.md b/doc/v1.9.2/default/date.md new file mode 100644 index 0000000000..ff7178e334 --- /dev/null +++ b/doc/v1.9.2/default/date.md @@ -0,0 +1,18 @@ +# Faker::Date + +```ruby +# Random date between dates +Faker::Date.between(2.days.ago, Date.today) #=> "Wed, 24 Sep 2014" + +# Random date between dates except for certain date +Faker::Date.between_except(1.year.ago, 1.year.from_now, Date.today) #=> "Wed, 24 Sep 2014" + +# Random date in the future (up to maximum of N days) +Faker::Date.forward(23) # => "Fri, 03 Oct 2014" + +# Random date in the past (up to maximum of N days) +Faker::Date.backward(14) #=> "Fri, 19 Sep 2014" + +# Random birthday date (maximum age between 18 and 65) +Faker::Date.birthday(18, 65) #=> "Mar, 28 Mar 1986" +``` diff --git a/doc/v1.9.2/default/dc_comics.md b/doc/v1.9.2/default/dc_comics.md new file mode 100644 index 0000000000..359d08d3dd --- /dev/null +++ b/doc/v1.9.2/default/dc_comics.md @@ -0,0 +1,17 @@ +# Faker::DcComics + +It might be available in the next version. + +A fun collection of hundreds of your favorite DC Comics Heroes, Heroines, Villains, Alter Egos and Side Characters. Have fun! + +```ruby +Faker::DcComics.hero #=> "Batman" + +Faker::DcComics.heroine #=> "Supergirl" + +Faker::DcComics.villain #=> "The Joker" + +Faker::DcComics.name #=> "Clark Kent" + +Faker::DcComics.title #=> "Teen Titans: The Judas Contract +``` diff --git a/doc/v1.9.2/default/demographic.md b/doc/v1.9.2/default/demographic.md new file mode 100644 index 0000000000..e54e2fe9e5 --- /dev/null +++ b/doc/v1.9.2/default/demographic.md @@ -0,0 +1,19 @@ +# Faker::Demographic + +Available since version 1.7.3. + +```ruby +Faker::Demographic.race #=> "Native Hawaiian or Other Pacific Islander" + +Faker::Demographic.educational_attainment #=> "GED or alternative credential" + +Faker::Demographic.demonym #=> "Panamanian" + +Faker::Demographic.marital_status #=> "Widowed" + +Faker::Demographic.sex #=> "Female" + +Faker::Demographic.height #=> "1.61" + +Faker::Demographic.height(:imperial) #=> "6 ft, 2 in" +``` diff --git a/doc/v1.9.2/default/dessert.md b/doc/v1.9.2/default/dessert.md new file mode 100644 index 0000000000..ec57a68fe5 --- /dev/null +++ b/doc/v1.9.2/default/dessert.md @@ -0,0 +1,14 @@ +# Faker::Dessert + +Available since version 1.8.0. + +```ruby +# Random dessert variety +Faker::Dessert.variety #=> "Cake" + +# Random dessert topping +Faker::Dessert.topping #=> "Gummy Bears" + +# Random dessert flavor +Faker::Dessert.flavor #=> "Salted Caramel" +``` \ No newline at end of file diff --git a/doc/v1.9.2/default/device.md b/doc/v1.9.2/default/device.md new file mode 100644 index 0000000000..a4f385835d --- /dev/null +++ b/doc/v1.9.2/default/device.md @@ -0,0 +1,17 @@ +# Faker::Device + +Available since version 1.9.0. + +```ruby +Faker::Device.build_number #=> "5" + +Faker::Device.manufacturer #=> "Apple" + +Faker::Device.model_name #=> "iPhone 4" + +Faker::Device.platform #=> "webOS" + +Faker::Device.serial #=> "ejfjnRNInxh0363JC2WM" + +Faker::Device.version #=> "4" +``` diff --git a/doc/v1.9.2/default/driving_licence.md b/doc/v1.9.2/default/driving_licence.md new file mode 100644 index 0000000000..7e21baeecd --- /dev/null +++ b/doc/v1.9.2/default/driving_licence.md @@ -0,0 +1,21 @@ +# Faker::DrivingLicence + +```ruby +# Generate a licence number in GB format, as issued in England, Scotland and Wales +# The DVSA does not publish their checksum algorithm, so the last 3 characters +# are random +# Optional arguments: last_name, initials, date_of_birth, gender +Faker::DrivingLicence.british_driving_licence #=> "MCDER712081VF7EK" +Faker::DrivingLicence.british_driving_licence(last_name: "O'Carroll", + initials: "J", + gender: :female, + date_of_birth: Date.parse("1986-10-24")) #=> "OCARR815246J91HT" + +# Generate a Northern Irish licence number +Faker::DrivingLicence.northern_irish_driving_licence #=> "70702548" + +# Generate a UK driving licence number in either GB or NI format, at a rate +# consistent with their relative populations +# Optional arguments: last_name, initials, date_of_birth, gender +Faker::DrivingLicence.uk_driving_licence #=> "OCARR815246J91HT" +Faker::DrivingLicence.uk_driving_licence #=> "70702548" diff --git a/doc/v1.9.2/default/educator.md b/doc/v1.9.2/default/educator.md new file mode 100644 index 0000000000..fc6d6a131c --- /dev/null +++ b/doc/v1.9.2/default/educator.md @@ -0,0 +1,18 @@ +# Faker::Educator + +Available since version 1.6.4. + +```ruby +Faker::Educator.university #=> "Mallowtown Technical College" + +Faker::Educator.secondary_school #=> "Iceborough Secondary College" + +# [DEPRECATION] `course` is deprecated. Please use `degree` instead. +Faker::Educator.degree #=> "Associate Degree in Criminology" + +Faker::Educator.course_name #=> "Criminology 101" + +Faker::Educator.subject #=> "Criminology" + +Faker::Educator.campus #=> "Vertapple Campus" +``` diff --git a/doc/v1.9.2/default/electrical_components.md b/doc/v1.9.2/default/electrical_components.md new file mode 100644 index 0000000000..e19fe3af72 --- /dev/null +++ b/doc/v1.9.2/default/electrical_components.md @@ -0,0 +1,11 @@ +# Faker::ElectricalComponents + +Available since version 1.9.0. + +```ruby +Faker::ElectricalComponents.active #=> "Transistor" + +Faker::ElectricalComponents.passive #=> "Resistor" + +Faker::ElectricalComponents.electromechanical #=> "Toggle Switch" +``` diff --git a/doc/v1.9.2/default/esport.md b/doc/v1.9.2/default/esport.md new file mode 100644 index 0000000000..1df2c94b9b --- /dev/null +++ b/doc/v1.9.2/default/esport.md @@ -0,0 +1,18 @@ +# Faker::Esport + +```ruby +# Random player +Faker::Esport.player #=> "Crimsix" + +# Random team +Faker::Esport.team #=> "CLG" + +# Random league +Faker::Esport.league #=> "IEM" + +# Random event +Faker::Esport.event #=> "ESL Cologne" + +# Random game +Faker::Esport.game #=> "Dota2" +``` \ No newline at end of file diff --git a/doc/v1.9.2/default/file.md b/doc/v1.9.2/default/file.md new file mode 100644 index 0000000000..d52b4cd939 --- /dev/null +++ b/doc/v1.9.2/default/file.md @@ -0,0 +1,15 @@ +# Faker::File + +Available since version 1.6.4. + +```ruby +Faker::File.extension #=> "mp3" + +Faker::File.mime_type #=> "application/pdf" + +# Optional arguments: dir, name, extension, directory_separator +Faker::File.file_name('path/to') #=> "path/to/something_random.jpg" +Faker::File.file_name('foo/bar', 'baz') #=> "foo/bar/baz.zip" +Faker::File.file_name('foo/bar', 'baz', 'doc') #=> "foo/bar/baz.doc" +Faker::File.file_name('foo/bar', 'baz', 'mp3', '\') #=> "foo\bar\baz.mp3" +``` diff --git a/doc/v1.9.2/default/fillmurray.md b/doc/v1.9.2/default/fillmurray.md new file mode 100644 index 0000000000..e69e640511 --- /dev/null +++ b/doc/v1.9.2/default/fillmurray.md @@ -0,0 +1,11 @@ +# Faker::Fillmurray + +Available since version 1.7.1. + +```ruby +Faker::Fillmurray.image #=> "http://fillmurray.com/300/300" + +Faker::Fillmurray.image(true) #=> "http://fillmurray.com/g/300/300" + +Faker::Fillmurray.image(false, 200, 400) #=> "http://fillmurray.com/200/400" +``` diff --git a/doc/v1.9.2/default/finance.md b/doc/v1.9.2/default/finance.md new file mode 100644 index 0000000000..c04d7981d6 --- /dev/null +++ b/doc/v1.9.2/default/finance.md @@ -0,0 +1,13 @@ +# Faker::Finance + +```ruby +# Random credit_card +Faker::Finance.credit_card #=> "3018-348979-1853" +Faker::Finance.credit_card(:mastercard) #=> "6771-8921-2291-6236" +Faker::Finance.credit_card(:mastercard, :visa) #=> "4448-8934-1277-7195" + +# Random vat_number +Faker::Finance.vat_number #=> "BR38.395.329/2471-83" +Faker::Finance.vat_number('DE') #=> "DE593306671" +Faker::Finance.vat_number('ZA') #=> "ZA79494416181" +``` diff --git a/doc/v1.9.2/default/food.md b/doc/v1.9.2/default/food.md new file mode 100644 index 0000000000..420ea89029 --- /dev/null +++ b/doc/v1.9.2/default/food.md @@ -0,0 +1,25 @@ +# Faker::Food + +Available since version 1.7.0. + +```ruby + +Faker::Food.description #=> "Three eggs with cilantro, tomatoes, onions, avocados and melted Emmental cheese. With a side of roasted potatoes, and your choice of toast or croissant." + +Faker::Food.dish #=> "Caesar Salad" + +Faker::Food.fruits #=> "Peaches" + +Faker::Food.ingredient #=> "Adzuki Beans" + +Faker::Food.measurement #=> "1/4 tablespoon" + +Faker::Food.metric_measurement #=> "centiliter" + +Faker::Food.spice #=> "Caraway Seed" + +Faker::Food.sushi #=> "Sea bream" + +Faker::Food.vegetables #=> "Broccolini" + +``` diff --git a/doc/v1.9.2/default/football.md b/doc/v1.9.2/default/football.md new file mode 100644 index 0000000000..9e9214b004 --- /dev/null +++ b/doc/v1.9.2/default/football.md @@ -0,0 +1,16 @@ +# Faker::Football + +Available since version 1.9.0. + +```ruby +Faker::Football.team #=> "Manchester United" + +Faker::Football.player #=> "Lionel Messi" + +Faker::Football.coach #=> "Jose Mourinho" + +Faker::Football.competition #=> "FIFA World Cup" + +Faker::Football.position #=> "Defensive Midfielder" +``` + diff --git a/doc/v1.9.2/default/funny_name.md b/doc/v1.9.2/default/funny_name.md new file mode 100644 index 0000000000..9d0e940c37 --- /dev/null +++ b/doc/v1.9.2/default/funny_name.md @@ -0,0 +1,15 @@ +# Faker::FunnyName + +Available since version 1.8.0. + +```ruby +Faker::FunnyName.name #=> "Sam Pull" + +Faker::FunnyName.two_word_name #=> "Shirley Knot" + +Faker::FunnyName.three_word_name #=> "Carson O. Gin" + +Faker::FunnyName.four_word_name #=> "Maude L. T. Ford" + +Faker::FunnyName.name_with_initial #=> "Heather N. Yonn" +``` diff --git a/doc/v1.9.2/default/gender.md b/doc/v1.9.2/default/gender.md new file mode 100644 index 0000000000..cb8d109635 --- /dev/null +++ b/doc/v1.9.2/default/gender.md @@ -0,0 +1,9 @@ +# Faker::Gender + +Available since version 1.9.0. + +```ruby +Faker::Gender.type #=> "Non-binary" + +Faker::Gender.binary_type #=> "Female" +``` diff --git a/doc/v1.9.2/default/greek_philosophers.md b/doc/v1.9.2/default/greek_philosophers.md new file mode 100644 index 0000000000..88925c6901 --- /dev/null +++ b/doc/v1.9.2/default/greek_philosophers.md @@ -0,0 +1,9 @@ +# Faker::GreekPhilosophers + +Available since version 1.9.0. + +```ruby +Faker::GreekPhilosophers.name #=> "Socrates" + +Faker::GreekPhilosophers.quote #=> "Only the educated are free." +``` diff --git a/doc/v1.9.2/default/hacker.md b/doc/v1.9.2/default/hacker.md new file mode 100644 index 0000000000..7e75f759c2 --- /dev/null +++ b/doc/v1.9.2/default/hacker.md @@ -0,0 +1,23 @@ +# Faker::Hacker +Are you having trouble writing tech-savvy dialogue for your latest screenplay? +Worry not! Hollywood-grade technical talk is ready to fill out any form where you need to look smart. + +```ruby +# Full Phrase +Faker::Hacker.say_something_smart #=> "Try to compress the SQL interface, maybe it will program the back-end hard drive!" + +# Short technical abbreviations +Faker::Hacker.abbreviation #=> "RAM" + +# Hacker centric adjectives +Faker::Hacker.adjective #=> "open-source" + +# Only the best hacker related nouns +Faker::Hacker.noun #=> "bandwidth" + +# Actions that hackers take +Faker::Hacker.verb #=> "bypass" + +# Verbs that end in -ing +Faker::Hacker.ingverb #=> "synthesizing" +``` diff --git a/doc/v1.9.2/default/harry_potter.md b/doc/v1.9.2/default/harry_potter.md new file mode 100644 index 0000000000..9d0d28819b --- /dev/null +++ b/doc/v1.9.2/default/harry_potter.md @@ -0,0 +1,17 @@ +# Faker::HarryPotter + +Available since version 1.7.3. + +```ruby +Faker::HarryPotter.character #=> "Harry Potter" + +Faker::HarryPotter.location #=> "Hogwarts" + +Faker::HarryPotter.quote #=> "I solemnly swear that I am up to no good." + +Faker::HarryPotter.book #=> "Harry Potter and the Chamber of Secrets" + +Faker::HarryPotter.house #=> "Gryffindor" + +Faker::HarryPotter.spell #=> "Reparo" +``` diff --git a/doc/v1.9.2/default/hipster.md b/doc/v1.9.2/default/hipster.md new file mode 100644 index 0000000000..1ee1e1f48e --- /dev/null +++ b/doc/v1.9.2/default/hipster.md @@ -0,0 +1,41 @@ +# Faker::Hipster + +Adapted from [Hipster Ipsum](http://hipsum.co/) + +```ruby +Faker::Hipster.word #=> "irony" + +# Optional arguments: num=3, supplemental=false, spaces_allowed = false +Faker::Hipster.words #=> ["pug", "pitchfork", "chia"] +Faker::Hipster.words(4) #=> ["ugh", "cardigan", "poutine", "stumptown"] +Faker::Hipster.words(4, true) #=> ["iste", "seitan", "normcore", "provident"] +Faker::Hipster.words(4, true, true) #=> ["qui", "magni", "craft beer", "est"] + +# Optional arguments: word_count=4, supplemental=false, random_words_to_add=6 +Faker::Hipster.sentence #=> "Park iphone leggings put a bird on it." +Faker::Hipster.sentence(3) #=> "Pour-over swag godard." +Faker::Hipster.sentence(3, true) #=> "Beard laboriosam sequi celiac." +Faker::Hipster.sentence(3, false, 4) #=> "Bitters retro mustache aesthetic biodiesel 8-bit." +Faker::Hipster.sentence(3, true, 4) #=> "Occaecati deleniti messenger bag meh crucifix autem." + +# Optional arguments: sentence_count=3, supplemental=false +Faker::Hipster.sentences #=> ["Godard pitchfork vinegar chillwave everyday 90's whatever.", "Pour-over artisan distillery street waistcoat.", "Salvia yr leggings franzen blue bottle."] +Faker::Hipster.sentences(1) #=> ["Before they sold out pinterest venmo umami try-hard ugh hoodie artisan."] +Faker::Hipster.sentences(1, true) #=> ["Et sustainable optio aesthetic et."] + +# Optional arguments: sentence_count=3, supplemental=false, random_sentences_to_add=3 +Faker::Hipster.paragraph #=> "Migas fingerstache pbr&b tofu. Polaroid distillery typewriter echo tofu actually. Slow-carb fanny pack pickled direct trade scenester mlkshk plaid. Banjo venmo chambray cold-pressed typewriter. Fap skateboard intelligentsia." +Faker::Hipster.paragraph(2) #=> "Yolo tilde farm-to-table hashtag. Lomo kitsch disrupt forage +1." +Faker::Hipster.paragraph(2, true) #=> "Typewriter iste ut viral kombucha voluptatem. Sint voluptates saepe. Direct trade irony chia excepturi yuccie. Biodiesel esse listicle et quam suscipit." +Faker::Hipster.paragraph(2, false, 4) #=> "Selvage vhs chartreuse narwhal vinegar. Authentic vinyl truffaut carry vhs pop-up. Hammock everyday iphone locavore thundercats bitters vegan goth. Fashion axe banh mi shoreditch whatever artisan." +Faker::Hipster.paragraph(2, true, 4) #=> "Deep v gluten-free unde waistcoat aperiam migas voluptas dolorum. Aut drinking illo sustainable sapiente. Direct trade fanny pack kale chips ennui semiotics." + +# Optional arguments: paragraph_count=3, supplemental=false +Faker::Hipster.paragraphs #=> ["Tilde microdosing blog cliche meggings. Intelligentsia five dollar toast forage yuccie. Master kitsch knausgaard. Try-hard everyday trust fund mumblecore.", "Normcore viral pickled. Listicle humblebrag swag tote bag. Taxidermy street hammock neutra butcher cred kale chips. Blog portland humblebrag trust fund irony.", "Single-origin coffee fixie cleanse tofu xoxo. Post-ironic tote bag ramps gluten-free locavore mumblecore hammock. Umami loko twee. Ugh kitsch before they sold out."] +Faker::Hipster.paragraphs(1) #=> ["Skateboard cronut synth +1 fashion axe. Pop-up polaroid skateboard asymmetrical. Ennui fingerstache shoreditch before they sold out. Tattooed pitchfork ramps. Photo booth yr messenger bag raw denim bespoke locavore lomo synth."] +Faker::Hipster.paragraphs(1, true) #=> ["Quae direct trade pbr&b quo taxidermy autem loko. Umami quas ratione migas cardigan sriracha minima. Tenetur perspiciatis pickled sed eum doloribus truffaut. Excepturi dreamcatcher meditation."] + +# Optional arguments: chars=3, supplemental=false +Faker::Hipster.paragraph_by_chars #=> "Truffaut stumptown trust fund 8-bit messenger bag portland. Meh kombucha selvage swag biodiesel. Lomo kinfolk jean shorts asymmetrical diy. Wayfarers portland twee stumptown. Wes anderson biodiesel retro 90's pabst. Diy echo 90's mixtape semiotics. Cornho." +Faker::Hipster.paragraph_by_chars(256, false) #=> "Hella kogi blog narwhal sartorial selfies mustache schlitz. Bespoke normcore kitsch cred hella fixie. Park aesthetic fixie migas twee. Cliche mustache brunch tumblr fixie godard. Drinking pop-up synth hoodie dreamcatcher typewriter. Kitsch biodiesel green." +``` diff --git a/doc/v1.9.2/default/hitchhikers_guide_to_the_galaxy.md b/doc/v1.9.2/default/hitchhikers_guide_to_the_galaxy.md new file mode 100644 index 0000000000..13a4eab44d --- /dev/null +++ b/doc/v1.9.2/default/hitchhikers_guide_to_the_galaxy.md @@ -0,0 +1,19 @@ +# Faker::HitchhikersGuideToTheGalaxy + +Available since version 1.8.0. + +```ruby +Faker::HitchhikersGuideToTheGalaxy.character #=> "Marvin" + +Faker::HitchhikersGuideToTheGalaxy.location #=> "Arthur Dent's house" + +Faker::HitchhikersGuideToTheGalaxy.marvin_quote #=> "Life? Don't talk to me about life." + +Faker::HitchhikersGuideToTheGalaxy.planet #=> "Magrathea" + +Faker::HitchhikersGuideToTheGalaxy.quote #=> "In the beginning, the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." + +Faker::HitchhikersGuideToTheGalaxy.specie #=> "Perfectly Normal Beast" + +Faker::HitchhikersGuideToTheGalaxy.starship #=> "Vogon Constructor Fleet" +``` diff --git a/doc/v1.9.2/default/house.md b/doc/v1.9.2/default/house.md new file mode 100644 index 0000000000..8c0029aef8 --- /dev/null +++ b/doc/v1.9.2/default/house.md @@ -0,0 +1,8 @@ +# Faker::House + + +```ruby +Faker::House.furniture #=> "chair" + +Faker::House.room #=> "kitchen" +``` diff --git a/doc/v1.9.2/default/id_number.md b/doc/v1.9.2/default/id_number.md new file mode 100644 index 0000000000..c72fef6976 --- /dev/null +++ b/doc/v1.9.2/default/id_number.md @@ -0,0 +1,29 @@ +# Faker::IDNumber + +```ruby +# Generate a valid US Social Security number +Faker::IDNumber.valid #=> "552-56-3593" + +# Generate an invalid US Social Security number +Faker::IDNumber.invalid #=> "311-72-0000" + +# Generate a Spanish citizen identifier (DNI) +Faker::IDNumber.spanish_citizen_number #=> "53290236-H" + +# Generate a Spanish foreign born citizen identifier (NIE) +Faker::IDNumber.spanish_foreign_citizen_number #=> "Z-1600870-Y" + +# Generate a valid South African ID Number +Faker::IDNumber.south_african_id_number #=> "8105128870184" +# or +Faker::IDNumber.valid_south_african_id_number #=> "8105128870184" + +# Generate an invalid South African ID Number +Faker::IDNumber.invalid_south_african_id_number #=> "1642972065088" + +# Generate a Brazilian citizen number (CPF) +Faker::IDNumber.brazilian_citizen_number #=> "53540542221" + +# Generate a formatted Brazilian CPF +Faker::IDNumber.brazilian_citizen_number(formatted: true) #=> 000.000.000-00 +``` diff --git a/doc/v1.9.2/default/industry_segments.md b/doc/v1.9.2/default/industry_segments.md new file mode 100644 index 0000000000..b7a7e01e6f --- /dev/null +++ b/doc/v1.9.2/default/industry_segments.md @@ -0,0 +1,13 @@ +# Faker::IndustrySegments + +It might be available in the next version. + +```ruby +Faker::IndustrySegments.industry #=> "Basic Materials" + +Faker::IndustrySegments.super_sector #=> "Basic Resources" + +Faker::IndustrySegments.sector #=> "Industrial Metals & Mining" + +Faker::IndustrySegments.sub_sector #=> "Nonferrous Metals" +``` diff --git a/doc/v1.9.2/default/internet.md b/doc/v1.9.2/default/internet.md new file mode 100644 index 0000000000..e5bbe7a941 --- /dev/null +++ b/doc/v1.9.2/default/internet.md @@ -0,0 +1,82 @@ +# Faker::Internet + +```ruby +# Optional arguments name=nil, *separators +Faker::Internet.email #=> "eliza@mann.net" + +Faker::Internet.email('Nancy') #=> "nancy@terry.biz" + +Faker::Internet.email('Janelle Santiago', '+') #=> janelle+santiago@becker.com" + +# Optional argument name=nil +Faker::Internet.free_email #=> "freddy@gmail.com" + +Faker::Internet.free_email('Nancy') #=> "nancy@yahoo.com" + +# Optional argument name=nil +Faker::Internet.safe_email #=> "christelle@example.org" + +Faker::Internet.safe_email('Nancy') #=> "nancy@example.net" + +# Optional arguments specifier=nil, separators=%w(. _) +Faker::Internet.username #=> "alexie" + +Faker::Internet.username('Nancy') #=> "nancy" + +Faker::Internet.username('Nancy Johnson', %w(. _ -)) #=> "johnson-nancy" + +# Optional arguments: min_length=5, max_length=8 +Faker::Internet.username(5..8) + +# Optional argument min_length=8 +Faker::Internet.username(8) + +# Optional arguments: min_length=8, max_length=16 +Faker::Internet.password #=> "vg5msvy1uerg7" + +Faker::Internet.password(8) #=> "yfgjik0hgzdqs0" + +Faker::Internet.password(10, 20) #=> "eoc9shwd1hwq4vbgfw" + +Faker::Internet.password(10, 20, true) #=> "3k5qS15aNmG" + +Faker::Internet.password(10, 20, true, true) #=> "*%NkOnJsH4" + +Faker::Internet.domain_name #=> "effertz.info" + +Faker::Internet.domain_word #=> "haleyziemann" + +Faker::Internet.domain_suffix #=> "info" + +Faker::Internet.ip_v4_address #=> "24.29.18.175" + +# Private IP range according to RFC 1918 and 127.0.0.0/8 and 169.254.0.0/16. +Faker::Internet.private_ip_v4_address #=> "10.0.0.1" + +# Guaranteed not to be in the ip range from the private_ip_v4_address method. +Faker::Internet.public_ip_v4_address #=> "24.29.18.175" + +Faker::Internet.ip_v4_cidr #=> "24.29.18.175/21" + +Faker::Internet.ip_v6_address #=> "ac5f:d696:3807:1d72:2eb5:4e81:7d2b:e1df" + +Faker::Internet.ip_v6_cidr #=> "ac5f:d696:3807:1d72:2eb5:4e81:7d2b:e1df/78" + +# Optional argument prefix='' +Faker::Internet.mac_address #=> "e6:0d:00:11:ed:4f" +Faker::Internet.mac_address('55:44:33') #=> "55:44:33:02:1d:9b" + +# Optional arguments: host=domain_name, path="/#{username}", scheme=scheme +Faker::Internet.url #=> "http://thiel.com/chauncey_simonis" +Faker::Internet.url('example.com') #=> "http://example.com/clotilde.swift" +Faker::Internet.url('example.com', '/foobar.html') #=> "http://example.com/foobar.html" + +# Optional arguments: words=nil, glue=nil +Faker::Internet.slug #=> "pariatur_laudantium" +Faker::Internet.slug('foo bar') #=> "foo.bar" +Faker::Internet.slug('foo bar', '-') #=> "foo-bar" + +# Optional argument: vendor=nil +Faker::Internet.user_agent #=> "Mozilla/5.0 (compatible; MSIE 9.0; AOL 9.7; AOLBuild 4343.19; Windows NT 6.1; WOW64; Trident/5.0; FunWebProducts)" +Faker::Internet.user_agent(:firefox) #=> "Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0" +``` diff --git a/doc/v1.9.2/default/invoice.md b/doc/v1.9.2/default/invoice.md new file mode 100644 index 0000000000..e23a383c70 --- /dev/null +++ b/doc/v1.9.2/default/invoice.md @@ -0,0 +1,11 @@ +# Faker::Invoice +Module for creating valid invoice references. +https://en.wikipedia.org/wiki/Creditor_Reference + +It might be available in the next version. + +```ruby +Faker::Invoice.reference #=> "45656646957845" + +Faker::Invoice.creditor_reference #=> "RF34118592570724925498" +``` diff --git a/doc/v1.9.2/default/job.md b/doc/v1.9.2/default/job.md new file mode 100644 index 0000000000..6c1f14f4f1 --- /dev/null +++ b/doc/v1.9.2/default/job.md @@ -0,0 +1,17 @@ +# Faker::Job + +```ruby +Faker::Job.title #=> "Lead Accounting Associate" + +Faker::Job.field #=> "Manufacturing" + +Faker::Job.seniority #=> "Lead" + +Faker::Job.position #=> "Supervisor" + +Faker::Job.key_skill #=> "Teamwork" + +Faker::Job.employment_type #=> "Full-time" + +Faker::Job.education_level #=> "Bachelor" +``` diff --git a/doc/v1.9.2/default/json.md b/doc/v1.9.2/default/json.md new file mode 100644 index 0000000000..ef38a8460b --- /dev/null +++ b/doc/v1.9.2/default/json.md @@ -0,0 +1,64 @@ +# Faker::Json + +**shallow_json(width_int, options_hash)** -> JSON formated string + + Takes a width_int and options_hash where the number of key value pairs in the + returned JSON string is equal to the width_int. + + `options_hash = {key: Class.method, value: Class.method}` where Class is + any class in the Faker gem. For example if you want random names for keys + and random Star Wars quotes for values you would write the options_hash as follows + ```ruby + options_hash = { key: 'Name.first_name', value: 'StarWars.quote' } + ``` + + It is important to note that you do not need to append your Faker Gem Class calls + with `Faker::` + +```ruby +Faker::Json.shallow_json(3, key: 'RockBand.name', value: 'Seinfeld.quote') +# => +{"Parliament Funkadelic":"They're real, and they're spectacular.", + "Fleetwood Mac":"I'm not a lesbian. I hate men, but I'm not a lesbian.", + "The Roots":"It became very clear to me sitting out there today that every decision + I've made in my entire life has been wrong. My life is the complete opposite of everything + I want it to be. Every instinct I have, in every aspect of life, be it something to wear, + something to eat - it's all been wrong."} +``` + +**add_depth_to_json(JSON, width_int, options_hash)** -> JSON + +Functions exactly as `Json#shallow_json()` except it takes in a JSON as an +additional argument and returns that JSON with new generated nested JSONs in +place of the lowest nested values. It is important to note that the JSON must +be a JSON and not a hash. + +```ruby +json = Faker::Json.shallow_json(3, key: 'Name.first_name', value: 'Name.last_name') +puts json # => +{"Alisha":"Olson","Everardo":"DuBuque","Bridgette":"Turner"} + +json2 = Faker::Json.add_depth_to_json(json, 2, key: 'Name.first_name', value: 'Name.last_name') +puts json2 # => +{"Alisha":{"Daisy":"Trantow","Oda":"Haag"}, + "Everardo":{"Javier":"Marvin","Eliseo":"Schuppe"}, + "Bridgette":{"Jorge":"Kertzmann","Lelah":"MacGyver"}} + + json3 = Faker::Json.add_depth_to_json(json2, 4, key: 'Name.first_name', value: 'Name.last_name') + puts json3 # => + {"Alisha": + {"Daisy": + {"Bulah":"Wunsch","Cristian":"Champlin","Lester":"Bartoletti","Greg":"Jacobson"}, + "Oda": + {"Salvatore":"Kuhlman","Aubree":"Okuneva","Larry":"Schmitt","Velva":"Gibson"}}, + "Everardo": + {"Javier": + {"Eduardo":"Orn","Laila":"Kub","Thad":"Legros","Dion":"Wilderman"}, + "Eliseo": + {"Olin":"Hilpert","Marisa":"Greenfelder","Karlee":"Schmitt","Judd":"Larkin"}}, + "Bridgette": + {"Jorge": + {"Eloy":"Pfeffer","Kody":"Hansen","Paxton":"Lubowitz","Abe":"Lesch"}, + "Lelah": + {"Rick":"Wiza","Bonita":"Bayer","Gardner":"Auer","Felicity":"Abbott"}}} +``` diff --git a/doc/v1.9.2/default/kpop.md b/doc/v1.9.2/default/kpop.md new file mode 100644 index 0000000000..adcd83d5c2 --- /dev/null +++ b/doc/v1.9.2/default/kpop.md @@ -0,0 +1,17 @@ +# Faker::Kpop + +```ruby + +Faker::Kpop.i_groups # 1990's og groups => "Seo Taiji and Boys" + +Faker::Kpop.ii_groups # 2000's groups => "Girls' Generation" + +Faker::Kpop.iii_groups # 2010's groups => "Trouble Maker" + +Faker::Kpop.girl_groups # girl groups => "2NE1" + +Faker::Kpop.boy_bands # boy bands => "Exo" + +Faker::Kpop.solo # solo artists => "T.O.P" + +``` diff --git a/doc/v1.9.2/default/lorem.md b/doc/v1.9.2/default/lorem.md new file mode 100644 index 0000000000..67b38d9854 --- /dev/null +++ b/doc/v1.9.2/default/lorem.md @@ -0,0 +1,54 @@ +# Faker::Lorem + +```ruby +Faker::Lorem.word #=> "repellendus" + +# Optional arguments: num=3, supplemental=false (words from a supplementary list of Lorem-like words) +Faker::Lorem.words #=> ["dolores", "adipisci", "nesciunt"] +Faker::Lorem.words(4) #=> ["culpa", "recusandae", "aut", "omnis"] +Faker::Lorem.words(4, true) #=> ["colloco", "qui", "vergo", "deporto"] + +Faker::Lorem.multibyte #=> 😀 + +# Optional arguments: char_count=255 +Faker::Lorem.characters #=> "uw1ep04lhs0c4d931n1jmrspprf5wrj85fefue0y7y6m56b6omquh7br7dhqijwlawejpl765nb1716idmp3xnfo85v349pzy2o9rir23y2qhflwr71c1585fnynguiphkjm8p0vktwitcsm16lny7jzp9t4drwav3qmhz4yjq4k04x14gl6p148hulyqioo72tf8nwrxxcclfypz2lc58lsibgfe5w5p0xv95peafjjmm2frkhdc6duoky0aha" +Faker::Lorem.characters(10) #=> "ang9cbhoa8" + +# Optional arguments: word_count=4, supplemental=false, random_words_to_add=0 +# The 'random_words_to_add' argument increases the sentence's word count by a random value within (0..random_words_to_add). +# To specify an exact word count for a sentence, set word_count to the number you want and random_words_to_add equal to 0. +# By default, sentences will not have any random words added (and will all be exactly 4 words long) +Faker::Lorem.sentence #=> "Quia illum libero magni." +Faker::Lorem.sentence(3) #=> "Quaerat quam unde." +Faker::Lorem.sentence(3, true) #=> "Vehemens velit cogo." +Faker::Lorem.sentence(3, false, 4) #=> "Aut voluptatem illum fugit ut sit." +Faker::Lorem.sentence(3, true, 4) #=> "Accusantium tantillus dolorem timor." + +# Optional arguments: sentence_count=3, supplemental=false +Faker::Lorem.sentences #=> ["Vero earum commodi soluta.", "Quaerat fuga cumque et vero eveniet omnis ut.", "Cumque sit dolor ut est consequuntur."] +Faker::Lorem.sentences(1) #=> ["Ut perspiciatis explicabo possimus doloribus enim quia."] +Faker::Lorem.sentences(1, true) #=> ["Quis capillus curo ager veritatis voro et ipsum."] + +# Optional arguments: sentence_count=3, supplemental=false, random_sentences_to_add=3 +# The 'random_sentences_to_add' argument increases the paragraph's sentence count by a random value within (0..random_sentences_to_add). +# To specify an exact sentence count for a paragraph, set sentence_count to the number you want and random_sentences_to_add equal to 0. +# By default, sentences will have a random number of words within the range (3..6). +Faker::Lorem.paragraph #=> "Neque dicta enim quasi. Qui corrupti est quisquam. Facere animi quod aut. Qui nulla consequuntur consectetur sapiente." +Faker::Lorem.paragraph(2) #=> "Illo qui voluptas. Id sit quaerat enim aut cupiditate voluptates dolorum. Porro necessitatibus numquam dolor quia earum." +Faker::Lorem.paragraph(2, true) #=> "Cedo vero adipisci. Theatrum crustulum coaegresco tonsor crastinus stabilis. Aliqua crur consequatur amor una tolero sum." +Faker::Lorem.paragraph(2, false, 4) #=> "Neque aut et nemo aut incidunt voluptates. Dolore cum est sint est. Vitae assumenda porro odio dolores fugiat. Est voluptatum quia rerum." +Faker::Lorem.paragraph(2, true, 4) #=> "Vomito unde uxor annus. Et patior utilis sursum." + +# Optional arguments: paragraph_count=3, supplemental=false +Faker::Lorem.paragraphs #=> ["Dolores quis quia ad quo voluptates. Maxime delectus totam numquam. Necessitatibus vel atque qui dolore.", "Id neque nemo. Dolores iusto facere est ad. Accusamus ipsa dolor ut.", "Et officiis ut hic. Sunt asperiores minus distinctio debitis ipsa dolor. Minima eos deleniti."] +Faker::Lorem.paragraphs(1) #=> ["Labore voluptas sequi. Ratione nulla eaque quia molestiae fugit. At quam laboriosam aut ut dignissimos."] +Faker::Lorem.paragraphs(1, true) #=> ["Depulso animi cunctatio amicitia adficio. Vester viduo qui despirmatio voluptas. Validus laudantium adopto ut agnitio venustas. Aer arcus odio esse."] + +# Optional arguments: question_count = 3, supplemental = false +Faker::Lorem.question #=> "Aliquid culpa aut ipsam unde ullam labore?" +Faker::Lorem.questions(3) #=> ["Necessitatibus deserunt animi?", "At hic dolores autem consequatur ut?", "Aliquam velit ex adipisci voluptatem placeat?"] + +# Optional arguments: chars=3, supplemental=false +Faker::Lorem.paragraph_by_chars #=> "Truffaut stumptown trust fund 8-bit messenger bag portland. Meh kombucha selvage swag biodiesel. Lomo kinfolk jean shorts asymmetrical diy. Wayfarers portland twee stumptown. Wes anderson biodiesel retro 90's pabst. Diy echo 90's mixtape semiotics. Cornho." +Faker::Lorem.paragraph_by_chars(256, false) #=> "Hella kogi blog narwhal sartorial selfies mustache schlitz. Bespoke normcore kitsch cred hella fixie. Park aesthetic fixie migas twee. Cliche mustache brunch tumblr fixie godard. Drinking pop-up synth hoodie dreamcatcher typewriter. Kitsch biodiesel green." +``` diff --git a/doc/v1.9.2/default/lorem_flickr.md b/doc/v1.9.2/default/lorem_flickr.md new file mode 100644 index 0000000000..60f4513a14 --- /dev/null +++ b/doc/v1.9.2/default/lorem_flickr.md @@ -0,0 +1,47 @@ +# Faker::LoremFlickr + +Available since version 1.9.0. + +```ruby +Faker::LoremFlickr.image #=> "http://loremflickr.com/300/300" + +Faker::LoremFlickr.image("50x60") #=> "http://loremflickr.com/50/60" + +Faker::LoremFlickr.image("50x60", ['sports']) #=> "http://loremflickr.com/50/60/sports" + +Faker::LoremFlickr.image("50x60", ['sports', 'fitness']) #=> "http://loremflickr.com/50/60/sports,fitness" + +Faker::LoremFlickr.image("50x60", ['sports', 'fitness'], true) #=> "http://loremflickr.com/50/60/sports,fitness/all" + +Faker::LoremFlickr.grayscale_image #=> "http://loremflickr.com/g/300/300/all" + +Faker::LoremFlickr.grayscale_image("50x60") #=> "http://loremflickr.com/g/50/60/all" + +Faker::LoremFlickr.grayscale_image("50x60", ['sports']) #=> "http://loremflickr.com/g/50/60/sports" + +Faker::LoremFlickr.grayscale_image("50x60", ['sports', 'fitness']) #=> "http://loremflickr.com/g/50/60/sports,fitness" + +Faker::LoremFlickr.grayscale_image("50x60", ['sports', 'fitness'], true) #=> "http://loremflickr.com/g/50/60/sports,fitness/all" + +Faker::LoremFlickr.pixelated_image #=> "http://loremflickr.com/p/300/300/all" + +Faker::LoremFlickr.pixelated_image("50x60") #=> "http://loremflickr.com/p/50/60/all" + +Faker::LoremFlickr.pixelated_image("50x60", ['sports']) #=> "http://loremflickr.com/p/50/60/sports" + +Faker::LoremFlickr.pixelated_image("50x60", ['sports', 'fitness']) #=> "http://loremflickr.com/p/50/60/sports,fitness" + +Faker::LoremFlickr.pixelated_image("50x60", ['sports', 'fitness'], true) #=> "http://loremflickr.com/p/50/60/sports,fitness/all" + +Faker::LoremFlickr.colorized_image #=> "http://loremflickr.com/red/300/300/all" + +Faker::LoremFlickr.colorized_image("50x60") #=> "http://loremflickr.com/red/50/60/all" + +Faker::LoremFlickr.colorized_image("50x60", 'red') #=> "http://loremflickr.com/red/50/60/all" + +Faker::LoremFlickr.colorized_image("50x60", 'red', ['sports']) #=> "http://loremflickr.com/red/50/60/sports" + +Faker::LoremFlickr.colorized_image("50x60", 'red', ['sports', 'fitness']) #=> "http://loremflickr.com/red/50/60/sports,fitness" + +Faker::LoremFlickr.colorized_image("50x60", 'red', ['sports', 'fitness'], true) #=> "http://loremflickr.com/red/50/60/sports,fitness/all" +``` diff --git a/doc/v1.9.2/default/lorem_pixel.md b/doc/v1.9.2/default/lorem_pixel.md new file mode 100644 index 0000000000..7951318f87 --- /dev/null +++ b/doc/v1.9.2/default/lorem_pixel.md @@ -0,0 +1,21 @@ +# Faker::LoremPixel + +Available since version 1.7.0. + +```ruby +Faker::LoremPixel.image #=> "https://lorempixel.com/300/300" + +Faker::LoremPixel.image("50x60") #=> "https://lorempixel.com/50/60" + +Faker::LoremPixel.image("50x60", true) #=> "https://lorempixel.com/g/50/60" + +Faker::LoremPixel.image("50x60", false, 'sports') #=> "https://lorempixel.com/50/60/sports" + +Faker::LoremPixel.image("50x60", false, 'sports', 3) #=> "https://lorempixel.com/50/60/sports/3" + +Faker::LoremPixel.image("50x60", false, 'sports', 3, 'Dummy-text') #=> "https://lorempixel.com/50/60/sports/3/Dummy-text" + +Faker::LoremPixel.image("50x60", false, 'sports', nil, 'Dummy-text') #=> "https://lorempixel.com/50/60/sports/Dummy-text" + +Faker::LoremPixel.image(secure: false) #=> "http://lorempixel.com/300/300" +``` diff --git a/doc/v1.9.2/default/markdown.md b/doc/v1.9.2/default/markdown.md new file mode 100644 index 0000000000..8816eedde0 --- /dev/null +++ b/doc/v1.9.2/default/markdown.md @@ -0,0 +1,42 @@ +# Faker::Markdown + +Available since version 1.8.0. + +Generates markdown formatting with Lorem Ipsum text + +```ruby +#Headers - generates a random header format +Faker::Markdown.headers #=> "##### Autem" + +# Emphasis - generates random emphasis formatting on a random word in two sentences +Faker::Markdown.emphasis #=> "Incidunt atque quis repellat id impedit. Quas numquam quod incidunt dicta non. Blanditiis delectus laudantium atque reiciendis qui." + +# Ordered List - generates an ordered list of items between 1 and 10 randomly +Faker::Markdown.ordered_list #=> "1. Qui reiciendis non consequatur atque.\n2. Quo doloremque veritatis tempora aut.\n3. Aspernatur.\n4. Ea ab.\n5. Qui.\n6. Sit pariatur nemo eveniet.\n7. Molestiae aut.\n8. Nihil molestias iure placeat.\n9. Dolore autem quisquam." + +# Unordered List - generates an unordered list of items between 1 and 10 randomly +Faker::Markdown.unordered_list #=> "* Voluptatum aliquid tempora molestiae facilis non sed.\n* Nostrum omnis iste impedit voluptatum dolor.\n* Esse quidem et facere." + +# Inline code - generates an inline code snippet between two sentences +Faker::Markdown.inline_code #=> "Aut eos quis suscipit. `Dignissimos voluptatem expedita qui.` Quo doloremque veritatis tempora aut." + +# Code Block - generates a code block formatted in ruby +Faker::Markdown.block_code #=> "```ruby\nEos quasi qui.\n```" + +# Table - generates a 3x4 table with a row of headings, a row of hyphens and two rows of data +Faker::Markdown.table #=> "ad | similique | voluptatem\n---- | ---- | ----\ncorrupti | est | rerum\nmolestiae | quidem | et" + +# Random - randomly chooses an above method +Faker::Markdown.random #=> returns output from a single method outlined above + +# Random("excluded_method") - will exclude the passed in method name +Faker::Markdown.random("table") #=> returns output from any single method outlined above except for "table" +Faker::Markdown.random("ordered_list", "unordered_list") #=> returns output from any single method outlined above except for either ordered_list and unordered_list + +# Sandwich - creates a simulated blog-esque text-heavy block in markdown +Faker::Markdown.sandwich #=> returns newline separated content of 1 header, 1 default lorem paragraph, and 1 random markdown element + +Faker::Markdown.sandwich(5) #=> returns newline separated content of 1 header, 1 5-sentence lorem paragraph, and 1 random markdown element + +Faker::Markdown.sandwich(6, 3) #=> returns newline separated content of 1 header, and then 3 sections consisting of, here, 1 6-sentence lorem paragraph and 1 random markdown element. The random markdown element is chosen at random in each iteration of the paragraph-markdown pairing. +``` diff --git a/doc/v1.9.2/default/marketing.md b/doc/v1.9.2/default/marketing.md new file mode 100644 index 0000000000..1983d55255 --- /dev/null +++ b/doc/v1.9.2/default/marketing.md @@ -0,0 +1,5 @@ +# Faker::Marketing + +```ruby +Faker::Marketing.buzzwords #=> "rubber meets the road", "sprint to the finish line" +``` diff --git a/doc/v1.9.2/default/measurement.md b/doc/v1.9.2/default/measurement.md new file mode 100644 index 0000000000..8501b0ccd5 --- /dev/null +++ b/doc/v1.9.2/default/measurement.md @@ -0,0 +1,29 @@ +# Faker::Measurement + +### For each, if you don't pass in an integer or float, it randomly selects an integer between 1 and 10. +### If you pass in "none", it returns the singular version of the measurement unit, without a number. +### If you pass in "all", it returns the plural version of the measurement unit, without a number. + +```ruby +Faker::Measurement.height #=> "6 inches" + +Faker::Measurement.height(1.4) #=> "1.4 inches" + +Faker::Measurement.height("none") #=> "inch" + +Faker::Measurement.height("all") #=> "inches" + +Faker::Measurement.length #=> "1 yard" + +Faker::Measurement.volume #=> "10 cups" + +Faker::Measurement.weight #=> "3 pounds" + +Faker::Measurement.metric_height #=> "2 meters" + +Faker::Measurement.metric_length #=> "0 decimeters" + +Faker::Measurement.metric_volume #=> "1 liter" + +Faker::Measurement.metric_weight #=> "8 grams" +``` diff --git a/doc/v1.9.2/default/michael_scott.md b/doc/v1.9.2/default/michael_scott.md new file mode 100644 index 0000000000..1a1b06fd7e --- /dev/null +++ b/doc/v1.9.2/default/michael_scott.md @@ -0,0 +1,7 @@ +# Faker::MichaelScott + +Available since version 1.9.0. + +```ruby +Faker::MichaelScott.quote #=> "I am Beyoncé, always." +``` diff --git a/doc/v1.9.2/default/military.md b/doc/v1.9.2/default/military.md new file mode 100644 index 0000000000..5510e5fc63 --- /dev/null +++ b/doc/v1.9.2/default/military.md @@ -0,0 +1,15 @@ +# Faker::Military + +It might be available in the next version. + +```ruby +Faker::Military.army_rank #=> "Staff Sergeant" + +Faker::Military.marines_rank #=> "Gunnery Sergeant" + +Faker::Military.navy_rank #=> "Seaman" + +Faker::Military.air_force_rank #=> "Captain" + +Faker::Military.dod_paygrade #=> "E-6" +``` diff --git a/doc/v1.9.2/default/name.md b/doc/v1.9.2/default/name.md new file mode 100644 index 0000000000..82c7f6fbb0 --- /dev/null +++ b/doc/v1.9.2/default/name.md @@ -0,0 +1,24 @@ +# Faker::Name + +```ruby +Faker::Name.name #=> "Tyshawn Johns Sr." + +Faker::Name.name_with_middle #=> "Aditya Elton Douglas" + +Faker::Name.first_name #=> "Kaci" + +Faker::Name.middle_name #=> "Abraham" + +Faker::Name.male_first_name #=> "Edward" + +Faker::Name.female_first_name #=> "Natasha" + +Faker::Name.last_name #=> "Ernser" + +Faker::Name.prefix #=> "Mr." + +Faker::Name.suffix #=> "IV" + +Faker::Name.initials #=> "NJM" +Faker::Name.initials(2) #=> "NM" +``` diff --git a/doc/v1.9.2/default/nation.md b/doc/v1.9.2/default/nation.md new file mode 100644 index 0000000000..2aba7e761f --- /dev/null +++ b/doc/v1.9.2/default/nation.md @@ -0,0 +1,19 @@ +# Faker::Nation + +Available since version 1.9.0. + +```ruby +# Random Nationality +Faker::Nation.nationality #=> "Nepalese" + +# Random National Language +Faker::Nation.language #=> "Nepali" + +# Random Capital City +Faker::Nation.capital_city #=> "Kathmandu" + +# Random National Sport +Faker::Nation.national_sport #=> "dandi biyo" + +# Random National Flag +Faker::Nation.flag #=> "🇫🇮" diff --git a/doc/v1.9.2/default/national_health_service.md b/doc/v1.9.2/default/national_health_service.md new file mode 100644 index 0000000000..edced2e8a9 --- /dev/null +++ b/doc/v1.9.2/default/national_health_service.md @@ -0,0 +1,9 @@ +# Faker::NationalHealthService + +It might be available in the next version + +```ruby +Faker::NationalHealthService.british_number #=> "403 958 5577" + +Faker::NationalHealthService.check_digit(400_012_114) #=> 6 +``` diff --git a/doc/v1.9.2/default/nato_phonetic_alphabet.md b/doc/v1.9.2/default/nato_phonetic_alphabet.md new file mode 100644 index 0000000000..39be021518 --- /dev/null +++ b/doc/v1.9.2/default/nato_phonetic_alphabet.md @@ -0,0 +1,8 @@ +# Faker::NatoPhoneticAlphabet + +Available since version 1.9.0. + +```ruby +# A code word from the NATO phonetic alphabet +Faker::NatoPhoneticAlphabet.code_word #=> "Hotel" +``` diff --git a/doc/v1.9.2/default/number.md b/doc/v1.9.2/default/number.md new file mode 100644 index 0000000000..53134648e6 --- /dev/null +++ b/doc/v1.9.2/default/number.md @@ -0,0 +1,44 @@ +# Faker::Number + +```ruby +# Required parameter: digits +# Produces a number of the specified digits where the leading digit is never 0 +Faker::Number.number(10) #=> "1968353479" + +# Required parameter: digits +# Produces a number of the specified digits with a leading zero +Faker::Number.leading_zero_number(10) #=> "0669336915" + +# Required parameter: digits +# Produces a 2-digit number, preserves leading 0's +Faker::Number.decimal_part(2) #=> "09" + +# Required parameter: l_digits +# Produces a number with 2 digits leading and trailing the decimal +Faker::Number.decimal(2) #=> "11.88" + +# Specify different values for leading and trailing digits +Faker::Number.decimal(2, 3) #=> "18.843" + +# Required parameters: mean, standard_deviation +Faker::Number.normal(50, 3.5) #=> 47.14669604069156 + +# Required parameter: digits +Faker::Number.hexadecimal(3) #=> "e74" + +# Required parameters: minimum value, maximum value +# Boundary numbers are inclusive +Faker::Number.between(1, 10) #=> 7 + +# Required parameters: a range value +# Min and Max boundaries of range are inclusive +Faker::Number.within(1..10) #=> 7 + +Faker::Number.positive #=> 235.59238499107653 + +Faker::Number.negative #=> -4480.042585669558 + +Faker::Number.non_zero_digit #=> "8" + +Faker::Number.digit #=> "1" +``` diff --git a/doc/v1.9.2/default/omniauth.md b/doc/v1.9.2/default/omniauth.md new file mode 100644 index 0000000000..9e31d9ba35 --- /dev/null +++ b/doc/v1.9.2/default/omniauth.md @@ -0,0 +1,262 @@ +Faker::Omniauth + +Available since version 1.8.0. + +[Omniauth](https://github.com/omniauth/omniauth) is a library that standardizes multi-provider authentication for web applications. Each of the following methods will return a randomized hash that mimics the hash returned by each of these omniauth strategies. + +```ruby +Faker::Omniauth.google #=> +{ + :provider => "google_oauth2", + :uid => "123456789", + :info => { + :name => "John Doe", + :email => "john.doe@example.com", + :first_name => "John", + :last_name => "Doe", + :image => "https://lh3.googleusercontent.com/url/photo.jpg" + }, + :credentials => { + :token => "token", + :refresh_token => "another_token", + :expires_at => 1354920555, + :expires => true + }, + :extra => { + :raw_info => { + :sub => "123456789", + :email => "john.doe@example.com", + :email_verified => true, + :name => "John Doe", + :given_name => "John", + :family_name => "Doe", + :profile => "https://plus.google.com/123456789", + :picture => "https://lh3.googleusercontent.com/url/photo.jpg", + :gender => "male", + :birthday => "0000-06-25", + :locale => "en", + :hd => "example.com" + }, + :id_info => { + "iss" => "accounts.google.com", + "at_hash" => "HK6E_P6Dh8Y93mRNtsDB1Q", + "email_verified" => "true", + "sub" => "10769150350006150715113082367", + "azp" => "APP_ID", + "email" => "jsmith@example.com", + "aud" => "APP_ID", + "iat" => 1353601026, + "exp" => 1353604926, + "openid_id" => "https://www.google.com/accounts/o8/id?id=ABCdfdswawerSDFDsfdsfdfjdsf" + } + } +} + +Faker::Omniauth.facebook #=> +{ + provider: 'facebook', + uid: '1234567', + info: { + email: 'joe_bloggs@example.com', + name: 'Joe Bloggs', + first_name: 'Joe', + last_name: 'Bloggs', + image: 'http://graph.facebook.com/1234567/picture?type=square', + verified: true + }, + credentials: { + token: 'ABCDEF...', + expires_at: 1321747205, + expires: true + }, + extra: { + raw_info: { + id: '1234567', + name: 'Joe Bloggs', + first_name: 'Joe', + last_name: 'Bloggs', + link: 'http://www.facebook.com/jbloggs', + username: 'jbloggs', + location: { id: '123456789', name: 'Palo Alto, California' }, + gender: 'male', + email: 'joe_bloggs@example.com', + timezone: -8, + locale: 'en_US', + verified: true, + updated_time: '2011-11-11T06:21:03+0000', + } + } +} + +Faker::Omniauth.twitter #=> +{ + :provider => "twitter", + :uid => "123456", + :info => { + :nickname => "johnqpublic", + :name => "John Q Public", + :location => "Anytown, USA", + :image => "http://si0.twimg.com/sticky/default_profile_images/default_profile_2_normal.png", + :description => "a very normal guy.", + :urls => { + :Website => nil, + :Twitter => "https://twitter.com/johnqpublic" + } + }, + :credentials => { + :token => "a1b2c3d4...", # The OAuth 2.0 access token + :secret => "abcdef1234" + }, + :extra => { + :access_token => "", # An OAuth::AccessToken object + :raw_info => { + :name => "John Q Public", + :listed_count => 0, + :profile_sidebar_border_color => "181A1E", + :url => nil, + :lang => "en", + :statuses_count => 129, + :profile_image_url => "http://si0.twimg.com/sticky/default_profile_images/default_profile_2_normal.png", + :profile_background_image_url_https => "https://twimg0-a.akamaihd.net/profile_background_images/229171796/pattern_036.gif", + :location => "Anytown, USA", + :time_zone => "Chicago", + :follow_request_sent => false, + :id => 123456, + :profile_background_tile => true, + :profile_sidebar_fill_color => "666666", + :followers_count => 1, + :default_profile_image => false, + :screen_name => "", + :following => false, + :utc_offset => -3600, + :verified => false, + :favourites_count => 0, + :profile_background_color => "1A1B1F", + :is_translator => false, + :friends_count => 1, + :notifications => false, + :geo_enabled => true, + :profile_background_image_url => "http://twimg0-a.akamaihd.net/profile_background_images/229171796/pattern_036.gif", + :protected => false, + :description => "a very normal guy.", + :profile_link_color => "2FC2EF", + :created_at => "Thu Jul 4 00:00:00 +0000 2013", + :id_str => "123456", + :profile_image_url_https => "https://si0.twimg.com/sticky/default_profile_images/default_profile_2_normal.png", + :default_profile => false, + :profile_use_background_image => false, + :entities => { + :description => { + :urls => [] + } + }, + :profile_text_color => "666666", + :contributors_enabled => false + } + } +} + +Faker::Omniauth.linkedin #=> +{ + "provider"=>"linkedin", + "uid"=>"AbC123", + "info"=> { + "name"=>"John Doe", + "email"=>"doe.john@example.com", + "nickname"=>"John Doe", + "first_name"=>"John", + "last_name"=>"Doe", + "location"=>"Greater Boston Area, US", + "description"=>"Senior Developer, Hammertech", + "image"=> "http://m.c.lnkd.licdn.com/mpr/mprx/0_aBcD...", + "phone"=>"null", + "headline"=> "Senior Developer, Hammertech", + "industry"=>"Internet", + "urls"=>{ + "public_profile"=>"http://www.linkedin.com/in/johndoe" + } + }, + "credentials"=> { + "token"=>"12312...", + "secret"=>"aBc..." + }, + "extra"=> + { + "access_token"=> { + "token"=>"12312...", + "secret"=>"aBc...", + "consumer"=>nil, # + "params"=> { + :oauth_token=>"12312...", + :oauth_token_secret=>"aBc...", + :oauth_expires_in=>"5183999", + :oauth_authorization_expires_in=>"5183999", + }, + "response"=>nil # + }, + "raw_info"=> { + "firstName"=>"Joe", + "headline"=>"Senior Developer, Hammertech", + "id"=>"AbC123", + "industry"=>"Internet", + "lastName"=>"Doe", + "location"=> {"country"=>{"code"=>"us"}, "name"=>"Greater Boston Area"}, + "pictureUrl"=> "http://m.c.lnkd.licdn.com/mpr/mprx/0_aBcD...", + "publicProfileUrl"=>"http://www.linkedin.com/in/johndoe" + } + } +} + +Faker::Omniauth.github #=> +{ + :provider =>"github", + :uid =>"95144751", + :info => { + :nickname => "jackson-keeling", + :email => "jackson.keeling@example.com", + :name => "Jackson Keeling", + :image => "https://placehold.it/300x300.png", + :urls => { + :GitHub => "https://github.com/jackson-keeling" + } + }, + :credentials => { + :token => "9ea49b946a31b705a0168295a0caa195", + :expires => false + }, + :extra => { + :raw_info => { + :login => "jackson-keeling", + :id => "95144751", + :avatar_url => "https://placehold.it/300x300.png", + :gravatar_id => "", + :url => "https://api.github.com/users/jackson-keeling", + :html_url => "https://github.com/jackson-keeling", + :followers_url => "https://api.github.com/users/jackson-keeling/followers", + :following_url => "https://api.github.com/users/jackson-keeling/following{/other_user}", + :gists_url => "https://api.github.com/users/jackson-keeling/gists{/gist_id}", + :starred_url => "https://api.github.com/users/jackson-keeling/starred{/owner}{/repo}", + :subscriptions_url => "https://api.github.com/users/jackson-keeling/subscriptions", + :organizations_url => "https://api.github.com/users/jackson-keeling/orgs", + :repos_url => "https://api.github.com/users/jackson-keeling/repos", + :events_url => "https://api.github.com/users/jackson-keeling/events{/privacy}", + :received_events_url => "https://api.github.com/users/jackson-keeling/received_events", + :type => "User", + :site_admin => true, + :name => "Jackson Keeling", + :company => nil, + :blog => nil, + :location => "Paigeton, Massachusetts", + :email => "jackson.keeling@example.com", + :hireable => nil, + :bio => nil, + :public_repos => 263, + :public_gists => 658, + :followers => 294, + :following => 865, + :created_at => "2017-03-10T19:49:54+03:00", + :updated_at => "2017-04-04T10:32:08+03:00" + } + } +} +``` diff --git a/doc/v1.9.2/default/phone_number.md b/doc/v1.9.2/default/phone_number.md new file mode 100644 index 0000000000..2b4fef6382 --- /dev/null +++ b/doc/v1.9.2/default/phone_number.md @@ -0,0 +1,46 @@ +# Faker::PhoneNumber + +Phone numbers may be in any of the following formats: + + * 333-333-3333 + * (333) 333-3333 + * 1-333-333-3333 + * 333.333.3333 + * 333-333-3333 + * 333-333-3333 x3333 + * (333) 333-3333 x3333 + * 1-333-333-3333 x3333 + * 333.333.3333 x3333 + +(Don't let the example output below fool you - any format can be returned at random.) + +```ruby +Faker::PhoneNumber.phone_number #=> "397.693.1309" + +Faker::PhoneNumber.cell_phone #=> "(186)285-7925" + +# NOTE NOTE NOTE NOTE +# For the 'US only' methods below, first you must do the following: +Faker::Config.locale = 'en-US' +# or for Canada +Faker::Config.locale = 'en-CA' + +# US only +Faker::PhoneNumber.area_code #=> "201" + +# US only +Faker::PhoneNumber.exchange_code #=> "208" + +# Optional parameter: length=4 +Faker::PhoneNumber.subscriber_number #=> "3873" + +Faker::PhoneNumber.subscriber_number(2) #=> "39" + +Faker::PhoneNumber.extension #=> "3764" + +Faker::PhoneNumber.country_code #=> "+20" + +Faker::PhoneNumber.phone_number_with_country_code #=> "+95 1-672-173-8153" + +Faker::PhoneNumber.cell_phone_with_country_code #=> "+974 (190) 987-9034" +``` diff --git a/doc/v1.9.2/default/placeholdit.md b/doc/v1.9.2/default/placeholdit.md new file mode 100644 index 0000000000..cf0035eb64 --- /dev/null +++ b/doc/v1.9.2/default/placeholdit.md @@ -0,0 +1,34 @@ +# Faker::Placeholdit + +```ruby +Faker::Placeholdit.image #=> "http://placehold.it/300x300.png/000" + +Faker::Placeholdit.image('50x50') #=> "http://placehold.it/50x50.png/000" + +Faker::Placeholdit.image('50x50', 'jpg') #=> "http://placehold.it/50x50.jpg/000" + +Faker::Placeholdit.image('50x50', 'gif', 'ffffff') #=> "http://placehold.it/50x50.gif/ffffff" + +Faker::Placeholdit.image('50x50', 'jpeg', :random) #=> "http://placehold.it/50x50.jpeg/39eba7" + +Faker::Placeholdit.image('50x50', 'jpeg', 'ffffff', '000') #=> "http://placehold.it/50x50.jpeg/ffffff/000" + +Faker::Placeholdit.image('50x50', 'jpeg', :random, :random) #=> "http://placehold.it/50x50.jpeg/d39e44/888ba7" + +Faker::Placeholdit.image('50x50', 'jpg', 'ffffff', '000', 'Some Custom Text') #=> "http://placehold.it/50x50.jpg/ffffff/000?text='Some Custom Text'" +``` + +## Tips + +If you want to have this file downloaded, like in your tests, you could use this following piece of code: + +```ruby +def image_file(size = '300x300', format = 'png', background_color = nil, text_color = nil, text = nil) + file = Tempfile.new("faker_placeholdit") + file.binmode + file << Net::HTTP.get(URI(Faker::Placeholdit.image(size, format, background_color, text_color, text))) + file.close + + ::File.new(file.path) +end +``` diff --git a/doc/v1.9.2/default/programming_language.md b/doc/v1.9.2/default/programming_language.md new file mode 100644 index 0000000000..e0f9b49421 --- /dev/null +++ b/doc/v1.9.2/default/programming_language.md @@ -0,0 +1,7 @@ +# Faker::ProgrammingLanguage + +```ruby +Faker::ProgrammingLanguage.name #=> "Ruby" + +Faker::ProgrammingLanguage.creator #=> "Yukihiro Matsumoto" +``` diff --git a/doc/v1.9.2/default/relationship.md b/doc/v1.9.2/default/relationship.md new file mode 100644 index 0000000000..63be1388d5 --- /dev/null +++ b/doc/v1.9.2/default/relationship.md @@ -0,0 +1,20 @@ +# Faker::Relationship +### A Faker module for familial relationships. + +It might be available in the next version. + +```ruby +Faker::Relationship.familial #=> "Mother" or "Grandmother" + +Faker::Relationship.familial('direct') #=> "Mother" or "Brother" + +Faker::Relationship.familial('extended') #=> "Grandmother" or "Niece" or "Aunt" + +Faker::Relationship.spouse #=> "Husband" or "Wife" + +Faker::Relationship.parent #=> "Father" or "Mother" + +Faker::Relationship.in_law #=> "Father-in-law" + +Faker::Relationship.sibling #=> "Sister" or "Brother" +``` diff --git a/doc/v1.9.2/default/restaurant.md b/doc/v1.9.2/default/restaurant.md new file mode 100644 index 0000000000..4a653f3899 --- /dev/null +++ b/doc/v1.9.2/default/restaurant.md @@ -0,0 +1,13 @@ +# Faker::Restaurant + +It might be available in the next version. + +```ruby +Faker::Restaurant.name #=> "Curry King" + +Faker::Restaurant.type #=> "Comfort Food" + +Faker::Restaurant.description #=> "We are committed to using the finest ingredients in our recipes. No food leaves our kitchen that we ourselves would not eat." + +Faker::Restaurant.review #=> "Brand new. Great design. Odd to hear pop music in a Mexican establishment. Music is a bit loud. It should be background." +``` diff --git a/doc/v1.9.2/default/rock_band.md b/doc/v1.9.2/default/rock_band.md new file mode 100644 index 0000000000..a1ebdd0486 --- /dev/null +++ b/doc/v1.9.2/default/rock_band.md @@ -0,0 +1,5 @@ +# Faker::RockBand + +```ruby +Faker::RockBand.name #=> "Led Zeppelin" +``` diff --git a/doc/v1.9.2/default/rupaul.md b/doc/v1.9.2/default/rupaul.md new file mode 100644 index 0000000000..6cfaf4d1e8 --- /dev/null +++ b/doc/v1.9.2/default/rupaul.md @@ -0,0 +1,8 @@ +# Faker::RuPaul + +Available since version 1.8.0. + +```ruby +Faker::RuPaul.quote #=> "That's Funny, Tell Another One" +Faker::RuPaul.queen #=> "Latrice Royale" +``` diff --git a/doc/v1.9.2/default/science.md b/doc/v1.9.2/default/science.md new file mode 100644 index 0000000000..f8b44492bc --- /dev/null +++ b/doc/v1.9.2/default/science.md @@ -0,0 +1,9 @@ +# Faker::Science + +```ruby +Faker::Science.element #=> "Carbon" + +Faker::Science.element_symbol #=> "Pb" + +Faker::Science.scientist #=> "Isaac Newton" +``` diff --git a/doc/v1.9.2/default/slack_emoji.md b/doc/v1.9.2/default/slack_emoji.md new file mode 100644 index 0000000000..d489ba6139 --- /dev/null +++ b/doc/v1.9.2/default/slack_emoji.md @@ -0,0 +1,32 @@ +# Faker::SlackEmoji + +Available since version 1.5.0. + +```ruby +# Random Slack Emoji from people category +Faker::SlackEmoji.people #=> ":sleepy:" + +# Random Slack Emoji from nature category +Faker::SlackEmoji.nature #=> ":chestnut:" + +# Random Slack Emoji from food and drink category +Faker::SlackEmoji.food_and_drink #=> ":tangerine:" + +# Random Slack Emoji from celebration category +Faker::SlackEmoji.celebration #=> ":ribbon:" + +# Random Slack Emoji from activity category +Faker::SlackEmoji.activity #=> ":performing_arts:" + +# Random Slack Emoji from travel and places category +Faker::SlackEmoji.travel_and_places #=> ":truck:" + +# Random Slack Emoji from objects & symbols category +Faker::SlackEmoji.objects_and_symbols #=> ":alarm_clock:" + +# Random Slack Emoji from custom category +Faker::SlackEmoji.custom #=> ":suspect:" + +# Random Slack Emoji from any category +Faker::SlackEmoji.emoji #=> ":last_quarter_moon:" +``` diff --git a/doc/v1.9.2/default/source.md b/doc/v1.9.2/default/source.md new file mode 100644 index 0000000000..aa5af28361 --- /dev/null +++ b/doc/v1.9.2/default/source.md @@ -0,0 +1,27 @@ +# Faker::Source +Need to generate a code sample for something? Just give me the language (defaults to `ruby`, obviously). + +It might be available in the next version. + +```ruby +# Optional argument: lang=:ruby +Faker::Source.hello_world #=> "print 'Hello World!'" +Faker::Source.hello_world(:javascript) #=> "alert('Hello World!');" + +# Optional arguments: str='some string', lang=:ruby +Faker::Source.print #=> "print 'some string'" +Faker::Source.print('cake') #=> "print 'cake'" +Faker::Source.print(str: 'cake', lang: :javascript) #=> "console.log('cake');" + +# Optional argument: lang=:ruby +Faker::Source.print_1_to_10 <<-DOC=> " + 10.times do |i| + print i + end" +DOC +Faker::Source.print_1_to_10(:javascript) <<-DOC=> " + for (let i=0; i<10; i++) { + console.log(i); + }" +DOC +``` diff --git a/doc/v1.9.2/default/south_africa.md b/doc/v1.9.2/default/south_africa.md new file mode 100644 index 0000000000..6a9b196858 --- /dev/null +++ b/doc/v1.9.2/default/south_africa.md @@ -0,0 +1,31 @@ +# Faker::SouthAfrica + +It might be available in the next version. + +Generate South African ID Numbers, phone numbers and company registration +numbers. Delegates as needed to `Faker::IdNumber`, `Faker::PhoneNumber` and +`Faker::Company` + +```ruby +# Generate a valid South African ID Number: +Faker::SouthAfrica.id_number #=> "6110311856083" +# or +Faker::SouthAfrica.valid_id_number #=> "6110311856083" + +# Generate an invalid South African ID Number: +Faker::SouthAfrica.invalid_id_number #=> "7018356904081" + +# Generate phone numbers: +Faker::SouthAfrica.phone_number #=> "010 788 5009" + +Faker::SouthAfrica.cell_phone #=> "082 946 7470" + +# Generate company registration numbers: +Faker::SouthAfrica.pty_ltd_registration_number #=> "5301/714689/07" +Faker::SouthAfrica.close_corporation_registration_number #=> "CK74/7585/23" +Faker::SouthAfrica.listed_company_registration_number #=> "7039/3135/06" +Faker::SouthAfrica.trust_registration_number #=> "IT38/6489900" + +# Generate VAT number: +Faker::SouthAfrica.vat_number #=> "ZA79494416181" +``` diff --git a/doc/v1.9.2/default/space.md b/doc/v1.9.2/default/space.md new file mode 100644 index 0000000000..76f36fd20a --- /dev/null +++ b/doc/v1.9.2/default/space.md @@ -0,0 +1,47 @@ +# Faker::Space + +Available since version 1.6.4. + +```ruby +# Random planet from our Solar System +Faker::Space.planet #=> "Venus" + +# Random moon from our Solar System +Faker::Space.moon #=> "Europa" + +# Random galaxy +Faker::Space.galaxy #=> "Andromeda" + +# Random nebula name +Faker::Space.nebula #=> "Triffid Nebula" + +# Random star cluster +Faker::Space.star_cluster #=> "Messier 70" + +# Random constellation +Faker::Space.constellation #=> "Orion" + +# Random star +Faker::Space.star #=> "Proxima Centauri" + +# Random national space agency +Faker::Space.agency #=> "Japan Aerospace Exploration Agency" + +# Random space agency abbreviation +Faker::Space.agency_abv #=> "NASA" + +# Random spacecraft name (limited to NASA) +Faker::Space.nasa_space_craft #=> "Endeavour" + +# Random private space company title +Faker::Space.company #=> "SpaceX" + +# Random unit of stellar distance with number +Faker::Space.distance_measurement #=> "15 parsecs" + +# Random meteorite name +Faker::Space.meteorite #=> "Ensisheim" + +# Random launch vehicule name +Faker::Space.launch_vehicule #=> "Saturn IV" +``` diff --git a/doc/v1.9.2/default/string.md b/doc/v1.9.2/default/string.md new file mode 100644 index 0000000000..5c43dc203d --- /dev/null +++ b/doc/v1.9.2/default/string.md @@ -0,0 +1,10 @@ +# Faker::String +Random UTF-8 string with optional nested length selectors. Very useful for testing. Guaranteed to find bugs in your code. Want robust code? Test with these. Includes every UTF-8 codepoint. + +```ruby +Faker::String.random #=> "3 뇦\u0017&y\u{3A109}$8^4* 녹豿4좘툢ꔾ쉙6ɉ\uA6 8TN畀챵|\"3쇤Ŵ" +Faker::String.random(4) #=> "⼨%0*" +Faker::String.random(3..12) #=> "\u{69FDC};秨툫" +Faker::String.random([0, 6]) #=> "I轤𣴒P溟L" +Faker::String.random([1, (2..5), [3, 6], nil]) #=> "葓L#ћ" +``` diff --git a/doc/v1.9.2/default/stripe.md b/doc/v1.9.2/default/stripe.md new file mode 100644 index 0000000000..d8a08835ba --- /dev/null +++ b/doc/v1.9.2/default/stripe.md @@ -0,0 +1,34 @@ +# Faker::Stripe + +Test Stripe transactions without hardcoding card numbers and tokens + +```ruby +Faker::Stripe.valid_card #=> "4242424242424242" + +Faker::Stripe.valid_card("visa_debit") #=> "4000056655665556" + +Faker::Stripe.valid_token #=> "tok_visa" + +Faker::Stripe.valid_token("mc_debit") #=> "tok_mastercard_debit" + +Faker::Stripe.invalid_card #=> "4000000000000002" + +Faker::Stripe.invalid_card("addressZipFail") #=> "4000000000000010" + +Faker::Stripe.month #=> "10" + +Faker::Stripe.year #=> "2018" # This will always be a year in the future + +Faker::Stripe.ccv #=> "123" + +Faker::Stripe.ccv("amex") #=> "1234" +``` + +ProTip: +Use some of the other handy Faker classes for Stripe charge amounts and email. + +```ruby +Faker::Number.between(3,10) #=> 100 + +Faker::Internet.free_email #=> "freddy@gmail.com" +``` diff --git a/doc/v1.9.2/default/subscription.md b/doc/v1.9.2/default/subscription.md new file mode 100644 index 0000000000..a14f2ec0c1 --- /dev/null +++ b/doc/v1.9.2/default/subscription.md @@ -0,0 +1,13 @@ +# Faker::Subscription + +```ruby +Faker::Subscription.plan #=> "Platinum" + +Faker::Subscription.status #=> "Active" + +Faker::Subscription.payment_method #=> "Paypal" + +Faker::Subscription.subscription_term #=> "Annual" + +Faker::Subscription.payment_term #=> "Monthly" +``` diff --git a/doc/v1.9.2/default/superhero.md b/doc/v1.9.2/default/superhero.md new file mode 100644 index 0000000000..0d08f9c592 --- /dev/null +++ b/doc/v1.9.2/default/superhero.md @@ -0,0 +1,20 @@ +# Faker::Superhero + +Available since version 1.6.2. + +```ruby +# Random Superhero name +Faker::Superhero.name #=> "Magnificent Shatterstar" + +# Random Superhero power +Faker::Superhero.power #=> "Photokinesis" + +# Random Superhero prefix +Faker::Superhero.prefix #=> "Captain" + +# Random Superhero suffix +Faker::Superhero.suffix #=> "the Fated" + +# Random Superhero descriptor +Faker::Superhero.descriptor #=> "Bizarro" +``` diff --git a/doc/v1.9.2/default/team.md b/doc/v1.9.2/default/team.md new file mode 100644 index 0000000000..eb828a9d0a --- /dev/null +++ b/doc/v1.9.2/default/team.md @@ -0,0 +1,18 @@ +# Faker::Team + +```ruby +# Random Team Creature +Faker::Team.creature #=> "gooses" + +# Random Team Name created from random US State (Faker::Address.state) prepended to a random Team Creature +Faker::Team.name #=> "Oregon vixens" + +# Random Team State +Faker::Team.state #=> "Oregon" + +# Random Team Sport +Faker::Team.sport #=> "lacrosse" + +# Random Team Mascot +Faker::Team.mascot #=> "Hugo" +``` diff --git a/doc/v1.9.2/default/time.md b/doc/v1.9.2/default/time.md new file mode 100644 index 0000000000..a5f283f9dd --- /dev/null +++ b/doc/v1.9.2/default/time.md @@ -0,0 +1,24 @@ +# Faker::Time + +```ruby +# Random date between dates +Faker::Time.between(DateTime.now - 1, DateTime.now) #=> "2014-09-18 12:30:59 -0700" + +# Random date between dates (within specified part of the day) +# You can install the as-duration gem to facilitate time manipulation like 45.minutes + 2.hours +# (not needed if you already have activesupport, which is included with Rails) +require 'as-duration' +Faker::Time.between(2.days.ago, Date.today, :all) #=> "2014-09-19 07:03:30 -0700" +Faker::Time.between(2.days.ago, Date.today, :day) #=> "2014-09-18 16:28:13 -0700" +Faker::Time.between(2.days.ago, Date.today, :night) #=> "2014-09-20 19:39:38 -0700" +Faker::Time.between(2.days.ago, Date.today, :morning) #=> "2014-09-19 08:07:52 -0700" +Faker::Time.between(2.days.ago, Date.today, :afternoon) #=> "2014-09-18 12:10:34 -0700" +Faker::Time.between(2.days.ago, Date.today, :evening) #=> "2014-09-19 20:21:03 -0700" +Faker::Time.between(2.days.ago, Date.today, :midnight) #=> "2014-09-20 00:40:14 -0700" + +# Random time in the future (up to maximum of N days) +Faker::Time.forward(23, :morning) # => "2014-09-26 06:54:47 -0700" + +# Random time in the past (up to maximum of N days) +Faker::Time.backward(14, :evening) #=> "2014-09-17 19:56:33 -0700" +``` diff --git a/doc/v1.9.2/default/twitter.md b/doc/v1.9.2/default/twitter.md new file mode 100644 index 0000000000..b81dfb6d54 --- /dev/null +++ b/doc/v1.9.2/default/twitter.md @@ -0,0 +1,27 @@ +# Faker::Twitter + +Available since version 1.7.3. + +Generate realistic Twitter user and status objects similar to what you would get back from the API. + +```json +{ + "created_at": "Mon Dec 10 00:00:00 +0000 2012", + "id": 8821452687517076614, + "id_str": "8821452687517076614", + "text": "Ea et laboriosam vel non.", + // ... +} +``` + +```ruby +Faker::Twitter.user #=> {:id=>8821452687517076614, :name=>"Lincoln Paucek", :screen_name=>"cody"... +Faker::Twitter.user(include_status: false) # Just get a user object with no embed status +Faker::Twitter.user(include_email: true) # Simulate an authenticated user with the email permission + +Faker::Twitter.status #=> {:id=>8821452687517076614, :text=>"Ea et laboriosam vel non."... +Faker::Twitter.status(include_user: false) # Just get a status object with no embed user +Faker::Twitter.status(include_photo: true) # Includes entities for an attached image + +Faker::Twitter.screen_name #=> "audreanne_hackett" +``` diff --git a/doc/v1.9.2/default/types.md b/doc/v1.9.2/default/types.md new file mode 100644 index 0000000000..889d370221 --- /dev/null +++ b/doc/v1.9.2/default/types.md @@ -0,0 +1,31 @@ +# Faker::Types + +```ruby +# Random String created from word (Faker::Lorem.word) +Faker::Types.rb_string #=> "foobar" + +# Random Character a-z, 0-9 +Faker::Types.character #=> "n" + +# Random Integer +Faker::Types.rb_integer #=> 1 + +# Random Hash (with random keys and values) +Faker::Types.rb_hash #=> {name: "bob"} +Faker::Types.rb_hash(1) #=> {name: "bob"} +Faker::Types.rb_hash(2) #=> {name: "bob", last: "marley"} + +# Random Complex Hash (values include other hashes and arrays) +Faker::Types.complex_rb_hash #=> {user: {first: "bob", last: "marley"}} +Faker::Types.complex_rb_hash(1) #=> {user: {first: "bob", last: "marley"}} +Faker::Types.complex_rb_hash(2) #=> {user: {first: "bob", last: "marley"}, son: ["damien", "marley"]} + +# Random Array +Faker::Types.rb_array #=> ["a", 1, 2, "bob"] + +# Random Type (string, or integer) +Faker::Types.random_type #=> 1 or "a" or "bob" + +# Random Complex Type (string, integer, array, or hash) +Faker::Types.random_complex_type #=> 1 or "a" or "bob" or {foo: "bar"} +``` diff --git a/doc/v1.9.2/default/university.md b/doc/v1.9.2/default/university.md new file mode 100644 index 0000000000..c7d9a7e4a8 --- /dev/null +++ b/doc/v1.9.2/default/university.md @@ -0,0 +1,20 @@ +# Faker::University + +Available since version 1.5.0. + +```ruby +# Random University Name +Faker::University.name #=> "South Texas College" + +# Random University Prefix +Faker::University.prefix #=> "North" + +# Random University Suffix +Faker::University.suffix #=> "Institute" + +# Random Greek Organization +Faker::University.greek_organization #=> "ABΓ" + +# Greek Alphabet +Faker::University.greek_alphabet #=> ["Α", "B", "Γ", "Δ", ...] +``` diff --git a/doc/v1.9.2/default/vehicle.md b/doc/v1.9.2/default/vehicle.md new file mode 100644 index 0000000000..75284d147c --- /dev/null +++ b/doc/v1.9.2/default/vehicle.md @@ -0,0 +1,65 @@ +# Faker::Vehicle + +Available since version 1.6.4. + +```ruby +Faker::Vehicle.vin #=> "LLDWXZLG77VK2LUUF" + +# Random vehicle manufacturer +Faker::Vehicle.manufacture #=> "Lamborghini" +Faker::Vehicle.make #=> "Honda" + +# Random vehicle model +Faker::Vehicle.model #=> "A8" +Faker::Vehicle.model('Toyota') #=> "Prius" +Faker::Vehicle.make_and_model #=> "Dodge Charger" + +# Random vehicle color +Faker::Vehicle.color #=> "Red" + +# Random vehicle transmission +Faker::Vehicle.transmission #=> "Automanual" + +# Random vehicle drive type +Faker::Vehicle.drive_type #=> "4x2/2-wheel drive" + +# Random vehicle fuel type +Faker::Vehicle.fuel_type #=> "Diesel" + +# Random vehicle style +Faker::Vehicle.style #=> "ESi" + +# Random car type +Faker::Vehicle.car_type #=> "Sedan" + +# Random car options +Faker::Vehicle.car_options #=> ["DVD System", "MP3 (Single Disc)", "Tow Package", "CD (Multi Disc)", "Cassette Player", "Bucket Seats", "Cassette Player", "Leather Interior", "AM/FM Stereo", "Third Row Seats"] + +# Random standard car specs +Faker::Vehicle.standard_specs #=> ["Full-size spare tire w/aluminum alloy wheel", "Back-up camera", "Carpeted cargo area", "Silver accent IP trim finisher -inc: silver shifter finisher", "Back-up camera", "Water-repellent windshield & front door glass", "Floor carpeting"] + +# Random number of doors +Faker::Vehicle.doors #=> 1 +Faker::Vehicle.door_count #=> 3 + +# Random engine size +Faker::Vehicle.engine_size #=> 6 +Faker::Vehicle.engine #=> 4 + +# Random car year +# Between 1 and 15 years ago +Faker::Vehicle.year #=> 2008 + +# Random mileage/kilometrage +Faker::Vehicle.mileage #=> 26961 +Faker::Vehicle.mileage(50_000) #=> 81557 +Faker::Vehicle.mileage(50_000, 250_000) #=> 117503 +Faker::Vehicle.kilometrage #=> 35378 + +# Random vehicle license plate (USA by default) +Faker::Vehicle.license_plate #=> "DEP-2483" +Faker::Vehicle.license_plate('FL') #=> "977 UNU" + +# Random vehicle license plate for Singapore (if locale is set) +Faker::Vehicle.singapore_license_plate #=> "SLV1854M" +``` diff --git a/doc/v1.9.2/default/verbs.md b/doc/v1.9.2/default/verbs.md new file mode 100644 index 0000000000..6457b9dc08 --- /dev/null +++ b/doc/v1.9.2/default/verbs.md @@ -0,0 +1,13 @@ +# Faker::Verb + +```ruby +Faker::Verb.base #=> "hurt" + +Faker::Verb.past #=> "completed" + +Faker::Verb.past_participle #=> "digested" + +Faker::Verb.simple_present #=> "climbs" + +Faker::Verb.ing_form #=> "causing" +``` diff --git a/doc/v1.9.2/default/world_cup.md b/doc/v1.9.2/default/world_cup.md new file mode 100644 index 0000000000..f949b8a711 --- /dev/null +++ b/doc/v1.9.2/default/world_cup.md @@ -0,0 +1,19 @@ +# Faker::WorldCup + +Available since version 1.9.0. + +```ruby +Faker::WorldCup.team #=> "South Korea" + +Faker::WorldCup.stadium #=> "Ekaterinburg Arena" + +Faker::WorldCup.city #=> "Saint Petersburg" + +Faker::WorldCup.group #=> "Egypt" + +Faker::WorldCup.group('group_A') #=> "Saudi Arabia" + +Faker::WorldCup.roster #=> "Héctor Cúper" + +Faker::WorldCup.roster('Russia', 'coach') #=> "Stanislav Cherchesov" +``` diff --git a/doc/v1.9.2/games/dota.md b/doc/v1.9.2/games/dota.md new file mode 100644 index 0000000000..1c154e4527 --- /dev/null +++ b/doc/v1.9.2/games/dota.md @@ -0,0 +1,22 @@ +# Faker::Games::Dota + +Available since version 1.9.0. + +```ruby +# Random hero +Faker::Games::Dota.hero #=> "Abaddon" + +# Random item +Faker::Games::Dota.item #=> "You have called death upon yourself." + +# Random team +Faker::Games::Dota.team #=> "Evil Geniuses" + +# Random player +Faker::Games::Dota.player #=> "Dendi" + +# Random quote +# by default if you don't pass the hero parameter, the quote method will set hero as 'abbadon' +Faker::Games::Dota.quote #=> "Easy now, this stuff is explosive!" +Faker::Games::Dota.quote(hero: 'alchemist') #=> "Better living through alchemy!" +``` diff --git a/doc/v1.9.2/games/elder_scrolls.md b/doc/v1.9.2/games/elder_scrolls.md new file mode 100644 index 0000000000..62896178e9 --- /dev/null +++ b/doc/v1.9.2/games/elder_scrolls.md @@ -0,0 +1,19 @@ +# Faker::Games::ElderScrolls + +```ruby +Faker::Games::ElderScrolls.race #=> Argonian + +Faker::Games::ElderScrolls.city #=> Solitude + +Faker::Games::ElderScrolls.creature #=> Frost Troll + +Faker::Games::ElderScrolls.region #=> Cyrodiil + +Faker::Games::ElderScrolls.dragon #=> Blood Dragon + +Faker::Games::ElderScrolls.first_name #=> Astrid + +Faker::Games::ElderScrolls.last_name #=> Mallory + +Faker::Games::ElderScrolls.name #=> Babette Brill +``` diff --git a/doc/v1.9.2/games/fallout.md b/doc/v1.9.2/games/fallout.md new file mode 100644 index 0000000000..60fb76d634 --- /dev/null +++ b/doc/v1.9.2/games/fallout.md @@ -0,0 +1,11 @@ +# Faker::Games::Fallout + +```ruby +Faker::Games::Fallout.character #=> "Dogmeat" + +Faker::Games::Fallout.faction #=> "The Institute" + +Faker::Games::Fallout.location #=> "Capital Wasteland" + +Faker::Games::Fallout.quote #=> "Democracy is non-negotiable" +``` diff --git a/doc/v1.9.2/games/half_life.md b/doc/v1.9.2/games/half_life.md new file mode 100644 index 0000000000..cd2172dc73 --- /dev/null +++ b/doc/v1.9.2/games/half_life.md @@ -0,0 +1,14 @@ +# Faker::Games::HalfLife + +It might be available in the next version. + +```ruby +# Any character from the game +Faker::Games::HalfLife.character #=> "Gordon Freeman" + +# Any enemy from the game +Faker::Games::HalfLife.enemy #=> "Houndeye" + +# Any location from the game +Faker::Games::HalfLife.location #=> "Black Mesa Research Facility" +``` diff --git a/doc/v1.9.2/games/heroes.md b/doc/v1.9.2/games/heroes.md new file mode 100644 index 0000000000..0448548282 --- /dev/null +++ b/doc/v1.9.2/games/heroes.md @@ -0,0 +1,11 @@ +# Faker::Games::House + +It might be available in the next version. + + ```ruby +Faker::Games::Heroes.name #=> "Christian" + +Faker::Games::Heroes.specialty #=> "Ballista" + +Faker::Games::Heroes.klass #=> "Knight" +``` diff --git a/doc/v1.9.2/games/heroes_of_the_storm.md b/doc/v1.9.2/games/heroes_of_the_storm.md new file mode 100644 index 0000000000..837ccd070d --- /dev/null +++ b/doc/v1.9.2/games/heroes_of_the_storm.md @@ -0,0 +1,13 @@ +# Faker::Games::HeroesOfTheStorm + +It might be available in the next version. + +```ruby +Faker::Games::HeroesOfTheStorm.battleground #=> "Towers of Doom" + +Faker::Games::HeroesOfTheStorm.class #=> "Support" + +Faker::Games::HeroesOfTheStorm.hero #=> "Illidan" + +Faker::Games::HeroesOfTheStorm.quote #=> "MEAT!!!" +``` diff --git a/doc/v1.9.2/games/league_of_legends.md b/doc/v1.9.2/games/league_of_legends.md new file mode 100644 index 0000000000..52a8c54a33 --- /dev/null +++ b/doc/v1.9.2/games/league_of_legends.md @@ -0,0 +1,17 @@ +# Faker::Games::LeagueOfLegends + +Available since version 1.8.0. + +```ruby +Faker::Games::LeagueOfLegends.champion #=> "Jarvan IV" + +Faker::Games::LeagueOfLegends.location #=> "Demacia" + +Faker::Games::LeagueOfLegends.quote #=> "Purge the unjust." + +Faker::Games::LeagueOfLegends.summoner_spell #=> "Flash" + +Faker::Games::LeagueOfLegends.masteries #=> "Double Edged Sword" + +Faker::Games::LeagueOfLegends.rank #=> "Bronze V" +``` diff --git a/doc/v1.9.2/games/myst.md b/doc/v1.9.2/games/myst.md new file mode 100644 index 0000000000..69df99783e --- /dev/null +++ b/doc/v1.9.2/games/myst.md @@ -0,0 +1,15 @@ +# Faker::Games::Myst + +Available since version 1.9.0. + +```ruby +Faker::Games::Myst.game #=> "Myst III: Exile" + +Faker::Games::Myst.creature #=> "squee" + +Faker::Games::Myst.age #=> "Relto" + +Faker::Games::Myst.character #=> "Gehn" + +Faker::Games::Myst.quote #=> "I realized, the moment I fell into the fissure, that the Book would not be destroyed as I had planned." +``` diff --git a/doc/v1.9.2/games/overwatch.md b/doc/v1.9.2/games/overwatch.md new file mode 100644 index 0000000000..af3291215d --- /dev/null +++ b/doc/v1.9.2/games/overwatch.md @@ -0,0 +1,11 @@ +# Faker::Games::Overwatch + +Available since version 1.8.0. + +```ruby +Faker::Games::Overwatch.hero #=> "Tracer" + +Faker::Games::Overwatch.location #=> "Numbani" + +Faker::Games::Overwatch.quote #=> "It's high noon" +``` diff --git a/doc/v1.9.2/games/pokemon.md b/doc/v1.9.2/games/pokemon.md new file mode 100644 index 0000000000..ec056a9d83 --- /dev/null +++ b/doc/v1.9.2/games/pokemon.md @@ -0,0 +1,11 @@ +# Faker::Games::Pokemon + +Available since version 1.7.0. + +```ruby +Faker::Games::Pokemon.name #=> "Pikachu" + +Faker::Games::Pokemon.location #=> "Pallet Town" + +Faker::Games::Pokemon.move #=> "Thunder Shock" +``` diff --git a/doc/v1.9.2/games/sonic_the_hedgehog.md b/doc/v1.9.2/games/sonic_the_hedgehog.md new file mode 100644 index 0000000000..5620544e4e --- /dev/null +++ b/doc/v1.9.2/games/sonic_the_hedgehog.md @@ -0,0 +1,12 @@ +# Faker::Games::SonicTheHedgehog + +```ruby +# Any character from the games +Faker::Games::SonicTheHedgehog.character #=> "Sonic the Hedgehog" + +# Any zone from the series +Faker::Games::SonicTheHedgehog.zone #=> "The Legend of Zelda Zone" + +# Any game from the franchise +Faker::Games::SonicTheHedgehog.game #=> "Waku Waku Sonic Patrol Car" +``` diff --git a/doc/v1.9.2/games/super_smash_bros.md b/doc/v1.9.2/games/super_smash_bros.md new file mode 100644 index 0000000000..4f133fc237 --- /dev/null +++ b/doc/v1.9.2/games/super_smash_bros.md @@ -0,0 +1,11 @@ +# Faker::Games::SuperSmashBros + +Data up to date as of October 2018, preceding any final announcements on *Super Smash Bros. Ultimate*. + +```ruby +# Any playable fighter from the series +Faker::Games::SuperSmashBros.fighter #=> "Simon Belmont" + +# Any stage from the series +Faker::Games::SuperSmashBros.stage #=> "Temple" +``` diff --git a/doc/v1.9.2/games/witcher.md b/doc/v1.9.2/games/witcher.md new file mode 100644 index 0000000000..f3d29d5459 --- /dev/null +++ b/doc/v1.9.2/games/witcher.md @@ -0,0 +1,15 @@ +# Faker::Games::Witcher + +```ruby + +Faker::Games::Witcher.character # => "Triss Merigold" + +Faker::Games::Witcher.witcher # => "Geralt of Rivia" + +Faker::Games::Witcher.location # => "Novigrad" + +Faker::Games::Witcher.school # => "Wolf" + +Faker::Games::Witcher.quote # => "No Lollygagin'!" + +Faker::Games::Witcher.monster # => "Katakan" diff --git a/doc/v1.9.2/games/world_of_warcraft.md b/doc/v1.9.2/games/world_of_warcraft.md new file mode 100644 index 0000000000..78473e49a1 --- /dev/null +++ b/doc/v1.9.2/games/world_of_warcraft.md @@ -0,0 +1,9 @@ +# Faker::Games::WorldOfWarcraft + +```ruby +# Generate random character from the World of Warcraft +Faker::Games::WorldOfWarcraft.hero #=> "Uther the Lightbringer" + +# Generate random quote from the World of Warcraft +Faker::Games::WorldOfWarcraft.quote #=> "These are dark times indeed." +``` diff --git a/doc/v1.9.2/games/zelda.md b/doc/v1.9.2/games/zelda.md new file mode 100644 index 0000000000..20ab305661 --- /dev/null +++ b/doc/v1.9.2/games/zelda.md @@ -0,0 +1,17 @@ +# Faker::Games::Zelda + +Available since version 1.7.3. + +```ruby +# Random Zelda game +Faker::Games::Zelda.game #=> "Ocarina of Time" + +# Random Zelda character +Faker::Games::Zelda.character #=> "Guru-Guru" + +# Random Zelda location +Faker::Games::Zelda.location #=> "Tarrey Town" + +# Random Zelda item +Faker::Games::Zelda.item #=> "Master Sword" +``` diff --git a/doc/v1.9.2/japanese_media/dragon_ball.md b/doc/v1.9.2/japanese_media/dragon_ball.md new file mode 100644 index 0000000000..0480cb65cf --- /dev/null +++ b/doc/v1.9.2/japanese_media/dragon_ball.md @@ -0,0 +1,7 @@ +# Faker::JapaneseMedia::DragonBall + +Available since version 1.8.0. + +```ruby +Faker::JapaneseMedia::DragonBall.character #=> "Goku" +``` diff --git a/doc/v1.9.2/japanese_media/one_piece.md b/doc/v1.9.2/japanese_media/one_piece.md new file mode 100644 index 0000000000..8899766279 --- /dev/null +++ b/doc/v1.9.2/japanese_media/one_piece.md @@ -0,0 +1,15 @@ +# Faker::JapaneseMedia::OnePiece + +```ruby +Faker::JapaneseMedia::OnePiece.character #=> "Monkey D. Luffy" + +Faker::JapaneseMedia::OnePiece.sea #=> "East Blue" + +Faker::JapaneseMedia::OnePiece.island #=> "Laftel" + +Faker::JapaneseMedia::OnePiece.location #=> "Foosha Village" + +Faker::JapaneseMedia::OnePiece.quote #=> "ONE PIECE IS REAL!" + +Faker::JapaneseMedia::OnePiece.akuma_no_mi #=> "Gomu Gomu no Mi" +``` diff --git a/doc/v1.9.2/japanese_media/sword_art_online.md b/doc/v1.9.2/japanese_media/sword_art_online.md new file mode 100644 index 0000000000..5f2fb95931 --- /dev/null +++ b/doc/v1.9.2/japanese_media/sword_art_online.md @@ -0,0 +1,18 @@ +# Faker::JapaneseMedia::SwordArtOnline + +Available since version 1.9.0. + +```ruby +# Random Sword Art Online real name +Faker::JapaneseMedia::SwordArtOnline.real_name #=> "Kirigaya Kazuto" + +# Random Sword Art Online game name +Faker::JapaneseMedia::SwordArtOnline.game_name #=> "Silica" + +# Random Sword Art Online location +Faker::JapaneseMedia::SwordArtOnline.location #=> "Ruby Palace" + +# Random Sword Art Online item +Faker::JapaneseMedia::SwordArtOnline.item #=> "Blackwyrm Coat" + +``` diff --git a/doc/v1.9.2/movies/back_to_the_future.md b/doc/v1.9.2/movies/back_to_the_future.md new file mode 100644 index 0000000000..cc21c58b5d --- /dev/null +++ b/doc/v1.9.2/movies/back_to_the_future.md @@ -0,0 +1,9 @@ +# Faker::Movies::BackToTheFuture + +```ruby +Faker::Movies::BackToTheFuture.character #=> "Marty McFly" + +Faker::Movies::BackToTheFuture.date #=> "November 5, 1955" + +Faker::Movies::BackToTheFuture.quote #=> "Roads? Where we're going, we don't need roads." +``` diff --git a/doc/v1.9.2/movies/ghostbusters.md b/doc/v1.9.2/movies/ghostbusters.md new file mode 100644 index 0000000000..4b176d818b --- /dev/null +++ b/doc/v1.9.2/movies/ghostbusters.md @@ -0,0 +1,13 @@ +# Faker::Ghostbusters + +It might be available in the next version. + +```ruby + +Faker::Movies::Ghostbusters.actor #=> "Bill Murray" + +Faker::Movies::Ghostbusters.character #=> "Dr. Egon Spengler" + +Faker::Movies::Ghostbusters.quote #=> "I tried to think of the most harmless thing. Something I loved from my childhood. Something that could never ever possibly destroy us. Mr. Stay Puft!"," + +``` diff --git a/doc/v1.9.2/movies/grateful_dead.md b/doc/v1.9.2/movies/grateful_dead.md new file mode 100644 index 0000000000..7f3d441827 --- /dev/null +++ b/doc/v1.9.2/movies/grateful_dead.md @@ -0,0 +1,9 @@ +# Faker::Movies::GratefulDead + +It might be available in the next version. + +```ruby + Faker::Movies::GratefulDead.player #=> "Jerry Garcia" + + Faker::Movies::GratefulDead.song #=> "China Cat Sunflower" +``` diff --git a/doc/v1.9.2/movies/harry_potter.md b/doc/v1.9.2/movies/harry_potter.md new file mode 100755 index 0000000000..b38f1d825e --- /dev/null +++ b/doc/v1.9.2/movies/harry_potter.md @@ -0,0 +1,17 @@ +# Faker::Movies::HarryPotter + +Available since version 1.7.3. + +```ruby +Faker::Movies::HarryPotter.character #=> "Harry Potter" + +Faker::Movies::HarryPotter.location #=> "Hogwarts" + +Faker::Movies::HarryPotter.quote #=> "I solemnly swear that I am up to no good." + +Faker::Movies::HarryPotter.book #=> "Harry Potter and the Chamber of Secrets" + +Faker::Movies::HarryPotter.house #=> "Gryffindor" + +Faker::Movies::HarryPotter.spell #=> "Reparo" +``` diff --git a/doc/v1.9.2/movies/hitchhikers_guide_to_the_galaxy.md b/doc/v1.9.2/movies/hitchhikers_guide_to_the_galaxy.md new file mode 100755 index 0000000000..30d2d866fd --- /dev/null +++ b/doc/v1.9.2/movies/hitchhikers_guide_to_the_galaxy.md @@ -0,0 +1,19 @@ +# Faker::Movies::HitchhikersGuideToTheGalaxy + +Available since version 1.8.0. + +```ruby +Faker::Movies::HitchhikersGuideToTheGalaxy.character #=> "Marvin" + +Faker::Movies::HitchhikersGuideToTheGalaxy.location #=> "Arthur Dent's house" + +Faker::Movies::HitchhikersGuideToTheGalaxy.marvin_quote #=> "Life? Don't talk to me about life." + +Faker::Movies::HitchhikersGuideToTheGalaxy.planet #=> "Magrathea" + +Faker::Movies::HitchhikersGuideToTheGalaxy.quote #=> "In the beginning, the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." + +Faker::Movies::HitchhikersGuideToTheGalaxy.specie #=> "Perfectly Normal Beast" + +Faker::Movies::HitchhikersGuideToTheGalaxy.starship #=> "Vogon Constructor Fleet" +``` diff --git a/doc/v1.9.2/movies/hobbit.md b/doc/v1.9.2/movies/hobbit.md new file mode 100755 index 0000000000..8562be1594 --- /dev/null +++ b/doc/v1.9.2/movies/hobbit.md @@ -0,0 +1,15 @@ +# Faker::Movies::Hobbit + +Available since version 1.8.0. + +```ruby +# Any character from the book +Faker::Movies::Hobbit.character #=> "Gandalf the Grey" + +# One of the 13 dwarves from the Company, or Gandalf, or Bilbo +Faker::Movies::Hobbit.thorins_company #=> "Thorin Oakenshield" + +Faker::Movies::Hobbit.quote #=> "Never laugh at live dragons, Bilbo you fool!" + +Faker::Movies::Hobbit.location #=> "The Shire" +``` diff --git a/doc/v1.9.2/movies/lebowski.md b/doc/v1.9.2/movies/lebowski.md new file mode 100644 index 0000000000..685a1b3033 --- /dev/null +++ b/doc/v1.9.2/movies/lebowski.md @@ -0,0 +1,11 @@ +# Faker::Movies::Lebowski + +Available since version 1.8.8. + +```ruby +Faker::Movies::Lebowski.actor #=> "John Goodman" + +Faker::Movies::Lebowski.character #=> "Jackie Treehorn" + +Faker::Movies::Lebowski.quote #=> "Forget it, Donny, you're out of your element!" +``` diff --git a/doc/v1.9.2/movies/lord_of_the_rings.md b/doc/v1.9.2/movies/lord_of_the_rings.md new file mode 100644 index 0000000000..81c65dec06 --- /dev/null +++ b/doc/v1.9.2/movies/lord_of_the_rings.md @@ -0,0 +1,7 @@ +# Faker::Movies::LordOfTheRings + +```ruby +Faker::Movies::LordOfTheRings.character #=> "Legolas" + +Faker::Movies::LordOfTheRings.location #=> "Helm's Deep" +``` diff --git a/doc/v1.9.2/movies/movie.md b/doc/v1.9.2/movies/movie.md new file mode 100644 index 0000000000..dadddba94f --- /dev/null +++ b/doc/v1.9.2/movies/movie.md @@ -0,0 +1,5 @@ +# Faker::Movie + +```ruby + Faker::Movie.quote #=> "Bumble bee tuna" +``` diff --git a/doc/v1.9.2/movies/princess_bride.md b/doc/v1.9.2/movies/princess_bride.md new file mode 100644 index 0000000000..84ef45cde4 --- /dev/null +++ b/doc/v1.9.2/movies/princess_bride.md @@ -0,0 +1,9 @@ +# Faker::Movies::PrincessBride + +Available since version 1.9.0. + +```ruby +Faker::Movies::PrincessBride.character #=> "Dread Pirate Roberts" + +Faker::Movies::PrincessBride.quote #=> "Hello. My name is Inigo Montoya. You killed my father. Prepare to die!" +``` diff --git a/doc/v1.9.2/movies/star_wars.md b/doc/v1.9.2/movies/star_wars.md new file mode 100644 index 0000000000..dd60d8548b --- /dev/null +++ b/doc/v1.9.2/movies/star_wars.md @@ -0,0 +1,27 @@ +# Faker::Movies::StarWars + +Available since version 1.6.2. + +```ruby +Faker::Movies::StarWars.call_squadron #=> "Green" + +Faker::Movies::StarWars.call_sign #=> "Grey 5" + +Faker::Movies::StarWars.call_number #=> "Leader" + +Faker::Movies::StarWars.character #=> "Anakin Skywalker" + +Faker::Movies::StarWars.droid #=> "C-3PO" + +Faker::Movies::StarWars.planet #=> "Tatooine" + +Faker::Movies::StarWars.quote #=> "Aren’t you a little short for a Stormtrooper?" + +Faker::Movies::StarWars.quote("leia_organa") #=> "Aren’t you a little short for a Stormtrooper?" + +Faker::Movies::StarWars.specie #=> "Gungan" + +Faker::Movies::StarWars.vehicle #=> "Sandcrawler" + +Faker::Movies::StarWars.wookiee_sentence #=> "Yrroonn ru ooma roo ahuma ur roooarrgh hnn-rowr." +``` diff --git a/doc/v1.9.2/movies/v_for_vendetta.md b/doc/v1.9.2/movies/v_for_vendetta.md new file mode 100644 index 0000000000..ff2ee0ec2b --- /dev/null +++ b/doc/v1.9.2/movies/v_for_vendetta.md @@ -0,0 +1,9 @@ +# Faker::Movies::VForVendetta + +```ruby +Faker::Movies::VForVendetta.character #=> "V" + +Faker::Movies::VForVendetta.speech #=> "Remember, remember, the Fifth of November, the Gunpowder Treason and Plot. I know of no reason why the Gunpowder Treason should ever be forgot..." + +Faker::Movies::VForVendetta.quote #=> "People should not be afraid of their governments. Governments should be afraid of their people." +``` diff --git a/doc/v1.9.2/music/music.md b/doc/v1.9.2/music/music.md new file mode 100644 index 0000000000..022b0e12e4 --- /dev/null +++ b/doc/v1.9.2/music/music.md @@ -0,0 +1,17 @@ +# Faker::Music + +Available since version 1.6.4. + +```ruby +Faker::Music.key #=> "C" + +Faker::Music.chord #=> "Amaj7" + +Faker::Music.instrument #=> "Ukelele" + +Faker::Music.band #=> "The Beatles" + +Faker::Music.album #=> "Sgt. Pepper's Lonely Hearts Club" + +Faker::Music.genre #=> "Rock" +``` diff --git a/doc/v1.9.2/music/phish.md b/doc/v1.9.2/music/phish.md new file mode 100644 index 0000000000..8d5c38fb15 --- /dev/null +++ b/doc/v1.9.2/music/phish.md @@ -0,0 +1,5 @@ +# Faker::Music::Phish + +```ruby +Faker::Music::Phish.song #=> "Tweezer" +``` diff --git a/doc/v1.9.2/music/rock_band.md b/doc/v1.9.2/music/rock_band.md new file mode 100755 index 0000000000..cb3a5b018f --- /dev/null +++ b/doc/v1.9.2/music/rock_band.md @@ -0,0 +1,5 @@ +# Faker::Music::RockBand + +```ruby +Faker::Music::RockBand.name #=> "Led Zeppelin" +``` diff --git a/doc/v1.9.2/music/umphreys_mcgee.md b/doc/v1.9.2/music/umphreys_mcgee.md new file mode 100755 index 0000000000..3c5185597a --- /dev/null +++ b/doc/v1.9.2/music/umphreys_mcgee.md @@ -0,0 +1,5 @@ +# Faker::Music::UmphreysMcgee + +```ruby +Faker::Music::UmphreysMcgee.song #=> "Dump City" +``` diff --git a/doc/v1.9.2/quotes/quote.md b/doc/v1.9.2/quotes/quote.md new file mode 100644 index 0000000000..6b74aa5dbd --- /dev/null +++ b/doc/v1.9.2/quotes/quote.md @@ -0,0 +1,17 @@ +# Faker::Quote + +Available since version 1.9.0. + +```ruby +Faker::Quote.famous_last_words #=> "My vocabulary did this to me. Your love will let you go on…" + +Faker::Quote.matz #=> "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better." + +Faker::Quote.most_interesting_man_in_the_world #=> "He can speak Russian… in French" + +Faker::Quote.robin #=> "Holy Razors Edge" + +Faker::Quote.singular_siegler #=> "Texas!" + +Faker::Quote.yoda #=> "Use your feelings, Obi-Wan, and find him you will." +``` diff --git a/doc/v1.9.2/quotes/shakespeare.md b/doc/v1.9.2/quotes/shakespeare.md new file mode 100644 index 0000000000..752b9fe5e6 --- /dev/null +++ b/doc/v1.9.2/quotes/shakespeare.md @@ -0,0 +1,8 @@ +# Faker::Quotes::Shakespeare + +```ruby +Faker::Quotes::Shakespeare.hamlet_quote # => "To be, or not to be: that is the question." +Faker::Quotes::Shakespeare.as_you_like_it_quote # => "Can one desire too much of a good thing?." +Faker::Quotes::Shakespeare.king_richard_iii_quote # => "Now is the winter of our discontent." +Faker::Quotes::Shakespeare.romeo_and_juliet_quote # => "O Romeo, Romeo! wherefore art thou Romeo?." +``` diff --git a/doc/v1.9.2/tv_shows/aqua_teen_hunger_force.md b/doc/v1.9.2/tv_shows/aqua_teen_hunger_force.md new file mode 100644 index 0000000000..fc987c8e22 --- /dev/null +++ b/doc/v1.9.2/tv_shows/aqua_teen_hunger_force.md @@ -0,0 +1,5 @@ +# Faker::TvShows::AquaTeenHungerForce + +```ruby +Faker::TvShows::AquaTeenHungerForce.character #=> "Master Shake" +``` diff --git a/doc/v1.9.2/tv_shows/bojack_horseman.md b/doc/v1.9.2/tv_shows/bojack_horseman.md new file mode 100644 index 0000000000..2e2980c833 --- /dev/null +++ b/doc/v1.9.2/tv_shows/bojack_horseman.md @@ -0,0 +1,10 @@ +# Faker::TvShows::BojackHorseman + + +```ruby +Faker::TvShows::BojackHorseman.character #=> "BoJack Horseman"" + +Faker::TvShows::BojackHorseman.tongue_twister #=> "Did you steal a meal from Neal McBeal the Navy Seal?" + +Faker::TvShows::BojackHorseman.quote #=> "Not understanding that you're a horrible person doesn't make you less of a horrible person" +``` diff --git a/doc/v1.9.2/tv_shows/breaking_bad.md b/doc/v1.9.2/tv_shows/breaking_bad.md new file mode 100644 index 0000000000..1de5d7aab1 --- /dev/null +++ b/doc/v1.9.2/tv_shows/breaking_bad.md @@ -0,0 +1,9 @@ +# Faker::TvShows::BreakingBad + +Available since version 1.8.8. + +```ruby +Faker::TvShows::BreakingBad.character #=> "Walter White" + +Faker::TvShows::BreakingBad.episode #=> "Cancer Man" +``` diff --git a/doc/v1.9.2/tv_shows/buffy.md b/doc/v1.9.2/tv_shows/buffy.md new file mode 100644 index 0000000000..f58129b8af --- /dev/null +++ b/doc/v1.9.2/tv_shows/buffy.md @@ -0,0 +1,15 @@ +# Faker::TvShows::Buffy + +It might be available in the next version. + +```ruby +Faker::TvShows::Buffy.character #=> "Buffy Summers" + +Faker::TvShows::Buffy.quote #=> "If the apocalypse comes, beep me." + +Faker::TvShows::Buffy.celebrity #=> "John Ritter" + +Faker::TvShows::Buffy.big_bad #=> "Glory" + +Faker::TvShows::Buffy.episode #> "Once More, with Feeling" +``` diff --git a/doc/v1.9.2/tv_shows/community.md b/doc/v1.9.2/tv_shows/community.md new file mode 100644 index 0000000000..c65742750b --- /dev/null +++ b/doc/v1.9.2/tv_shows/community.md @@ -0,0 +1,9 @@ +# Faker::TvShows::Community + +Available since version 1.9.0. + +```ruby +Faker::TvShows::Community.characters #=> "Jeff Winger" + +Faker::TvShows::Community.quotes #=> I fear a political career could shine a negative light on my drug dealing." +``` diff --git a/doc/v1.9.2/tv_shows/dr_who.md b/doc/v1.9.2/tv_shows/dr_who.md new file mode 100644 index 0000000000..c0c06851f2 --- /dev/null +++ b/doc/v1.9.2/tv_shows/dr_who.md @@ -0,0 +1,17 @@ +# Faker::TvShows::DrWho + +```ruby +Faker::TvShows::DrWho.character #=> "Captain Jack Harkness" + +Faker::TvShows::DrWho.the_doctor #=> "Ninth Doctor" + +Faker::TvShows::DrWho.actor #=> "Matt Smith" + +Faker::TvShows::DrWho.catch_phrase #=> "Fantastic!" + +Faker::TvShows::DrWho.quote #=> "Lots of planets have a north!" + +Faker::TvShows::DrWho.villian #=> "The Master" + +Faker::TvShows::DrWho.specie #=> "Dalek" +``` diff --git a/doc/v1.9.2/tv_shows/dumb_and_dumber.md b/doc/v1.9.2/tv_shows/dumb_and_dumber.md new file mode 100644 index 0000000000..8254c089da --- /dev/null +++ b/doc/v1.9.2/tv_shows/dumb_and_dumber.md @@ -0,0 +1,11 @@ +# Faker::TvShows::DumbAndDumber + +```ruby + +Faker::TvShows::DumbAndDumber.actor #=> "Jim Carrey" + +Faker::TvShows::DumbAndDumber.character #=> "Harry Dunne" + +Faker::TvShows::DumbAndDumber.quote #=> "Why you going to the airport? Flying somewhere?" + +``` diff --git a/doc/v1.9.2/tv_shows/family_guy.md b/doc/v1.9.2/tv_shows/family_guy.md new file mode 100644 index 0000000000..d675944c1b --- /dev/null +++ b/doc/v1.9.2/tv_shows/family_guy.md @@ -0,0 +1,9 @@ +# Faker::TvShows::FamilyGuy + +```ruby +Faker::TvShows::FamilyGuy.character #=> "Peter Griffin" + +Faker::TvShows::FamilyGuy.location #=> "James Woods High" + +Faker::TvShows::FamilyGuy.quote #=> "It’s Peanut Butter Jelly Time." +``` diff --git a/doc/v1.9.2/tv_shows/friends.md b/doc/v1.9.2/tv_shows/friends.md new file mode 100644 index 0000000000..00bfa59a38 --- /dev/null +++ b/doc/v1.9.2/tv_shows/friends.md @@ -0,0 +1,11 @@ +# Faker::TvShows::Friends + +Available since version 1.7.3. + +```ruby +Faker::TvShows::Friends.character #=> "Rachel Green" + +Faker::TvShows::Friends.location #=> "Central Perk" + +Faker::TvShows::Friends.quote #=> "We were on a break!" +``` diff --git a/doc/v1.9.2/tv_shows/game_of_thrones.md b/doc/v1.9.2/tv_shows/game_of_thrones.md new file mode 100644 index 0000000000..6ba2dc62eb --- /dev/null +++ b/doc/v1.9.2/tv_shows/game_of_thrones.md @@ -0,0 +1,15 @@ +# Faker::TvShows::GameOfThrones + +Available since version 1.6.6. + +```ruby +Faker::TvShows::GameOfThrones.character #=> "Tyrion Lannister" + +Faker::TvShows::GameOfThrones.house #=> "Stark" + +Faker::TvShows::GameOfThrones.city #=> "Lannisport" + +Faker::TvShows::GameOfThrones.quote #=> "Never forget who you are. The rest of the world won't. Wear it like an armor and it can never be used against you." + +Faker::TvShows::GameOfThrones.dragon #=> "Drogon" +``` diff --git a/doc/v1.9.2/tv_shows/hey_arnold.md b/doc/v1.9.2/tv_shows/hey_arnold.md new file mode 100644 index 0000000000..93a505c5d4 --- /dev/null +++ b/doc/v1.9.2/tv_shows/hey_arnold.md @@ -0,0 +1,13 @@ +# Faker::TvShows::HeyArnold + +Available since version 1.8.0. + +```ruby + +Faker::TvShows::HeyArnold.character #=> "Arnold" + +Faker::TvShows::HeyArnold.location #=> "Big Bob's Beeper Emporium" + +Faker::TvShows::HeyArnold.quote #=> "Stoop Kid's afraid to leave his stoop!" + +``` diff --git a/doc/v1.9.2/tv_shows/how_i_met_your_mother.md b/doc/v1.9.2/tv_shows/how_i_met_your_mother.md new file mode 100644 index 0000000000..948fb65b83 --- /dev/null +++ b/doc/v1.9.2/tv_shows/how_i_met_your_mother.md @@ -0,0 +1,13 @@ +# Faker::TvShows::HowIMetYourMother + +Available since version 1.8.0. + +```ruby +Faker::TvShows::HowIMetYourMother.character #=> "Barney Stinson" + +Faker::TvShows::HowIMetYourMother.catch_phrase #=> "Legendary" + +Faker::TvShows::HowIMetYourMother.high_five #=> "Relapse Five" + +Faker::TvShows::HowIMetYourMother.quote #=> "Whenever I’m sad, I stop being sad and be awesome instead." +``` diff --git a/doc/v1.9.2/tv_shows/michael_scott.md b/doc/v1.9.2/tv_shows/michael_scott.md new file mode 100755 index 0000000000..d1592a9c91 --- /dev/null +++ b/doc/v1.9.2/tv_shows/michael_scott.md @@ -0,0 +1,7 @@ +# Faker::TvShows::MichaelScott + +Available since version 1.9.0. + +```ruby +Faker::TvShows::MichaelScott.quote #=> "I am Beyoncé, always." +``` diff --git a/doc/v1.9.2/tv_shows/new_girl.md b/doc/v1.9.2/tv_shows/new_girl.md new file mode 100644 index 0000000000..4f32e316ad --- /dev/null +++ b/doc/v1.9.2/tv_shows/new_girl.md @@ -0,0 +1,7 @@ +# Faker::TvShows::NewGirl + +```ruby +Faker::TvShows::NewGirl.character #=> "Jessica Day" + +Faker::TvShows::NewGirl.quote #=> "Are you cooking a frittata in a sauce pan? What is this – prison?" +``` diff --git a/doc/v1.9.2/tv_shows/parks_and_rec.md b/doc/v1.9.2/tv_shows/parks_and_rec.md new file mode 100644 index 0000000000..8f351fe2ab --- /dev/null +++ b/doc/v1.9.2/tv_shows/parks_and_rec.md @@ -0,0 +1,7 @@ +# Faker::TvShows::ParksAndRec + +```ruby +Faker::TvShows::ParksAndRec.character #=> "Leslie Knope" + +Faker::TvShows::ParksAndRec.city #=> "Pawnee" +``` diff --git a/doc/v1.9.2/tv_shows/rick_and_morty.md b/doc/v1.9.2/tv_shows/rick_and_morty.md new file mode 100644 index 0000000000..9833d3f069 --- /dev/null +++ b/doc/v1.9.2/tv_shows/rick_and_morty.md @@ -0,0 +1,11 @@ +# Faker::TvShows::RickAndMorty + +Available since version 1.8.0. + +```ruby +Faker::TvShows::RickAndMorty.character #=> "Rick Sanchez" + +Faker::TvShows::RickAndMorty.location #=> "Dimension C-132" + +Faker::TvShows::RickAndMorty.quote #=> "Ohh yea, you gotta get schwifty." +``` \ No newline at end of file diff --git a/doc/v1.9.2/tv_shows/rupaul.md b/doc/v1.9.2/tv_shows/rupaul.md new file mode 100755 index 0000000000..c68c86f864 --- /dev/null +++ b/doc/v1.9.2/tv_shows/rupaul.md @@ -0,0 +1,8 @@ +# Faker::TvShows::RuPaul + +Available since version 1.8.0. + +```ruby +Faker::TvShows::RuPaul.quote #=> "That's Funny, Tell Another One" +Faker::TvShows::RuPaul.queen #=> "Latrice Royale" +``` diff --git a/doc/v1.9.2/tv_shows/seinfeld.md b/doc/v1.9.2/tv_shows/seinfeld.md new file mode 100644 index 0000000000..0d93f5cd09 --- /dev/null +++ b/doc/v1.9.2/tv_shows/seinfeld.md @@ -0,0 +1,9 @@ +# Faker::TvShows::Seinfeld + +```ruby +Faker::TvShows::Seinfeld.character #=> George Costanza + +Faker::TvShows::Seinfeld.quote #=> I'm not a lesbian. I hate men, but I'm not a lesbian + +Faker::TvShows::Seinfeld.business #=> Kruger Industrial Smoothing +``` diff --git a/doc/v1.9.2/tv_shows/silicon_valley.md b/doc/v1.9.2/tv_shows/silicon_valley.md new file mode 100644 index 0000000000..dc868ba551 --- /dev/null +++ b/doc/v1.9.2/tv_shows/silicon_valley.md @@ -0,0 +1,19 @@ +# Faker::TvShows::SiliconValley + +```ruby +Faker::TvShows::SiliconValley.character # => "Jian Yang" + +Faker::TvShows::SiliconValley.company # => "Bachmanity" + +Faker::TvShows::SiliconValley.quote # => "I don't want to live in a world where someone else is making the world a better place better than we are." + +Faker::TvShows::SiliconValley.app # => "Nip Alert" + +Faker::TvShows::SiliconValley.invention # => "Tres Comas Tequila" + +Faker::TvShows::SiliconValley.motto # => "Our products are products, producing unrivaled results" + +Faker::TvShows::SiliconValley.url # => "http://www.piedpiper.com" + +Faker::TvShows::SiliconValley.email #=> "richard@piedpiper.test" +``` \ No newline at end of file diff --git a/doc/v1.9.2/tv_shows/simpsons.md b/doc/v1.9.2/tv_shows/simpsons.md new file mode 100644 index 0000000000..6791f88f12 --- /dev/null +++ b/doc/v1.9.2/tv_shows/simpsons.md @@ -0,0 +1,11 @@ +# Faker::TvShows::Simpsons + +Available since version 1.8.0. + +```ruby +Faker::TvShows::Simpsons.character #=> "Charles Montgomery Burns" + +Faker::TvShows::Simpsons.location #=> "Moe's Tavern" + +Faker::TvShows::Simpsons.quote #=> "It takes two to lie: one to lie and one to listen." +``` diff --git a/doc/v1.9.2/tv_shows/south_park.md b/doc/v1.9.2/tv_shows/south_park.md new file mode 100644 index 0000000000..77308165a9 --- /dev/null +++ b/doc/v1.9.2/tv_shows/south_park.md @@ -0,0 +1,9 @@ +# Faker::TvShows::SouthPark + +It might be available in the next version. + +```ruby +Faker::TvShows::SouthPark.character #=> "Mr. Garrison" + +Faker::TvShows::SouthPark.quote #=> "I'm just getting a little cancer Stan" +``` diff --git a/doc/v1.9.2/tv_shows/star_trek.md b/doc/v1.9.2/tv_shows/star_trek.md new file mode 100644 index 0000000000..1f192e4111 --- /dev/null +++ b/doc/v1.9.2/tv_shows/star_trek.md @@ -0,0 +1,14 @@ +# Faker::TvShows::StarTrek + +Available since version 1.8.0. + +```ruby +Faker::TvShows::StarTrek.character #=> "Spock" + +Faker::TvShows::StarTrek.location #=> "Cardassia" + +Faker::TvShows::StarTrek.specie #=> "Ferengi" + +Faker::TvShows::StarTrek.villain #=> "Khan Noonien Singh" + +``` diff --git a/doc/v1.9.2/tv_shows/stargate.md b/doc/v1.9.2/tv_shows/stargate.md new file mode 100644 index 0000000000..a9a43fdb01 --- /dev/null +++ b/doc/v1.9.2/tv_shows/stargate.md @@ -0,0 +1,9 @@ +# Faker::TvShows::Stargate + +```ruby +Faker::TvShows::StarTrek.character #=> "Jack O'Neill" + +Faker::TvShows::StarTrek.planet #=> "Abydos" + +Faker::TvShows::StarTrek.quote #=> "General, request permission to beat the crap out of this man." +``` diff --git a/doc/v1.9.2/tv_shows/stranger_things.md b/doc/v1.9.2/tv_shows/stranger_things.md new file mode 100644 index 0000000000..a913a2cdae --- /dev/null +++ b/doc/v1.9.2/tv_shows/stranger_things.md @@ -0,0 +1,9 @@ +# Faker::TvShows::StrangerThings + +Available since version 1.9.0. + +```ruby +Faker::TvShows::StrangerThings.character #=> "six" + +Faker::TvShows::StrangerThings.quote #=> "Friends don't lie" +``` diff --git a/doc/v1.9.2/tv_shows/the_expanse.md b/doc/v1.9.2/tv_shows/the_expanse.md new file mode 100644 index 0000000000..475a2c10ea --- /dev/null +++ b/doc/v1.9.2/tv_shows/the_expanse.md @@ -0,0 +1,11 @@ +# Faker::TvShows::TheExpanse + +```ruby +Faker::TvShows::TheExpanse.character #=> "Jim Holden" + +Faker::TvShows::TheExpanse.location #=> "Ganymede" + +Faker::TvShows::TheExpanse.ship #=> "Nauvoo" + +Faker::TvShows::TheExpanse.quote #=> "I am that guy." +``` diff --git a/doc/v1.9.2/tv_shows/the_fresh_prince_of_bel_air.md b/doc/v1.9.2/tv_shows/the_fresh_prince_of_bel_air.md new file mode 100644 index 0000000000..18adb081ad --- /dev/null +++ b/doc/v1.9.2/tv_shows/the_fresh_prince_of_bel_air.md @@ -0,0 +1,9 @@ +# Faker::TvShows::TheFreshPrinceOfBelAir + +```ruby +Faker::TvShows::TheFreshPrinceOfBelAir.character #=> "Will Smith" + +Faker::TvShows::TheFreshPrinceOfBelAir.celebrity #=> "Quincy Jones" + +Faker::TvShows::TheFreshPrinceOfBelAir.quote #=> "Girl, you look so good, I would marry your brother just to get in your family." +``` diff --git a/doc/v1.9.2/tv_shows/the_it_crowd.md b/doc/v1.9.2/tv_shows/the_it_crowd.md new file mode 100644 index 0000000000..cc5f2cebcf --- /dev/null +++ b/doc/v1.9.2/tv_shows/the_it_crowd.md @@ -0,0 +1,11 @@ +# Faker::TvShows::TheITCrowd + +```ruby +Faker::TvShows::TheITCrowd.actor #=> "Chris O'Dowd" + +Faker::TvShows::TheITCrowd.character #=> "Roy Trenneman" + +Faker::TvShows::TheITCrowd.email #=> "roy.trenneman@reynholm.test" + +Faker::TvShows::TheITCrowd.quote #=> "Hello, IT. Have you tried turning it off and on again?" +``` diff --git a/doc/v1.9.2/tv_shows/the_thick_of_it.md b/doc/v1.9.2/tv_shows/the_thick_of_it.md new file mode 100644 index 0000000000..43f30e6985 --- /dev/null +++ b/doc/v1.9.2/tv_shows/the_thick_of_it.md @@ -0,0 +1,9 @@ +# Faker::TvShows::TheThickOfIt + +```ruby +Faker::TvShows::TheThickOfIt.character #=> "Nicola Murray" + +Faker::TvShows::TheThickOfIt.department #=> "Shadow Cabinet" + +Faker::TvShows::TheThickOfIt.position #=> "Director of Communications" +``` diff --git a/doc/v1.9.2/tv_shows/twin_peaks.md b/doc/v1.9.2/tv_shows/twin_peaks.md new file mode 100644 index 0000000000..0916481851 --- /dev/null +++ b/doc/v1.9.2/tv_shows/twin_peaks.md @@ -0,0 +1,11 @@ +# Faker::TvShows::TwinPeaks + +Available since version 1.7.0. + +```ruby +Faker::TvShows::TwinPeaks.character #=> "Dale Cooper" + +Faker::TvShows::TwinPeaks.location #=> "Black Lodge" + +Faker::TvShows::TwinPeaks.quote #=> "The owls are not what they seem." +``` diff --git a/doc/v1.9.2/tv_shows/venture_bros.md b/doc/v1.9.2/tv_shows/venture_bros.md new file mode 100644 index 0000000000..01ebbac7c1 --- /dev/null +++ b/doc/v1.9.2/tv_shows/venture_bros.md @@ -0,0 +1,13 @@ +# Faker::TvShows::VentureBros + +```ruby + +Faker::TvShows::VentureBros.character #=> "Scaramantula" + +Faker::TvShows::VentureBros.vehicle #=> "Monarchmobile" + +Faker::TvShows::VentureBros.organization #=> "Guild of Calamitous Intent" + +Faker::TvShows::VentureBros.quote #=> "Revenge like gazpacho soup, is best served cold, precise and merciless." + +``` diff --git a/lib/faker/default/name.rb b/lib/faker/default/name.rb index e5a5157ead..ee09fc0977 100644 --- a/lib/faker/default/name.rb +++ b/lib/faker/default/name.rb @@ -48,20 +48,9 @@ def suffix fetch('name.suffix') end - def title - Faker::Job.title - end - def initials(character_count = 3) (0...character_count).map { rand(65..90).chr }.join end - - def job_titles - fetch_all('job.position') - end - - deprecate :title, 'Faker::Job.title', 2018, 9 - deprecate :job_titles, :none, 2018, 9 end end end diff --git a/lib/faker/deprecate/aqua_teen_hunger_force.rb b/lib/faker/deprecate/aqua_teen_hunger_force.rb index 589e6f7045..c77a65bf2f 100644 --- a/lib/faker/deprecate/aqua_teen_hunger_force.rb +++ b/lib/faker/deprecate/aqua_teen_hunger_force.rb @@ -9,7 +9,7 @@ def character Faker::TvShows::AquaTeenHungerForce.character end - deprecate :character, 'Faker::TvShows::AquaTeenHungerForce.character', 2018, 12 + deprecate :character, 'Faker::TvShows::AquaTeenHungerForce.character', 2019, 01 end end end diff --git a/lib/faker/deprecate/back_to_the_future.rb b/lib/faker/deprecate/back_to_the_future.rb index 855b73583a..02c608a8ef 100644 --- a/lib/faker/deprecate/back_to_the_future.rb +++ b/lib/faker/deprecate/back_to_the_future.rb @@ -17,9 +17,9 @@ def quote Faker::Movies::BackToTheFuture.quote end - deprecate :character, 'Faker::Movies::BackToTheFuture.character', 2018, 12 - deprecate :date, 'Faker::Movies::BackToTheFuture.date', 2018, 12 - deprecate :quote, 'Faker::Movies::BackToTheFuture.quote', 2018, 12 + deprecate :character, 'Faker::Movies::BackToTheFuture.character', 2019, 01 + deprecate :date, 'Faker::Movies::BackToTheFuture.date', 2019, 01 + deprecate :quote, 'Faker::Movies::BackToTheFuture.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/bitcoin.rb b/lib/faker/deprecate/bitcoin.rb index e22a92d93a..c1f228ed26 100644 --- a/lib/faker/deprecate/bitcoin.rb +++ b/lib/faker/deprecate/bitcoin.rb @@ -13,8 +13,8 @@ def testnet_address Faker::Blockchain::Bitcoin.testnet_address end - deprecate :address, 'Faker::Blockchain::Bitcoin.address', 2018, 12 - deprecate :testnet_address, 'Faker::Blockchain::Bitcoin.testnet_address', 2018, 12 + deprecate :address, 'Faker::Blockchain::Bitcoin.address', 2019, 01 + deprecate :testnet_address, 'Faker::Blockchain::Bitcoin.testnet_address', 2019, 01 end end end diff --git a/lib/faker/deprecate/bojack_horseman.rb b/lib/faker/deprecate/bojack_horseman.rb index 4e55f75509..a5f8c10bb9 100644 --- a/lib/faker/deprecate/bojack_horseman.rb +++ b/lib/faker/deprecate/bojack_horseman.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::BojackHorseman.quote end - deprecate :character, 'Faker::TvShows::BojackHorseman.character', 2018, 12 - deprecate :tongue_twister, 'Faker::TvShows::BojackHorseman.tongue_twister', 2018, 12 - deprecate :quote, 'Faker::TvShows::BojackHorseman.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::BojackHorseman.character', 2019, 01 + deprecate :tongue_twister, 'Faker::TvShows::BojackHorseman.tongue_twister', 2019, 01 + deprecate :quote, 'Faker::TvShows::BojackHorseman.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/breaking_bad.rb b/lib/faker/deprecate/breaking_bad.rb index cb3dea5622..6dd7009f5b 100644 --- a/lib/faker/deprecate/breaking_bad.rb +++ b/lib/faker/deprecate/breaking_bad.rb @@ -13,8 +13,8 @@ def episode Faker::TvShows::BreakingBad.episode end - deprecate :character, 'Faker::TvShows::BreakingBad.character', 2018, 12 - deprecate :episode, 'Faker::TvShows::BreakingBad.episode', 2018, 12 + deprecate :character, 'Faker::TvShows::BreakingBad.character', 2019, 01 + deprecate :episode, 'Faker::TvShows::BreakingBad.episode', 2019, 01 end end end diff --git a/lib/faker/deprecate/buffy.rb b/lib/faker/deprecate/buffy.rb index 050e17e24e..68b94a4961 100644 --- a/lib/faker/deprecate/buffy.rb +++ b/lib/faker/deprecate/buffy.rb @@ -25,11 +25,11 @@ def episode Faker::TvShows::Buffy.episode end - deprecate :character, 'Faker::TvShows::Buffy.character', 2018, 12 - deprecate :quote, 'Faker::TvShows::Buffy.quote', 2018, 12 - deprecate :celebrity, 'Faker::TvShows::Buffy.celebrity', 2018, 12 - deprecate :big_bad, 'Faker::TvShows::Buffy.big_bad', 2018, 12 - deprecate :episode, 'Faker::TvShows::Buffy.episode', 2018, 12 + deprecate :character, 'Faker::TvShows::Buffy.character', 2019, 01 + deprecate :quote, 'Faker::TvShows::Buffy.quote', 2019, 01 + deprecate :celebrity, 'Faker::TvShows::Buffy.celebrity', 2019, 01 + deprecate :big_bad, 'Faker::TvShows::Buffy.big_bad', 2019, 01 + deprecate :episode, 'Faker::TvShows::Buffy.episode', 2019, 01 end end end diff --git a/lib/faker/deprecate/cat.rb b/lib/faker/deprecate/cat.rb index ab2460d1ad..53bbc1f5f9 100644 --- a/lib/faker/deprecate/cat.rb +++ b/lib/faker/deprecate/cat.rb @@ -17,9 +17,9 @@ def registry Faker::Creature::Cat.registry end - deprecate :name, 'Faker::Creature::Cat.name', 2018, 12 - deprecate :breed, 'Faker::Creature::Cat.breed', 2018, 12 - deprecate :registry, 'Faker::Creature::Cat.registry', 2018, 12 + deprecate :name, 'Faker::Creature::Cat.name', 2019, 01 + deprecate :breed, 'Faker::Creature::Cat.breed', 2019, 01 + deprecate :registry, 'Faker::Creature::Cat.registry', 2019, 01 end end end diff --git a/lib/faker/deprecate/community.rb b/lib/faker/deprecate/community.rb index 5318f521c2..65813f9669 100644 --- a/lib/faker/deprecate/community.rb +++ b/lib/faker/deprecate/community.rb @@ -13,8 +13,8 @@ def quotes Faker::TvShows::Community.quotes end - deprecate :characters, 'Faker::TvShows::Community.characters', 2018, 12 - deprecate :quotes, 'Faker::TvShows::Community.quotes', 2018, 12 + deprecate :characters, 'Faker::TvShows::Community.characters', 2019, 01 + deprecate :quotes, 'Faker::TvShows::Community.quotes', 2019, 01 end end end diff --git a/lib/faker/deprecate/dog.rb b/lib/faker/deprecate/dog.rb index 0fc34381ae..e715cc6de7 100644 --- a/lib/faker/deprecate/dog.rb +++ b/lib/faker/deprecate/dog.rb @@ -37,14 +37,14 @@ def size Faker::Creature::Dog.size end - deprecate :name, 'Faker::Creature::Dog.name', 2018, 12 - deprecate :breed, 'Faker::Creature::Dog.breed', 2018, 12 - deprecate :sound, 'Faker::Creature::Dog.sound', 2018, 12 - deprecate :meme_phrase, 'Faker::Creature::Dog.meme_phrase', 2018, 12 - deprecate :age, 'Faker::Creature::Dog.age', 2018, 12 - deprecate :gender, 'Faker::Creature::Dog.gender', 2018, 12 - deprecate :coat_length, 'Faker::Creature::Dog.coat_length', 2018, 12 - deprecate :size, 'Faker::Creature::Dog.size', 2018, 12 + deprecate :name, 'Faker::Creature::Dog.name', 2019, 01 + deprecate :breed, 'Faker::Creature::Dog.breed', 2019, 01 + deprecate :sound, 'Faker::Creature::Dog.sound', 2019, 01 + deprecate :meme_phrase, 'Faker::Creature::Dog.meme_phrase', 2019, 01 + deprecate :age, 'Faker::Creature::Dog.age', 2019, 01 + deprecate :gender, 'Faker::Creature::Dog.gender', 2019, 01 + deprecate :coat_length, 'Faker::Creature::Dog.coat_length', 2019, 01 + deprecate :size, 'Faker::Creature::Dog.size', 2019, 01 end end end diff --git a/lib/faker/deprecate/dota.rb b/lib/faker/deprecate/dota.rb index 01a0e5c51b..2bcd4d61c4 100644 --- a/lib/faker/deprecate/dota.rb +++ b/lib/faker/deprecate/dota.rb @@ -25,11 +25,11 @@ def quote(hero = 'abaddon') Faker::Games::Dota.quote(hero: hero) end - deprecate :hero, 'Faker::Games::Dota.hero', 2018, 12 - deprecate :item, 'Faker::Games::Dota.item', 2018, 12 - deprecate :team, 'Faker::Games::Dota.team', 2018, 12 - deprecate :player, 'Faker::Games::Dota.player', 2018, 12 - deprecate :quote, 'Faker::Games::Dota.quote', 2018, 12 + deprecate :hero, 'Faker::Games::Dota.hero', 2019, 01 + deprecate :item, 'Faker::Games::Dota.item', 2019, 01 + deprecate :team, 'Faker::Games::Dota.team', 2019, 01 + deprecate :player, 'Faker::Games::Dota.player', 2019, 01 + deprecate :quote, 'Faker::Games::Dota.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/dr_who.rb b/lib/faker/deprecate/dr_who.rb index 3b43e0148f..461ad0fdfd 100644 --- a/lib/faker/deprecate/dr_who.rb +++ b/lib/faker/deprecate/dr_who.rb @@ -33,13 +33,13 @@ def specie Faker::TvShows::DrWho.specie end - deprecate :character, 'Faker::TvShows::DrWho.character', 2018, 12 - deprecate :the_doctor, 'Faker::TvShows::DrWho.the_doctor', 2018, 12 - deprecate :actor, 'Faker::TvShows::DrWho.actor', 2018, 12 - deprecate :catch_phrase, 'Faker::TvShows::DrWho.catch_phrase', 2018, 12 - deprecate :quote, 'Faker::TvShows::DrWho.quote', 2018, 12 - deprecate :villian, 'Faker::TvShows::DrWho.villian', 2018, 12 - deprecate :specie, 'Faker::TvShows::DrWho.specie', 2018, 12 + deprecate :character, 'Faker::TvShows::DrWho.character', 2019, 01 + deprecate :the_doctor, 'Faker::TvShows::DrWho.the_doctor', 2019, 01 + deprecate :actor, 'Faker::TvShows::DrWho.actor', 2019, 01 + deprecate :catch_phrase, 'Faker::TvShows::DrWho.catch_phrase', 2019, 01 + deprecate :quote, 'Faker::TvShows::DrWho.quote', 2019, 01 + deprecate :villian, 'Faker::TvShows::DrWho.villian', 2019, 01 + deprecate :specie, 'Faker::TvShows::DrWho.specie', 2019, 01 end end end diff --git a/lib/faker/deprecate/dragon_ball.rb b/lib/faker/deprecate/dragon_ball.rb index 06df50adc7..20db95a78b 100644 --- a/lib/faker/deprecate/dragon_ball.rb +++ b/lib/faker/deprecate/dragon_ball.rb @@ -9,7 +9,7 @@ def character Faker::JapaneseMedia::DragonBall.character end - deprecate :character, 'Faker::JapaneseMedia::DragonBall.character', 2018, 12 + deprecate :character, 'Faker::JapaneseMedia::DragonBall.character', 2019, 01 end end end diff --git a/lib/faker/deprecate/dumb_and_dumber.rb b/lib/faker/deprecate/dumb_and_dumber.rb index 05d6ca2626..525e33f06a 100644 --- a/lib/faker/deprecate/dumb_and_dumber.rb +++ b/lib/faker/deprecate/dumb_and_dumber.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::DumbAndDumber.quote end - deprecate :actor, 'Faker::TvShows::DumbAndDumber.actor', 2018, 12 - deprecate :character, 'Faker::TvShows::DumbAndDumber.character', 2018, 12 - deprecate :quote, 'Faker::TvShows::DumbAndDumber.quote', 2018, 12 + deprecate :actor, 'Faker::TvShows::DumbAndDumber.actor', 2019, 01 + deprecate :character, 'Faker::TvShows::DumbAndDumber.character', 2019, 01 + deprecate :quote, 'Faker::TvShows::DumbAndDumber.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/dune.rb b/lib/faker/deprecate/dune.rb index cd168df521..a10d657154 100644 --- a/lib/faker/deprecate/dune.rb +++ b/lib/faker/deprecate/dune.rb @@ -25,11 +25,11 @@ def saying(source = nil) Faker::Books::Dune.saying(source) end - deprecate :character, 'Faker::Books::Dune.character', 2018, 12 - deprecate :title, 'Faker::Books::Dune.title', 2018, 12 - deprecate :planet, 'Faker::Books::Dune.planet', 2018, 12 - deprecate :quote, 'Faker::Books::Dune.quote', 2018, 12 - deprecate :saying, 'Faker::Books::Dune.saying', 2018, 12 + deprecate :character, 'Faker::Books::Dune.character', 2019, 01 + deprecate :title, 'Faker::Books::Dune.title', 2019, 01 + deprecate :planet, 'Faker::Books::Dune.planet', 2019, 01 + deprecate :quote, 'Faker::Books::Dune.quote', 2019, 01 + deprecate :saying, 'Faker::Books::Dune.saying', 2019, 01 end end end diff --git a/lib/faker/deprecate/elder_scrolls.rb b/lib/faker/deprecate/elder_scrolls.rb index 3e85fb8a17..62b5645d16 100644 --- a/lib/faker/deprecate/elder_scrolls.rb +++ b/lib/faker/deprecate/elder_scrolls.rb @@ -37,14 +37,14 @@ def last_name Faker::Games::ElderScrolls.last_name end - deprecate :race, 'Faker::Games::ElderScrolls.race', 2018, 12 - deprecate :city, 'Faker::Games::ElderScrolls.city', 2018, 12 - deprecate :creature, 'Faker::Games::ElderScrolls.creature', 2018, 12 - deprecate :region, 'Faker::Games::ElderScrolls.region', 2018, 12 - deprecate :dragon, 'Faker::Games::ElderScrolls.dragon', 2018, 12 - deprecate :name, 'Faker::Games::ElderScrolls.name', 2018, 12 - deprecate :first_name, 'Faker::Games::ElderScrolls.first_name', 2018, 12 - deprecate :last_name, 'Faker::Games::ElderScrolls.last_name', 2018, 12 + deprecate :race, 'Faker::Games::ElderScrolls.race', 2019, 01 + deprecate :city, 'Faker::Games::ElderScrolls.city', 2019, 01 + deprecate :creature, 'Faker::Games::ElderScrolls.creature', 2019, 01 + deprecate :region, 'Faker::Games::ElderScrolls.region', 2019, 01 + deprecate :dragon, 'Faker::Games::ElderScrolls.dragon', 2019, 01 + deprecate :name, 'Faker::Games::ElderScrolls.name', 2019, 01 + deprecate :first_name, 'Faker::Games::ElderScrolls.first_name', 2019, 01 + deprecate :last_name, 'Faker::Games::ElderScrolls.last_name', 2019, 01 end end end diff --git a/lib/faker/deprecate/ethereum.rb b/lib/faker/deprecate/ethereum.rb index d8656c5902..8f38ae34fa 100644 --- a/lib/faker/deprecate/ethereum.rb +++ b/lib/faker/deprecate/ethereum.rb @@ -9,7 +9,7 @@ def address Faker::Blockchain::Ethereum.address end - deprecate :address, 'Faker::Blockchain::Tezos.address', 2018, 12 + deprecate :address, 'Faker::Blockchain::Ethereum.address', 2019, 01 end end end diff --git a/lib/faker/deprecate/fallout.rb b/lib/faker/deprecate/fallout.rb index 3904581070..b3601396b7 100644 --- a/lib/faker/deprecate/fallout.rb +++ b/lib/faker/deprecate/fallout.rb @@ -21,10 +21,10 @@ def quote Faker::Games::Fallout.quote end - deprecate :character, 'Faker::Games::Fallout.character', 2018, 12 - deprecate :faction, 'Faker::Games::Fallout.faction', 2018, 12 - deprecate :location, 'Faker::Games::Fallout.location', 2018, 12 - deprecate :quote, 'Faker::Games::Fallout.quote', 2018, 12 + deprecate :character, 'Faker::Games::Fallout.character', 2019, 01 + deprecate :faction, 'Faker::Games::Fallout.faction', 2019, 01 + deprecate :location, 'Faker::Games::Fallout.location', 2019, 01 + deprecate :quote, 'Faker::Games::Fallout.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/family_guy.rb b/lib/faker/deprecate/family_guy.rb index 0be8614708..e7a3d70b94 100644 --- a/lib/faker/deprecate/family_guy.rb +++ b/lib/faker/deprecate/family_guy.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::FamilyGuy.quote end - deprecate :character, 'Faker::TvShows::FamilyGuy.character', 2018, 12 - deprecate :location, 'Faker::TvShows::FamilyGuy.location', 2018, 12 - deprecate :quote, 'Faker::TvShows::FamilyGuy.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::FamilyGuy.character', 2019, 01 + deprecate :location, 'Faker::TvShows::FamilyGuy.location', 2019, 01 + deprecate :quote, 'Faker::TvShows::FamilyGuy.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/famous_last_words.rb b/lib/faker/deprecate/famous_last_words.rb index eabf36c6a6..88276bc393 100644 --- a/lib/faker/deprecate/famous_last_words.rb +++ b/lib/faker/deprecate/famous_last_words.rb @@ -9,7 +9,7 @@ def last_words Faker::Quote.famous_last_words end - deprecate :last_words, 'Faker::Quote.famous_last_words', 2018, 12 + deprecate :last_words, 'Faker::Quote.famous_last_words', 2019, 01 end end end diff --git a/lib/faker/deprecate/friends.rb b/lib/faker/deprecate/friends.rb index ad79296694..0a71029d55 100644 --- a/lib/faker/deprecate/friends.rb +++ b/lib/faker/deprecate/friends.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::Friends.quote end - deprecate :character, 'Faker::TvShows::Friends.character', 2018, 12 - deprecate :location, 'Faker::TvShows::Friends.location', 2018, 12 - deprecate :quote, 'Faker::TvShows::Friends.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::Friends.character', 2019, 01 + deprecate :location, 'Faker::TvShows::Friends.location', 2019, 01 + deprecate :quote, 'Faker::TvShows::Friends.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/game_of_thrones.rb b/lib/faker/deprecate/game_of_thrones.rb index 632fd308f5..59c80533c4 100644 --- a/lib/faker/deprecate/game_of_thrones.rb +++ b/lib/faker/deprecate/game_of_thrones.rb @@ -25,11 +25,11 @@ def dragon Faker::TvShows::GameOfThrones.dragon end - deprecate :character, 'Faker::TvShows::GameOfThrones.character', 2018, 12 - deprecate :house, 'Faker::TvShows::GameOfThrones.house', 2018, 12 - deprecate :city, 'Faker::TvShows::GameOfThrones.city', 2018, 12 - deprecate :quote, 'Faker::TvShows::GameOfThrones.quote', 2018, 12 - deprecate :dragon, 'Faker::TvShows::GameOfThrones.dragon', 2018, 12 + deprecate :character, 'Faker::TvShows::GameOfThrones.character', 2019, 01 + deprecate :house, 'Faker::TvShows::GameOfThrones.house', 2019, 01 + deprecate :city, 'Faker::TvShows::GameOfThrones.city', 2019, 01 + deprecate :quote, 'Faker::TvShows::GameOfThrones.quote', 2019, 01 + deprecate :dragon, 'Faker::TvShows::GameOfThrones.dragon', 2019, 01 end end end diff --git a/lib/faker/deprecate/harry_potter.rb b/lib/faker/deprecate/harry_potter.rb index 51679b8241..1205c08cf9 100644 --- a/lib/faker/deprecate/harry_potter.rb +++ b/lib/faker/deprecate/harry_potter.rb @@ -29,12 +29,12 @@ def spell Faker::Movies::HarryPotter.spell end - deprecate :character, 'Faker::Movies::HarryPotter.character', 2018, 12 - deprecate :location, 'Faker::Movies::HarryPotter.location', 2018, 12 - deprecate :quote, 'Faker::Movies::HarryPotter.quote', 2018, 12 - deprecate :book, 'Faker::Movies::HarryPotter.book', 2018, 12 - deprecate :house, 'Faker::Movies::HarryPotter.house', 2018, 12 - deprecate :spell, 'Faker::Movies::HarryPotter.spell', 2018, 12 + deprecate :character, 'Faker::Movies::HarryPotter.character', 2019, 01 + deprecate :location, 'Faker::Movies::HarryPotter.location', 2019, 01 + deprecate :quote, 'Faker::Movies::HarryPotter.quote', 2019, 01 + deprecate :book, 'Faker::Movies::HarryPotter.book', 2019, 01 + deprecate :house, 'Faker::Movies::HarryPotter.house', 2019, 01 + deprecate :spell, 'Faker::Movies::HarryPotter.spell', 2019, 01 end end end diff --git a/lib/faker/deprecate/heroes_of_the_storm.rb b/lib/faker/deprecate/heroes_of_the_storm.rb index 59215ce9ec..d7609a75bf 100644 --- a/lib/faker/deprecate/heroes_of_the_storm.rb +++ b/lib/faker/deprecate/heroes_of_the_storm.rb @@ -21,10 +21,10 @@ def quote Faker::Games::HeroesOfTheStorm.quote end - deprecate :battleground, 'Faker::Games::HeroesOfTheStorm.battleground', 2018, 12 - deprecate :class, 'Faker::Games::HeroesOfTheStorm.class', 2018, 12 - deprecate :hero, 'Faker::Games::HeroesOfTheStorm.hero', 2018, 12 - deprecate :quote, 'Faker::Games::HeroesOfTheStorm.quote', 2018, 12 + deprecate :battleground, 'Faker::Games::HeroesOfTheStorm.battleground', 2019, 01 + deprecate :class, 'Faker::Games::HeroesOfTheStorm.class', 2019, 01 + deprecate :hero, 'Faker::Games::HeroesOfTheStorm.hero', 2019, 01 + deprecate :quote, 'Faker::Games::HeroesOfTheStorm.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/hey_arnold.rb b/lib/faker/deprecate/hey_arnold.rb index 7f8225c806..1ff6585a0b 100644 --- a/lib/faker/deprecate/hey_arnold.rb +++ b/lib/faker/deprecate/hey_arnold.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::HeyArnold.quote end - deprecate :character, 'Faker::TvShows::HeyArnold.character', 2018, 12 - deprecate :location, 'Faker::TvShows::HeyArnold.location', 2018, 12 - deprecate :quote, 'Faker::TvShows::HeyArnold.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::HeyArnold.character', 2019, 01 + deprecate :location, 'Faker::TvShows::HeyArnold.location', 2019, 01 + deprecate :quote, 'Faker::TvShows::HeyArnold.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/hitchhikers_guide_to_the_galaxy.rb b/lib/faker/deprecate/hitchhikers_guide_to_the_galaxy.rb index 9b68a9d135..4d42cca635 100644 --- a/lib/faker/deprecate/hitchhikers_guide_to_the_galaxy.rb +++ b/lib/faker/deprecate/hitchhikers_guide_to_the_galaxy.rb @@ -33,12 +33,12 @@ def starship Faker::Movies::HitchhikersGuideToTheGalaxy.starship end - deprecate :character, 'Faker::Movies::HitchhikersGuideToTheGalaxy.character', 2018, 12 - deprecate :location, 'Faker::Movies::HitchhikersGuideToTheGalaxy.location', 2018, 12 - deprecate :marvin_quote, 'Faker::Movies::HitchhikersGuideToTheGalaxy.marvin_quote', 2018, 12 - deprecate :planet, 'Faker::Movies::HitchhikersGuideToTheGalaxy.planet', 2018, 12 - deprecate :specie, 'Faker::Movies::HitchhikersGuideToTheGalaxy.specie', 2018, 12 - deprecate :starship, 'Faker::Movies::HitchhikersGuideToTheGalaxy.starship', 2018, 12 + deprecate :character, 'Faker::Movies::HitchhikersGuideToTheGalaxy.character', 2019, 01 + deprecate :location, 'Faker::Movies::HitchhikersGuideToTheGalaxy.location', 2019, 01 + deprecate :marvin_quote, 'Faker::Movies::HitchhikersGuideToTheGalaxy.marvin_quote', 2019, 01 + deprecate :planet, 'Faker::Movies::HitchhikersGuideToTheGalaxy.planet', 2019, 01 + deprecate :specie, 'Faker::Movies::HitchhikersGuideToTheGalaxy.specie', 2019, 01 + deprecate :starship, 'Faker::Movies::HitchhikersGuideToTheGalaxy.starship', 2019, 01 end end end diff --git a/lib/faker/deprecate/hobbit.rb b/lib/faker/deprecate/hobbit.rb index 134cb1505a..766c349a61 100644 --- a/lib/faker/deprecate/hobbit.rb +++ b/lib/faker/deprecate/hobbit.rb @@ -21,10 +21,10 @@ def location Faker::Movies::Hobbit.location end - deprecate :character, 'Faker::Movies::Hobbit.character', 2018, 12 - deprecate :thorins_company, 'Faker::Movies::Hobbit.thorins_company', 2018, 12 - deprecate :quote, 'Faker::Movies::Hobbit.quote', 2018, 12 - deprecate :location, 'Faker::Movies::Hobbit.location', 2018, 12 + deprecate :character, 'Faker::Movies::Hobbit.character', 2019, 01 + deprecate :thorins_company, 'Faker::Movies::Hobbit.thorins_company', 2019, 01 + deprecate :quote, 'Faker::Movies::Hobbit.quote', 2019, 01 + deprecate :location, 'Faker::Movies::Hobbit.location', 2019, 01 end end end diff --git a/lib/faker/deprecate/how_i_met_your_mother.rb b/lib/faker/deprecate/how_i_met_your_mother.rb index 4fbc3a847e..bd115e4441 100644 --- a/lib/faker/deprecate/how_i_met_your_mother.rb +++ b/lib/faker/deprecate/how_i_met_your_mother.rb @@ -21,10 +21,10 @@ def quote Faker::TvShows::HowIMetYourMother.quote end - deprecate :character, 'Faker::TvShows::HowIMetYourMother.character', 2018, 12 - deprecate :catch_phrase, 'Faker::TvShows::HowIMetYourMother.catch_phrase', 2018, 12 - deprecate :high_five, 'Faker::TvShows::HowIMetYourMother.high_five', 2018, 12 - deprecate :quote, 'Faker::TvShows::HowIMetYourMother.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::HowIMetYourMother.character', 2019, 01 + deprecate :catch_phrase, 'Faker::TvShows::HowIMetYourMother.catch_phrase', 2019, 01 + deprecate :high_five, 'Faker::TvShows::HowIMetYourMother.high_five', 2019, 01 + deprecate :quote, 'Faker::TvShows::HowIMetYourMother.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/lebowski.rb b/lib/faker/deprecate/lebowski.rb index fbc7f4e710..84138456f5 100644 --- a/lib/faker/deprecate/lebowski.rb +++ b/lib/faker/deprecate/lebowski.rb @@ -17,9 +17,9 @@ def quote Faker::Movies::Lebowski.quote end - deprecate :actor, 'Faker::Movies::Lebowski.actor', 2018, 12 - deprecate :character, 'Faker::Movies::Lebowski.character', 2018, 12 - deprecate :quote, 'Faker::Movies::Lebowski.quote', 2018, 12 + deprecate :actor, 'Faker::Movies::Lebowski.actor', 2019, 01 + deprecate :character, 'Faker::Movies::Lebowski.character', 2019, 01 + deprecate :quote, 'Faker::Movies::Lebowski.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/lord_of_the_rings.rb b/lib/faker/deprecate/lord_of_the_rings.rb index 3ae57707fe..8f46a14268 100644 --- a/lib/faker/deprecate/lord_of_the_rings.rb +++ b/lib/faker/deprecate/lord_of_the_rings.rb @@ -17,9 +17,9 @@ def quote Faker::Movies::LordOfTheRings.quote end - deprecate :character, 'Faker::Movies::LordOfTheRings.character', 2018, 12 - deprecate :location, 'Faker::Movies::LordOfTheRings.location', 2018, 12 - deprecate :quote, 'Faker::Movies::LordOfTheRings.quote', 2018, 12 + deprecate :character, 'Faker::Movies::LordOfTheRings.character', 2019, 01 + deprecate :location, 'Faker::Movies::LordOfTheRings.location', 2019, 01 + deprecate :quote, 'Faker::Movies::LordOfTheRings.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/lovecraft.rb b/lib/faker/deprecate/lovecraft.rb index d6b499b7b1..65b808b639 100644 --- a/lib/faker/deprecate/lovecraft.rb +++ b/lib/faker/deprecate/lovecraft.rb @@ -49,17 +49,17 @@ def paragraph_by_chars(chars = 256) Faker::Books::Lovecraft.paragraph_by_chars(chars) end - deprecate :location, 'Faker::Books::Lovecraft.location', 2018, 12 - deprecate :fhtagn, 'Faker::Books::Lovecraft.fhtagn', 2018, 12 - deprecate :deity, 'Faker::Books::Lovecraft.deity', 2018, 12 - deprecate :tome, 'Faker::Books::Lovecraft.tome', 2018, 12 - deprecate :sentence, 'Faker::Books::Lovecraft.sentence', 2018, 12 - deprecate :word, 'Faker::Books::Lovecraft.word', 2018, 12 - deprecate :words, 'Faker::Books::Lovecraft.words', 2018, 12 - deprecate :sentences, 'Faker::Books::Lovecraft.sentences', 2018, 12 - deprecate :paragraph, 'Faker::Books::Lovecraft.paragraph', 2018, 12 - deprecate :paragraphs, 'Faker::Books::Lovecraft.paragraphs', 2018, 12 - deprecate :paragraph_by_chars, 'Faker::Books::Lovecraft.paragraph_by_chars', 2018, 12 + deprecate :location, 'Faker::Books::Lovecraft.location', 2019, 01 + deprecate :fhtagn, 'Faker::Books::Lovecraft.fhtagn', 2019, 01 + deprecate :deity, 'Faker::Books::Lovecraft.deity', 2019, 01 + deprecate :tome, 'Faker::Books::Lovecraft.tome', 2019, 01 + deprecate :sentence, 'Faker::Books::Lovecraft.sentence', 2019, 01 + deprecate :word, 'Faker::Books::Lovecraft.word', 2019, 01 + deprecate :words, 'Faker::Books::Lovecraft.words', 2019, 01 + deprecate :sentences, 'Faker::Books::Lovecraft.sentences', 2019, 01 + deprecate :paragraph, 'Faker::Books::Lovecraft.paragraph', 2019, 01 + deprecate :paragraphs, 'Faker::Books::Lovecraft.paragraphs', 2019, 01 + deprecate :paragraph_by_chars, 'Faker::Books::Lovecraft.paragraph_by_chars', 2019, 01 end end end diff --git a/lib/faker/deprecate/matz.rb b/lib/faker/deprecate/matz.rb index 079ad82e61..62df02d136 100644 --- a/lib/faker/deprecate/matz.rb +++ b/lib/faker/deprecate/matz.rb @@ -9,7 +9,7 @@ def quote Faker::Quote.matz end - deprecate :quote, 'Faker::Quote.matz', 2018, 12 + deprecate :quote, 'Faker::Quote.matz', 2019, 01 end end end diff --git a/lib/faker/deprecate/michael_scott.rb b/lib/faker/deprecate/michael_scott.rb index 4d725d8696..69a3981453 100644 --- a/lib/faker/deprecate/michael_scott.rb +++ b/lib/faker/deprecate/michael_scott.rb @@ -9,7 +9,7 @@ def quote Faker::TvShows::MichaelScott.quote end - deprecate :quote, 'Faker::TvShows::MichaelScott.quote', 2018, 12 + deprecate :quote, 'Faker::TvShows::MichaelScott.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/most_interesting_man_in_the_world.rb b/lib/faker/deprecate/most_interesting_man_in_the_world.rb index 722825168e..2176664589 100644 --- a/lib/faker/deprecate/most_interesting_man_in_the_world.rb +++ b/lib/faker/deprecate/most_interesting_man_in_the_world.rb @@ -9,7 +9,7 @@ def quote Faker::Quote.most_interesting_man_in_the_world end - deprecate :quote, 'Faker::Quote.most_interesting_man_in_the_world', 2018, 12 + deprecate :quote, 'Faker::Quote.most_interesting_man_in_the_world', 2019, 01 end end end diff --git a/lib/faker/deprecate/myst.rb b/lib/faker/deprecate/myst.rb index 02c3063293..12072a312e 100644 --- a/lib/faker/deprecate/myst.rb +++ b/lib/faker/deprecate/myst.rb @@ -25,11 +25,11 @@ def quote Faker::Games::Myst.quote end - deprecate :game, 'Faker::Games::Myst.game', 2018, 12 - deprecate :creature, 'Faker::Games::Myst.creature', 2018, 12 - deprecate :age, 'Faker::Games::Myst.age', 2018, 12 - deprecate :character, 'Faker::Games::Myst.character', 2018, 12 - deprecate :quote, 'Faker::Games::Myst.quote', 2018, 12 + deprecate :game, 'Faker::Games::Myst.game', 2019, 01 + deprecate :creature, 'Faker::Games::Myst.creature', 2019, 01 + deprecate :age, 'Faker::Games::Myst.age', 2019, 01 + deprecate :character, 'Faker::Games::Myst.character', 2019, 01 + deprecate :quote, 'Faker::Games::Myst.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/new_girl.rb b/lib/faker/deprecate/new_girl.rb index f06b4575fb..f2142a9714 100644 --- a/lib/faker/deprecate/new_girl.rb +++ b/lib/faker/deprecate/new_girl.rb @@ -13,8 +13,8 @@ def quote Faker::TvShows::NewGirl.quote end - deprecate :character, 'Faker::TvShows::NewGirl.character', 2018, 12 - deprecate :quote, 'Faker::TvShows::NewGirl.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::NewGirl.character', 2019, 01 + deprecate :quote, 'Faker::TvShows::NewGirl.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/one_piece.rb b/lib/faker/deprecate/one_piece.rb index 5e3858cb09..55e0470ccb 100644 --- a/lib/faker/deprecate/one_piece.rb +++ b/lib/faker/deprecate/one_piece.rb @@ -29,12 +29,12 @@ def akuma_no_mi Faker::JapaneseMedia::OnePiece.akuma_no_mi end - deprecate :character, 'Faker::JapaneseMedia::OnePiece.character', 2018, 12 - deprecate :sea, 'Faker::JapaneseMedia::OnePiece.sea', 2018, 12 - deprecate :island, 'Faker::JapaneseMedia::OnePiece.island', 2018, 12 - deprecate :location, 'Faker::JapaneseMedia::OnePiece.location', 2018, 12 - deprecate :quote, 'Faker::JapaneseMedia::OnePiece.quote', 2018, 12 - deprecate :akuma_no_mi, 'Faker::JapaneseMedia::OnePiece.akuma_no_mi', 2018, 12 + deprecate :character, 'Faker::JapaneseMedia::OnePiece.character', 2019, 01 + deprecate :sea, 'Faker::JapaneseMedia::OnePiece.sea', 2019, 01 + deprecate :island, 'Faker::JapaneseMedia::OnePiece.island', 2019, 01 + deprecate :location, 'Faker::JapaneseMedia::OnePiece.location', 2019, 01 + deprecate :quote, 'Faker::JapaneseMedia::OnePiece.quote', 2019, 01 + deprecate :akuma_no_mi, 'Faker::JapaneseMedia::OnePiece.akuma_no_mi', 2019, 01 end end end diff --git a/lib/faker/deprecate/overwatch.rb b/lib/faker/deprecate/overwatch.rb index 66a81cb633..58e4b9a042 100644 --- a/lib/faker/deprecate/overwatch.rb +++ b/lib/faker/deprecate/overwatch.rb @@ -17,9 +17,9 @@ def quote Faker::Games::Overwatch.quote end - deprecate :hero, 'Faker::Games::Overwatch.hero', 2018, 12 - deprecate :location, 'Faker::Games::Overwatch.location', 2018, 12 - deprecate :quote, 'Faker::Games::Overwatch.quote', 2018, 12 + deprecate :hero, 'Faker::Games::Overwatch.hero', 2019, 01 + deprecate :location, 'Faker::Games::Overwatch.location', 2019, 01 + deprecate :quote, 'Faker::Games::Overwatch.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/parks_and_rec.rb b/lib/faker/deprecate/parks_and_rec.rb index 2fa59a8f67..02fbed166f 100644 --- a/lib/faker/deprecate/parks_and_rec.rb +++ b/lib/faker/deprecate/parks_and_rec.rb @@ -13,8 +13,8 @@ def city Faker::TvShows::ParksAndRec.city end - deprecate :character, 'Faker::TvShows::ParksAndRec.character', 2018, 12 - deprecate :city, 'Faker::TvShows::ParksAndRec.city', 2018, 12 + deprecate :character, 'Faker::TvShows::ParksAndRec.character', 2019, 01 + deprecate :city, 'Faker::TvShows::ParksAndRec.city', 2019, 01 end end end diff --git a/lib/faker/deprecate/pokemon.rb b/lib/faker/deprecate/pokemon.rb index 7700cd554a..b0250a6954 100644 --- a/lib/faker/deprecate/pokemon.rb +++ b/lib/faker/deprecate/pokemon.rb @@ -17,9 +17,9 @@ def move Faker::Games::Pokemon.move end - deprecate :name, 'Faker::Games::Pokemon.name', 2018, 12 - deprecate :location, 'Faker::Games::Pokemon.location', 2018, 12 - deprecate :move, 'Faker::Games::Pokemon.move', 2018, 12 + deprecate :name, 'Faker::Games::Pokemon.name', 2019, 01 + deprecate :location, 'Faker::Games::Pokemon.location', 2019, 01 + deprecate :move, 'Faker::Games::Pokemon.move', 2019, 01 end end end diff --git a/lib/faker/deprecate/princess_bride.rb b/lib/faker/deprecate/princess_bride.rb index 644bbb0673..35dee03bda 100644 --- a/lib/faker/deprecate/princess_bride.rb +++ b/lib/faker/deprecate/princess_bride.rb @@ -13,8 +13,8 @@ def quote Faker::Movies::PrincessBride.quote end - deprecate :character, 'Faker::Movies::PrincessBride.character', 2018, 12 - deprecate :quote, 'Faker::Movies::PrincessBride.quote', 2018, 12 + deprecate :character, 'Faker::Movies::PrincessBride.character', 2019, 01 + deprecate :quote, 'Faker::Movies::PrincessBride.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/rick_and_morty.rb b/lib/faker/deprecate/rick_and_morty.rb index 38e6d02c7d..4d1d28b21e 100644 --- a/lib/faker/deprecate/rick_and_morty.rb +++ b/lib/faker/deprecate/rick_and_morty.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::RickAndMorty.quote end - deprecate :character, 'Faker::TvShows::RickAndMorty.character', 2018, 12 - deprecate :location, 'Faker::TvShows::RickAndMorty.location', 2018, 12 - deprecate :quote, 'Faker::TvShows::RickAndMorty.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::RickAndMorty.character', 2019, 01 + deprecate :location, 'Faker::TvShows::RickAndMorty.location', 2019, 01 + deprecate :quote, 'Faker::TvShows::RickAndMorty.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/robin.rb b/lib/faker/deprecate/robin.rb index e14a178cea..b7f1148d11 100644 --- a/lib/faker/deprecate/robin.rb +++ b/lib/faker/deprecate/robin.rb @@ -9,7 +9,7 @@ def quote Faker::Quote.robin end - deprecate :quote, 'Faker::Quote.robin', 2018, 12 + deprecate :quote, 'Faker::Quote.robin', 2019, 01 end end end diff --git a/lib/faker/deprecate/rock_band.rb b/lib/faker/deprecate/rock_band.rb index b9c707b2a9..eaac64736d 100644 --- a/lib/faker/deprecate/rock_band.rb +++ b/lib/faker/deprecate/rock_band.rb @@ -9,7 +9,7 @@ def name Faker::Music::RockBand.name end - deprecate :name, 'Faker::Music::RockBand.name', 2018, 12 + deprecate :name, 'Faker::Music::RockBand.name', 2019, 01 end end end diff --git a/lib/faker/deprecate/ru_paul.rb b/lib/faker/deprecate/ru_paul.rb index d779a54015..eac2f4549d 100644 --- a/lib/faker/deprecate/ru_paul.rb +++ b/lib/faker/deprecate/ru_paul.rb @@ -15,8 +15,8 @@ def queen Faker::TvShows::RuPaul.queen end - deprecate :quote, 'Faker::TvShows::RuPaul.quote', 2018, 12 - deprecate :queen, 'Faker::TvShows::RuPaul.queen', 2018, 12 + deprecate :quote, 'Faker::TvShows::RuPaul.quote', 2019, 01 + deprecate :queen, 'Faker::TvShows::RuPaul.queen', 2019, 01 end end end diff --git a/lib/faker/deprecate/seinfeld.rb b/lib/faker/deprecate/seinfeld.rb index f4bed9aa24..ab25a6c681 100644 --- a/lib/faker/deprecate/seinfeld.rb +++ b/lib/faker/deprecate/seinfeld.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::Seinfeld.quote end - deprecate :business, 'Faker::TvShows::Seinfeld.business', 2018, 12 - deprecate :character, 'Faker::TvShows::Seinfeld.character', 2018, 12 - deprecate :quote, 'Faker::TvShows::Seinfeld.quote', 2018, 12 + deprecate :business, 'Faker::TvShows::Seinfeld.business', 2019, 01 + deprecate :character, 'Faker::TvShows::Seinfeld.character', 2019, 01 + deprecate :quote, 'Faker::TvShows::Seinfeld.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/shakespeare.rb b/lib/faker/deprecate/shakespeare.rb index d184a38906..66d40be1dd 100644 --- a/lib/faker/deprecate/shakespeare.rb +++ b/lib/faker/deprecate/shakespeare.rb @@ -37,14 +37,14 @@ def romeo_and_juliet Faker::Quotes::Shakespeare.romeo_and_juliet end - deprecate :hamlet_quote, 'Faker::Quotes::Shakespeare.hamlet_quote', 2018, 12 - deprecate :as_you_like_it_quote, 'Faker::Quotes::Shakespeare.as_you_like_it_quote', 2018, 12 - deprecate :king_richard_iii_quote, 'Faker::Quotes::Shakespeare.king_richard_iii_quote', 2018, 12 - deprecate :romeo_and_juliet_quote, 'Faker::Quotes::Shakespeare.romeo_and_juliet_quote', 2018, 12 - deprecate :hamlet, 'Faker::Quotes::Shakespeare.hamlet', 2018, 12 - deprecate :as_you_like_it, 'Faker::Quotes::Shakespeare.as_you_like_it', 2018, 12 - deprecate :king_richard_iii, 'Faker::Quotes::Shakespeare.king_richard_iii', 2018, 12 - deprecate :romeo_and_juliet, 'Faker::Quotes::Shakespeare.romeo_and_juliet', 2018, 12 + deprecate :hamlet_quote, 'Faker::Quotes::Shakespeare.hamlet_quote', 2019, 01 + deprecate :as_you_like_it_quote, 'Faker::Quotes::Shakespeare.as_you_like_it_quote', 2019, 01 + deprecate :king_richard_iii_quote, 'Faker::Quotes::Shakespeare.king_richard_iii_quote', 2019, 01 + deprecate :romeo_and_juliet_quote, 'Faker::Quotes::Shakespeare.romeo_and_juliet_quote', 2019, 01 + deprecate :hamlet, 'Faker::Quotes::Shakespeare.hamlet', 2019, 01 + deprecate :as_you_like_it, 'Faker::Quotes::Shakespeare.as_you_like_it', 2019, 01 + deprecate :king_richard_iii, 'Faker::Quotes::Shakespeare.king_richard_iii', 2019, 01 + deprecate :romeo_and_juliet, 'Faker::Quotes::Shakespeare.romeo_and_juliet', 2019, 01 end end end diff --git a/lib/faker/deprecate/silicon_valley.rb b/lib/faker/deprecate/silicon_valley.rb index 8e5ad286cc..d950354664 100644 --- a/lib/faker/deprecate/silicon_valley.rb +++ b/lib/faker/deprecate/silicon_valley.rb @@ -37,14 +37,14 @@ def email Faker::TvShows::SiliconValley.email end - deprecate :character, 'Faker::TvShows::SiliconValley.character', 2018, 12 - deprecate :company, 'Faker::TvShows::SiliconValley.company', 2018, 12 - deprecate :quote, 'Faker::TvShows::SiliconValley.quote', 2018, 12 - deprecate :app, 'Faker::TvShows::SiliconValley.app', 2018, 12 - deprecate :invention, 'Faker::TvShows::SiliconValley.invention', 2018, 12 - deprecate :motto, 'Faker::TvShows::SiliconValley.motto', 2018, 12 - deprecate :url, 'Faker::TvShows::SiliconValley.url', 2018, 12 - deprecate :email, 'Faker::TvShows::SiliconValley.email', 2018, 12 + deprecate :character, 'Faker::TvShows::SiliconValley.character', 2019, 01 + deprecate :company, 'Faker::TvShows::SiliconValley.company', 2019, 01 + deprecate :quote, 'Faker::TvShows::SiliconValley.quote', 2019, 01 + deprecate :app, 'Faker::TvShows::SiliconValley.app', 2019, 01 + deprecate :invention, 'Faker::TvShows::SiliconValley.invention', 2019, 01 + deprecate :motto, 'Faker::TvShows::SiliconValley.motto', 2019, 01 + deprecate :url, 'Faker::TvShows::SiliconValley.url', 2019, 01 + deprecate :email, 'Faker::TvShows::SiliconValley.email', 2019, 01 end end end diff --git a/lib/faker/deprecate/simpsons.rb b/lib/faker/deprecate/simpsons.rb index ce3e2d30d1..767b8162d1 100644 --- a/lib/faker/deprecate/simpsons.rb +++ b/lib/faker/deprecate/simpsons.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::Simpsons.quote end - deprecate :character, 'Faker::TvShows::Simpsons.character', 2018, 12 - deprecate :location, 'Faker::TvShows::Simpsons.location', 2018, 12 - deprecate :quote, 'Faker::TvShows::Simpsons.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::Simpsons.character', 2019, 01 + deprecate :location, 'Faker::TvShows::Simpsons.location', 2019, 01 + deprecate :quote, 'Faker::TvShows::Simpsons.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/singular_siegler.rb b/lib/faker/deprecate/singular_siegler.rb index 5b15dd4636..cc537a3eb2 100644 --- a/lib/faker/deprecate/singular_siegler.rb +++ b/lib/faker/deprecate/singular_siegler.rb @@ -9,7 +9,7 @@ def quote Faker::Quote.singular_siegler end - deprecate :quote, 'Faker::Quote.singular_siegler', 2018, 12 + deprecate :quote, 'Faker::Quote.singular_siegler', 2019, 01 end end end diff --git a/lib/faker/deprecate/south_park.rb b/lib/faker/deprecate/south_park.rb index 556339bf6e..269e83e1e0 100644 --- a/lib/faker/deprecate/south_park.rb +++ b/lib/faker/deprecate/south_park.rb @@ -13,8 +13,8 @@ def quote Faker::TvShows::SouthPark.quote end - deprecate :character, 'Faker::TvShows::SouthPark.character', 2018, 12 - deprecate :quote, 'Faker::TvShows::SouthPark.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::SouthPark.character', 2019, 01 + deprecate :quote, 'Faker::TvShows::SouthPark.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/star_trek.rb b/lib/faker/deprecate/star_trek.rb index 201bf8cc19..05715c2aa1 100644 --- a/lib/faker/deprecate/star_trek.rb +++ b/lib/faker/deprecate/star_trek.rb @@ -21,10 +21,10 @@ def villain Faker::TvShows::StarTrek.villain end - deprecate :character, 'Faker::TvShows::StarTrek.character', 2018, 12 - deprecate :location, 'Faker::TvShows::StarTrek.location', 2018, 12 - deprecate :specie, 'Faker::TvShows::StarTrek.specie', 2018, 12 - deprecate :villain, 'Faker::TvShows::StarTrek.villain', 2018, 12 + deprecate :character, 'Faker::TvShows::StarTrek.character', 2019, 01 + deprecate :location, 'Faker::TvShows::StarTrek.location', 2019, 01 + deprecate :specie, 'Faker::TvShows::StarTrek.specie', 2019, 01 + deprecate :villain, 'Faker::TvShows::StarTrek.villain', 2019, 01 end end end diff --git a/lib/faker/deprecate/star_wars.rb b/lib/faker/deprecate/star_wars.rb index 7d77a8f0dc..4c421cbe63 100644 --- a/lib/faker/deprecate/star_wars.rb +++ b/lib/faker/deprecate/star_wars.rb @@ -45,16 +45,16 @@ def quote(character = nil) Faker::Movies::StarWars.quote(character) end - deprecate :call_squadron, 'Faker::Movies::StarWars.call_squadron', 2018, 12 - deprecate :call_sign, 'Faker::Movies::StarWars.call_sign', 2018, 12 - deprecate :call_number, 'Faker::Movies::StarWars.call_number', 2018, 12 - deprecate :character, 'Faker::Movies::StarWars.character', 2018, 12 - deprecate :droid, 'Faker::Movies::StarWars.droid', 2018, 12 - deprecate :planet, 'Faker::Movies::StarWars.planet', 2018, 12 - deprecate :specie, 'Faker::Movies::StarWars.specie', 2018, 12 - deprecate :vehicle, 'Faker::Movies::StarWars.vehicle', 2018, 12 - deprecate :wookiee_sentence, 'Faker::Movies::StarWars.wookiee_sentence', 2018, 12 - deprecate :quote, 'Faker::Movies::StarWars.quote', 2018, 12 + deprecate :call_squadron, 'Faker::Movies::StarWars.call_squadron', 2019, 01 + deprecate :call_sign, 'Faker::Movies::StarWars.call_sign', 2019, 01 + deprecate :call_number, 'Faker::Movies::StarWars.call_number', 2019, 01 + deprecate :character, 'Faker::Movies::StarWars.character', 2019, 01 + deprecate :droid, 'Faker::Movies::StarWars.droid', 2019, 01 + deprecate :planet, 'Faker::Movies::StarWars.planet', 2019, 01 + deprecate :specie, 'Faker::Movies::StarWars.specie', 2019, 01 + deprecate :vehicle, 'Faker::Movies::StarWars.vehicle', 2019, 01 + deprecate :wookiee_sentence, 'Faker::Movies::StarWars.wookiee_sentence', 2019, 01 + deprecate :quote, 'Faker::Movies::StarWars.quote', 2019, 01 def call_numbers fetch_all('star_wars.call_numbers') diff --git a/lib/faker/deprecate/stargate.rb b/lib/faker/deprecate/stargate.rb index 4e84de1c7d..d91253ef4f 100644 --- a/lib/faker/deprecate/stargate.rb +++ b/lib/faker/deprecate/stargate.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::Stargate.quote end - deprecate :character, 'Faker::TvShows::Stargate.character', 2018, 12 - deprecate :planet, 'Faker::TvShows::Stargate.planet', 2018, 12 - deprecate :quote, 'Faker::TvShows::Stargate.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::Stargate.character', 2019, 01 + deprecate :planet, 'Faker::TvShows::Stargate.planet', 2019, 01 + deprecate :quote, 'Faker::TvShows::Stargate.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/stranger_things.rb b/lib/faker/deprecate/stranger_things.rb index 8e0130e6cb..aae2d6f2be 100644 --- a/lib/faker/deprecate/stranger_things.rb +++ b/lib/faker/deprecate/stranger_things.rb @@ -13,8 +13,8 @@ def character Faker::TvShows::StrangerThings.character end - deprecate :quote, 'Faker::TvShows::StrangerThings.quote', 2018, 12 - deprecate :character, 'Faker::TvShows::StrangerThings.character', 2018, 12 + deprecate :quote, 'Faker::TvShows::StrangerThings.quote', 2019, 01 + deprecate :character, 'Faker::TvShows::StrangerThings.character', 2019, 01 end end end diff --git a/lib/faker/deprecate/sword_art_online.rb b/lib/faker/deprecate/sword_art_online.rb index 98f2729934..1d749bffc9 100644 --- a/lib/faker/deprecate/sword_art_online.rb +++ b/lib/faker/deprecate/sword_art_online.rb @@ -21,10 +21,10 @@ def item Faker::JapaneseMedia::SwordArtOnline.item end - deprecate :real_name, 'Faker::JapaneseMedia::SwordArtOnline.real_name', 2018, 12 - deprecate :game_name, 'Faker::JapaneseMedia::SwordArtOnline.game_name', 2018, 12 - deprecate :location, 'Faker::JapaneseMedia::SwordArtOnline.location', 2018, 12 - deprecate :item, 'Faker::JapaneseMedia::SwordArtOnline.item', 2018, 12 + deprecate :real_name, 'Faker::JapaneseMedia::SwordArtOnline.real_name', 2019, 01 + deprecate :game_name, 'Faker::JapaneseMedia::SwordArtOnline.game_name', 2019, 01 + deprecate :location, 'Faker::JapaneseMedia::SwordArtOnline.location', 2019, 01 + deprecate :item, 'Faker::JapaneseMedia::SwordArtOnline.item', 2019, 01 end end end diff --git a/lib/faker/deprecate/tezos.rb b/lib/faker/deprecate/tezos.rb index 7fd4cf3879..0bd82aa9b1 100644 --- a/lib/faker/deprecate/tezos.rb +++ b/lib/faker/deprecate/tezos.rb @@ -24,10 +24,10 @@ def signature Faker::Blockchain::Tezos.signature end - deprecate :account, 'Faker::Blockchain::Tezos.account', 2018, 12 - deprecate :contract, 'Faker::Blockchain::Tezos.contract', 2018, 12 - deprecate :operation, 'Faker::Blockchain::Tezos.operation', 2018, 12 - deprecate :signature, 'Faker::Blockchain::Tezos.signature', 2018, 12 + deprecate :account, 'Faker::Blockchain::Tezos.account', 2019, 01 + deprecate :contract, 'Faker::Blockchain::Tezos.contract', 2019, 01 + deprecate :operation, 'Faker::Blockchain::Tezos.operation', 2019, 01 + deprecate :signature, 'Faker::Blockchain::Tezos.signature', 2019, 01 end end end diff --git a/lib/faker/deprecate/the_fresh_prince_of_bel_air.rb b/lib/faker/deprecate/the_fresh_prince_of_bel_air.rb index 529361ca07..45dfd1653b 100644 --- a/lib/faker/deprecate/the_fresh_prince_of_bel_air.rb +++ b/lib/faker/deprecate/the_fresh_prince_of_bel_air.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::TheFreshPrinceOfBelAir.quote end - deprecate :character, 'Faker::TvShows::TheFreshPrinceOfBelAir.character', 2018, 12 - deprecate :celebrity, 'Faker::TvShows::TheFreshPrinceOfBelAir.celebrity', 2018, 12 - deprecate :quote, 'Faker::TvShows::TheFreshPrinceOfBelAir.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::TheFreshPrinceOfBelAir.character', 2019, 01 + deprecate :celebrity, 'Faker::TvShows::TheFreshPrinceOfBelAir.celebrity', 2019, 01 + deprecate :quote, 'Faker::TvShows::TheFreshPrinceOfBelAir.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/the_it_crowd.rb b/lib/faker/deprecate/the_it_crowd.rb index 0b8a44dfc9..42b2103290 100644 --- a/lib/faker/deprecate/the_it_crowd.rb +++ b/lib/faker/deprecate/the_it_crowd.rb @@ -21,10 +21,10 @@ def quote Faker::TvShows::TheITCrowd.quote end - deprecate :actor, 'Faker::TvShows::TheITCrowd.actor', 2018, 12 - deprecate :character, 'Faker::TvShows::TheITCrowd.character', 2018, 12 - deprecate :email, 'Faker::TvShows::TheITCrowd.email', 2018, 12 - deprecate :quote, 'Faker::TvShows::TheITCrowd.quote', 2018, 12 + deprecate :actor, 'Faker::TvShows::TheITCrowd.actor', 2019, 01 + deprecate :character, 'Faker::TvShows::TheITCrowd.character', 2019, 01 + deprecate :email, 'Faker::TvShows::TheITCrowd.email', 2019, 01 + deprecate :quote, 'Faker::TvShows::TheITCrowd.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/the_thick_of_it.rb b/lib/faker/deprecate/the_thick_of_it.rb index 63fa0d9660..9ee7738531 100644 --- a/lib/faker/deprecate/the_thick_of_it.rb +++ b/lib/faker/deprecate/the_thick_of_it.rb @@ -17,9 +17,9 @@ def position Faker::TvShows::TheThickOfIt.position end - deprecate :character, 'Faker::TvShows::TheThickOfIt.character', 2018, 12 - deprecate :department, 'Faker::TvShows::TheThickOfIt.department', 2018, 12 - deprecate :position, 'Faker::TvShows::TheThickOfIt.position', 2018, 12 + deprecate :character, 'Faker::TvShows::TheThickOfIt.character', 2019, 01 + deprecate :department, 'Faker::TvShows::TheThickOfIt.department', 2019, 01 + deprecate :position, 'Faker::TvShows::TheThickOfIt.position', 2019, 01 end end end diff --git a/lib/faker/deprecate/twin_peaks.rb b/lib/faker/deprecate/twin_peaks.rb index 7f2bd7e1b1..1cd8421aee 100644 --- a/lib/faker/deprecate/twin_peaks.rb +++ b/lib/faker/deprecate/twin_peaks.rb @@ -17,9 +17,9 @@ def quote Faker::TvShows::TwinPeaks.quote end - deprecate :character, 'Faker::TvShows::TwinPeaks.character', 2018, 12 - deprecate :location, 'Faker::TvShows::TwinPeaks.location', 2018, 12 - deprecate :quote, 'Faker::TvShows::TwinPeaks.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::TwinPeaks.character', 2019, 01 + deprecate :location, 'Faker::TvShows::TwinPeaks.location', 2019, 01 + deprecate :quote, 'Faker::TvShows::TwinPeaks.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/umphreys_mcgee.rb b/lib/faker/deprecate/umphreys_mcgee.rb index 1ea15fefe7..f89a0b3f59 100644 --- a/lib/faker/deprecate/umphreys_mcgee.rb +++ b/lib/faker/deprecate/umphreys_mcgee.rb @@ -9,7 +9,7 @@ def song Faker::Music::UmphreysMcgee.song end - deprecate :song, 'Faker::Music::UmphreysMcgee.song', 2018, 12 + deprecate :song, 'Faker::Music::UmphreysMcgee.song', 2019, 01 end end end diff --git a/lib/faker/deprecate/v_for_vendetta.rb b/lib/faker/deprecate/v_for_vendetta.rb index 1cc8b8fbb2..4088a0a6d9 100644 --- a/lib/faker/deprecate/v_for_vendetta.rb +++ b/lib/faker/deprecate/v_for_vendetta.rb @@ -17,9 +17,9 @@ def quote Faker::Movies::VForVendetta.quote end - deprecate :character, 'Faker::Movies::VForVendetta.character', 2018, 12 - deprecate :speech, 'Faker::Movies::VForVendetta.speech', 2018, 12 - deprecate :quote, 'Faker::Movies::VForVendetta.quote', 2018, 12 + deprecate :character, 'Faker::Movies::VForVendetta.character', 2019, 01 + deprecate :speech, 'Faker::Movies::VForVendetta.speech', 2019, 01 + deprecate :quote, 'Faker::Movies::VForVendetta.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/venture_bros.rb b/lib/faker/deprecate/venture_bros.rb index e31c78a1c9..f412f25c67 100644 --- a/lib/faker/deprecate/venture_bros.rb +++ b/lib/faker/deprecate/venture_bros.rb @@ -21,10 +21,10 @@ def quote Faker::TvShows::VentureBros.quote end - deprecate :character, 'Faker::TvShows::VentureBros.character', 2018, 12 - deprecate :organization, 'Faker::TvShows::VentureBros.organization', 2018, 12 - deprecate :vehicle, 'Faker::TvShows::VentureBros.vehicle', 2018, 12 - deprecate :quote, 'Faker::TvShows::VentureBros.quote', 2018, 12 + deprecate :character, 'Faker::TvShows::VentureBros.character', 2019, 01 + deprecate :organization, 'Faker::TvShows::VentureBros.organization', 2019, 01 + deprecate :vehicle, 'Faker::TvShows::VentureBros.vehicle', 2019, 01 + deprecate :quote, 'Faker::TvShows::VentureBros.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/world_of_warcraft.rb b/lib/faker/deprecate/world_of_warcraft.rb index c55715a045..f72b25d0fa 100644 --- a/lib/faker/deprecate/world_of_warcraft.rb +++ b/lib/faker/deprecate/world_of_warcraft.rb @@ -13,8 +13,8 @@ def quote Faker::Games::WorldOfWarcraft.quote end - deprecate :hero, 'Faker::Games::WorldOfWarcraft.hero', 2018, 12 - deprecate :quote, 'Faker::Games::WorldOfWarcraft.quote', 2018, 12 + deprecate :hero, 'Faker::Games::WorldOfWarcraft.hero', 2019, 01 + deprecate :quote, 'Faker::Games::WorldOfWarcraft.quote', 2019, 01 end end end diff --git a/lib/faker/deprecate/yoda.rb b/lib/faker/deprecate/yoda.rb index bc5705a7a9..3953ec00de 100644 --- a/lib/faker/deprecate/yoda.rb +++ b/lib/faker/deprecate/yoda.rb @@ -10,7 +10,7 @@ def quote Faker::Quote.yoda end - deprecate :quote, 'Faker::Quote.yoda', 2018, 12 + deprecate :quote, 'Faker::Quote.yoda', 2019, 01 end end end diff --git a/lib/faker/deprecate/zelda.rb b/lib/faker/deprecate/zelda.rb index ec3b9e4b60..1f0b56c74f 100644 --- a/lib/faker/deprecate/zelda.rb +++ b/lib/faker/deprecate/zelda.rb @@ -21,10 +21,10 @@ def item Faker::Games::Zelda.item end - deprecate :game, 'Faker::Games::Zelda.game', 2018, 12 - deprecate :character, 'Faker::Games::Zelda.character', 2018, 12 - deprecate :location, 'Faker::Games::Zelda.location', 2018, 12 - deprecate :item, 'Faker::Games::Zelda.item', 2018, 12 + deprecate :game, 'Faker::Games::Zelda.game', 2019, 01 + deprecate :character, 'Faker::Games::Zelda.character', 2019, 01 + deprecate :location, 'Faker::Games::Zelda.location', 2019, 01 + deprecate :item, 'Faker::Games::Zelda.item', 2019, 01 end end end diff --git a/test/faker/default/test_faker_name.rb b/test/faker/default/test_faker_name.rb index 1041d6e547..44642b927c 100644 --- a/test/faker/default/test_faker_name.rb +++ b/test/faker/default/test_faker_name.rb @@ -43,13 +43,6 @@ def test_suffix assert @tester.suffix.match(/[A-Z][a-z]*\.?/) end - def test_job_titles - @job_titles = Faker::Name.job_titles - @job_titles.each do |title| - refute title.to_s.empty? - end - end - def test_initials assert @tester.initials.match(/[A-Z]{3}/) assert @tester.initials(2).match(/[A-Z]{2}/) diff --git a/test/test_ee_locale.rb b/test/test_ee_locale.rb index 4eea874b8e..c8834fec3c 100644 --- a/test/test_ee_locale.rb +++ b/test/test_ee_locale.rb @@ -49,7 +49,6 @@ def test_ee_name_methods assert Faker::Name.first_name.is_a? String assert Faker::Name.last_name.is_a? String assert Faker::Name.prefix.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.name_with_middle.is_a? String end diff --git a/test/test_fr_ca_locale.rb b/test/test_fr_ca_locale.rb index 803647ab1e..514ab59f42 100644 --- a/test/test_fr_ca_locale.rb +++ b/test/test_fr_ca_locale.rb @@ -61,7 +61,6 @@ def test_fr_ca_lorem_methods def test_fr_ca_name_methods assert Faker::Name.first_name.is_a? String assert Faker::Name.last_name.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.name.is_a? String assert Faker::Name.name_with_middle.is_a? String end diff --git a/test/test_fr_ch_locale.rb b/test/test_fr_ch_locale.rb index c69a0249b4..525ae32ba0 100644 --- a/test/test_fr_ch_locale.rb +++ b/test/test_fr_ch_locale.rb @@ -58,7 +58,6 @@ def test_fr_ch_lorem_methods def test_fr_ch_name_methods assert Faker::Name.first_name.is_a? String assert Faker::Name.last_name.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.name.is_a? String assert Faker::Name.name_with_middle.is_a? String end diff --git a/test/test_fr_locale.rb b/test/test_fr_locale.rb index 5d4113a784..6838d3750d 100644 --- a/test/test_fr_locale.rb +++ b/test/test_fr_locale.rb @@ -106,7 +106,6 @@ def test_fr_measurement_methods def test_fr_name_methods assert Faker::Name.first_name.is_a? String assert Faker::Name.last_name.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.name.is_a? String assert Faker::Name.name_with_middle.is_a? String end diff --git a/test/test_lv_locale.rb b/test/test_lv_locale.rb index b5a8df8584..16b286636e 100644 --- a/test/test_lv_locale.rb +++ b/test/test_lv_locale.rb @@ -52,7 +52,6 @@ def test_lv_name_methods assert Faker::Name.first_name.is_a? String assert Faker::Name.last_name.is_a? String assert Faker::Name.prefix.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.name_with_middle.is_a? String end end diff --git a/test/test_nl_locale.rb b/test/test_nl_locale.rb index 0bdb23652d..d660aeecb4 100644 --- a/test/test_nl_locale.rb +++ b/test/test_nl_locale.rb @@ -53,7 +53,6 @@ def test_nl_lorem_methods def test_nl_name_methods assert Faker::Name.first_name.is_a? String assert Faker::Name.last_name.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.name.is_a? String assert Faker::Name.name_with_middle.is_a? String assert Faker::Name.tussenvoegsel.is_a? String diff --git a/test/test_pl_locale.rb b/test/test_pl_locale.rb index f0a9ff434a..7a5bf4f69a 100644 --- a/test/test_pl_locale.rb +++ b/test/test_pl_locale.rb @@ -66,7 +66,6 @@ def test_pl_name_methods assert Faker::Name.first_name.is_a? String assert Faker::Name.last_name.is_a? String assert Faker::Name.prefix.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.name_with_middle.is_a? String end end diff --git a/test/test_sk_locale.rb b/test/test_sk_locale.rb index dcc79a0804..97808c91c9 100644 --- a/test/test_sk_locale.rb +++ b/test/test_sk_locale.rb @@ -44,7 +44,6 @@ def test_sk_internet_methods def test_sk_name_methods assert Faker::Name.prefix.is_a? String assert Faker::Name.suffix.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.name.is_a? String assert Faker::Name.name_with_middle.is_a? String assert Faker::Name.male_first_name.is_a? String diff --git a/test/test_tr_locale.rb b/test/test_tr_locale.rb index ba1364f668..04d77a96e8 100644 --- a/test/test_tr_locale.rb +++ b/test/test_tr_locale.rb @@ -36,7 +36,6 @@ def test_tr_names assert Faker::Name.first_name.is_a? String assert Faker::Name.last_name.is_a? String assert Faker::Name.prefix.is_a? String - assert Faker::Name.title.is_a? String assert Faker::Name.first_name.is_a? String assert Faker::Name.name_with_middle.is_a? String end diff --git a/v1.9.2.README.md b/v1.9.2.README.md new file mode 100644 index 0000000000..fd66a00aee --- /dev/null +++ b/v1.9.2.README.md @@ -0,0 +1,349 @@ +![logotype a happy-07](https://user-images.githubusercontent.com/36028424/40263395-4318481e-5b44-11e8-92e5-3dcc1ce169b3.png) + +# Faker +[![Build Status](https://travis-ci.org/stympy/faker.svg?branch=master)](https://travis-ci.org/stympy/faker) +[![Gem Version](https://badge.fury.io/rb/faker.svg)](https://badge.fury.io/rb/faker) +[![Inline docs](http://inch-ci.org/github/stympy/faker.svg?branch=master)](http://inch-ci.org/github/stympy/faker) +[![Test Coverage](https://api.codeclimate.com/v1/badges/ef54c7f9df86e965d64b/test_coverage)](https://codeclimate.com/github/stympy/faker/test_coverage) +[![Maintainability](https://api.codeclimate.com/v1/badges/ef54c7f9df86e965d64b/maintainability)](https://codeclimate.com/github/stympy/faker/maintainability) + +This gem is a port of [Perl's Data::Faker library](https://metacpan.org/pod/Data::Faker) that generates fake data. + +It comes in very handy for taking screenshots (taking screenshots for my +project, [Catch the Best](http://catchthebest.com/) was the original impetus +for the creation of this gem), having real-looking test data, and having your +database populated with more than one or two records while you're doing +development. + +- [Installing](#installing) +- [Usage](#usage) + - [Ensuring unique values](#ensuring-unique-values) + - [Deterministic Random](#deterministic-random) +- [Generators](#generators) + - [Default](#default) + - [Blockchain](#blockchain) + - [Books](#books) + - [Creature](#creature) + - [Games](#games) + - [Japanese Media](#japanese-media) + - [Movies](#movies) + - [Music](#music) + - [Quotes](#quotes) + - [TV Shows](#tv-shows) +- [Customization](#customization) +- [Contributing](#contributing) +- [Contact](#contact) +- [License](#license) + +### NOTE +* While Faker generates data at random, returned values are not guaranteed to be unique by default. + You must explicity specify when you require unique values, see [details](#ensuring-unique-values). + Values also can be deterministic if you use the deterministic feature, see [details](#deterministic-random) +* This is the `master` branch of Faker and may contain changes that are not yet released. + Please refer the README of your version for the available methods. + List of all versions is [available here](https://github.com/stympy/faker/releases). + +## Installing +```bash +gem install faker +``` +Note: if you are getting a `uninitialized constant Faker::[some_class]` error, your version of the gem is behind the one documented here. To make sure that your gem is the one documented here, change the line in your gemfile to: + +```ruby +gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' +``` + +## Usage +```ruby +require 'faker' + +Faker::Name.name #=> "Christophe Bartell" + +Faker::Internet.email #=> "kirsten.greenholt@corkeryfisher.info" +``` + +### Ensuring unique values +Prefix your method call with `unique`. For example: +```ruby +Faker::Name.unique.name # This will return a unique name every time it is called +``` + +If too many unique values are requested from a generator that has a limited +number of potential values, a `Faker::UniqueGenerator::RetryLimitExceeded` +exception may be raised. It is possible to clear the record of unique values +that have been returned, for example between tests. +```ruby +Faker::Name.unique.clear # Clears used values for Faker::Name +Faker::UniqueGenerator.clear # Clears used values for all generators +``` + +You also can give some already used values to the unique generator if you have +collisions with the generated data (i.e: using FactoryBot with random and +manually set values). + +```ruby +# Usage: +# Faker::.unique.exclude(method, arguments, list) + +# Add 'azerty' and 'wxcvbn' to the string generator with 6 char length +Faker::Lorem.unique.exclude :string, [6], %w[azerty wxcvbn] +``` + +### Deterministic Random +Faker supports seeding of its pseudo-random number generator (PRNG) to provide deterministic output of repeated method calls. + +```ruby +Faker::Config.random = Random.new(42) +Faker::Company.bs #=> "seize collaborative mindshare" +Faker::Company.bs #=> "engage strategic platforms" +Faker::Config.random = Random.new(42) +Faker::Company.bs #=> "seize collaborative mindshare" +Faker::Company.bs #=> "engage strategic platforms" + +Faker::Config.random = nil # seeds the PRNG using default entropy sources +Faker::Config.random.seed #=> 185180369676275068918401850258677722187 +Faker::Company.bs #=> "cultivate viral synergies" +``` + +## Generators +**NOTE: Some of the generators below aren't released yet. If you want to use them, change the line in your gemfile to:** + +```ruby +gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' +``` + +### Default + - [Faker::Address](doc/v1.9.2/default/address.md) + - [Faker::Alphanumeric](doc/v1.9.2/default/alphanumeric.md) + - [Faker::Ancient](doc/v1.9.2/default/ancient.md) + - [Faker::App](doc/v1.9.2/default/app.md) + - [Faker::Appliance](doc/v1.9.2/default/appliance.md) + - [Faker::Artist](doc/v1.9.2/default/artist.md) + - [Faker::Avatar](doc/v1.9.2/default/avatar.md) + - [Faker::Bank](doc/v1.9.2/default/bank.md) + - [Faker::Beer](doc/v1.9.2/default/beer.md) + - [Faker::Boolean](doc/v1.9.2/default/boolean.md) + - [Faker::BossaNova](doc/v1.9.2/default/bossa_nova.md) + - [Faker::Business](doc/v1.9.2/default/business.md) + - [Faker::Cannabis](doc/v1.9.2/default/cannabis.md) + - [Faker::ChileRut](doc/v1.9.2/default/chile_rut.md) + - [Faker::ChuckNorris](doc/v1.9.2/default/chuck_norris.md) + - [Faker::Code](doc/v1.9.2/default/code.md) + - [Faker::Coffee](doc/v1.9.2/default/coffee.md) + - [Faker::Coin](doc/v1.9.2/default/coin.md) + - [Faker::Color](doc/v1.9.2/default/color.md) + - [Faker::Commerce](doc/v1.9.2/default/commerce.md) + - [Faker::Company](doc/v1.9.2/default/company.md) + - [Faker::Compass](doc/v1.9.2/default/compass.md) + - [Faker::Construction](doc/v1.9.2/default/construction.md) + - [Faker::Cosmere](doc/v1.9.2/default/cosmere.md) + - [Faker::Crypto](doc/v1.9.2/default/crypto.md) + - [Faker::CryptoCoin](doc/v1.9.2/default/crypto_coin.md) + - [Faker::Currency](doc/v1.9.2/default/currency.md) + - [Faker::Date](doc/v1.9.2/default/date.md) + - [Faker::DcComics](doc/v1.9.2/default/dc_comics.md) + - [Faker::Demographic](doc/v1.9.2/default/demographic.md) + - [Faker::Dessert](doc/v1.9.2/default/dessert.md) + - [Faker::Device](doc/v1.9.2/default/device.md) + - [Faker::DrivingLicence](doc/v1.9.2/default/driving_licence.md) + - [Faker::Educator](doc/v1.9.2/default/educator.md) + - [Faker::ElectricalComponents](doc/v1.9.2/default/electrical_components.md) + - [Faker::Esport](doc/v1.9.2/default/esport.md) + - [Faker::File](doc/v1.9.2/default/file.md) + - [Faker::Fillmurray](doc/v1.9.2/default/fillmurray.md) + - [Faker::Finance](doc/v1.9.2/default/finance.md) + - [Faker::Food](doc/v1.9.2/default/food.md) + - [Faker::Football](doc/v1.9.2/default/football.md) + - [Faker::FunnyName](doc/v1.9.2/default/funny_name.md) + - [Faker::Gender](doc/v1.9.2/default/gender.md) + - [Faker::GreekPhilosophers](doc/v1.9.2/default/greek_philosophers.md) + - [Faker::Hacker](doc/v1.9.2/default/hacker.md) + - [Faker::Hipster](doc/v1.9.2/default/hipster.md) + - [Faker::House](doc/v1.9.2/default/house.md) + - [Faker::IDNumber](doc/v1.9.2/default/id_number.md) + - [Faker::IndustrySegments](doc/v1.9.2/default/industry_segments.md) + - [Faker::Internet](doc/v1.9.2/default/internet.md) + - [Faker::Invoice](doc/v1.9.2/default/invoice.md) + - [Faker::Job](doc/v1.9.2/default/job.md) + - [Faker::Json](doc/v1.9.2/default/json.md) + - [Faker::Kpop](doc/v1.9.2/default/kpop.md) + - [Faker::Lorem](doc/v1.9.2/default/lorem.md) + - [Faker::LoremFlickr](doc/v1.9.2/default/lorem_flickr.md) + - [Faker::LoremPixel](doc/v1.9.2/default/lorem_pixel.md) + - [Faker::Markdown](doc/v1.9.2/default/markdown.md) + - [Faker::Marketing](doc/v1.9.2/default/marketing.md) + - [Faker::Measurement](doc/v1.9.2/default/measurement.md) + - [Faker::Military](doc/v1.9.2/default/military.md) + - [Faker::Name](doc/v1.9.2/default/name.md) + - [Faker::Nation](doc/v1.9.2/default/nation.md) + - [Faker::NatoPhoneticAlphabet](doc/v1.9.2/default/nato_phonetic_alphabet.md) + - [Faker::NationalHealthService](doc/v1.9.2/default/national_health_service.md) + - [Faker::Number](doc/v1.9.2/default/number.md) + - [Faker::Omniauth](doc/v1.9.2/default/omniauth.md) + - [Faker::PhoneNumber](doc/v1.9.2/default/phone_number.md) + - [Faker::Placeholdit](doc/v1.9.2/default/placeholdit.md) + - [Faker::ProgrammingLanguage](doc/v1.9.2/default/programming_language.md) + - [Faker::Relationship](doc/v1.9.2/default/relationship.md) + - [Faker::Restaurant](doc/v1.9.2/default/restaurant.md) + - [Faker::Science](doc/v1.9.2/default/science.md) + - [Faker::SlackEmoji](doc/v1.9.2/default/slack_emoji.md) + - [Faker::Source](doc/v1.9.2/default/source.md) + - [Faker::SouthAfrica](doc/v1.9.2/default/south_africa.md) + - [Faker::Space](doc/v1.9.2/default/space.md) + - [Faker::String](doc/v1.9.2/default/string.md) + - [Faker::Stripe](doc/v1.9.2/default/stripe.md) + - [Faker::Subscription](doc/v1.9.2/default/subscription.md) + - [Faker::Superhero](doc/v1.9.2/default/superhero.md) + - [Faker::Team](doc/v1.9.2/default/team.md) + - [Faker::Time](doc/v1.9.2/default/time.md) + - [Faker::Twitter](doc/v1.9.2/default/twitter.md) + - [Faker::Types](doc/v1.9.2/default/types.md) + - [Faker::University](doc/v1.9.2/default/university.md) + - [Faker::Vehicle](doc/v1.9.2/default/vehicle.md) + - [Faker::Verbs](doc/v1.9.2/default/verbs.md) + - [Faker::WorldCup](doc/v1.9.2/default/world_cup.md) + +### Blockchain + - [Faker::Blockchain::Bitcoin](doc/v1.9.2/blockchain/bitcoin.md) + - [Faker::Blockchain::Ethereum](doc/v1.9.2/blockchain/ethereum.md) + - [Faker::Blockchain::Tezos](doc/v1.9.2/blockchain/tezos.md) + +### Books + - [Faker::Book](doc/v1.9.2/books/book.md) + - [Faker::Books::CultureSeries](doc/v1.9.2/books/culture_series.md) + - [Faker::Books::Dune](doc/v1.9.2/books/dune.md) + - [Faker::Books::Lovecraft](doc/v1.9.2/books/lovecraft.md) + +### Creature + - [Faker::Creature::Animal](doc/v1.9.2/creature/animal.md) + - [Faker::Creature::Cat](doc/v1.9.2/creature/cat.md) + - [Faker::Creature::Dog](doc/v1.9.2/creature/dog.md) + +### Games + - [Faker::Games::Dota](doc/v1.9.2/games/dota.md) + - [Faker::Games::ElderScrolls](doc/v1.9.2/games/elder_scrolls.md) + - [Faker::Games::Fallout](doc/v1.9.2/games/fallout.md) + - [Faker::Games::HalfLife](doc/v1.9.2/games/half_life.md) + - [Faker::Games::Heroes](doc/v1.9.2/games/heroes.md) + - [Faker::Games::HeroesOfTheStorm](doc/v1.9.2/games/heroes_of_the_storm.md) + - [Faker::Games::LeagueOfLegends](doc/v1.9.2/games/league_of_legends.md) + - [Faker::Games::Myst](doc/v1.9.2/games/myst.md) + - [Faker::Games::Overwatch](doc/v1.9.2/games/overwatch.md) + - [Faker::Games::Pokemon](doc/v1.9.2/games/pokemon.md) + - [Faker::Games::SonicTheHedgehog](doc/v1.9.2/games/sonic_the_hedgehog.md) + - [Faker::Games::SuperSmashBros](doc/v1.9.2/games/super_smash_bros.md) + - [Faker::Games::Witcher](doc/v1.9.2/games/witcher.md) + - [Faker::Games::WorldOfWarcraft](doc/v1.9.2/games/world_of_warcraft.md) + - [Faker::Games::Zelda](doc/v1.9.2/games/zelda.md) + +### Japanese Media + - [Faker::JapaneseMedia::DragonBall](doc/v1.9.2/japanese_media/dragon_ball.md) + - [Faker::JapaneseMedia::OnePiece](doc/v1.9.2/japanese_media/one_piece.md) + - [Faker::JapaneseMedia::SwordArtOnline](doc/v1.9.2/japanese_media/sword_art_online.md) + +### Movies + - [Faker::Movie](doc/v1.9.2/movies/movie.md) + - [Faker::Movies::BackToTheFuture](doc/v1.9.2/movies/back_to_the_future.md) + - [Faker::Movies::Ghostbusters](doc/v1.9.2/movies/ghostbusters.md) + - [Faker::Movies::GratefulDead](doc/v1.9.2/movies/grateful_dead.md) + - [Faker::Movies::HarryPotter](doc/v1.9.2/movies/harry_potter.md) + - [Faker::Movies::HitchhikersGuideToTheGalaxy](doc/v1.9.2/movies/hitchhikers_guide_to_the_galaxy.md) + - [Faker::Movies::Hobbit](doc/v1.9.2/movies/hobbit.md) + - [Faker::Movies::Lebowski](doc/v1.9.2/movies/lebowski.md) + - [Faker::Movies::LordOfTheRings](doc/v1.9.2/movies/lord_of_the_rings.md) + - [Faker::Movies::PrincessBride](doc/v1.9.2/movies/princess_bride.md) + - [Faker::Movies::StarWars](doc/v1.9.2/movies/star_wars.md) + - [Faker::Movies::VForVendetta](doc/v1.9.2/movies/v_for_vendetta.md) + +### Music + - [Faker::Music](doc/v1.9.2/music/music.md) + - [Faker::Music::Phish](doc/v1.9.2/music/phish.md) + - [Faker::Music::RockBand](doc/v1.9.2/music/rock_band.md) + - [Faker::Music::UmphreysMcgee](doc/v1.9.2/music/umphreys_mcgee.md) + +### Quotes + - [Faker::Quote](doc/v1.9.2/quotes/quote.md) + - [Faker::Quotes::Shakespeare](doc/v1.9.2/quotes/shakespeare.md) + +### Tv Shows + - [Faker::TvShows::AquaTeenHungerForce](doc/v1.9.2/tv_shows/aqua_teen_hunger_force.md) + - [Faker::TvShows::BojackHorseman](doc/v1.9.2/tv_shows/bojack_horseman.md) + - [Faker::TvShows::BreakingBad](doc/v1.9.2/tv_shows/breaking_bad.md) + - [Faker::TvShows::Buffy](doc/v1.9.2/tv_shows/buffy.md) + - [Faker::TvShows::Community](doc/v1.9.2/tv_shows/community.md) + - [Faker::TvShows::DrWho](doc/v1.9.2/tv_shows/dr_who.md) + - [Faker::TvShows::DumbAndDumber](doc/v1.9.2/tv_shows/dumb_and_dumber.md) + - [Faker::TvShows::FamilyGuy](doc/v1.9.2/tv_shows/family_guy.md) + - [Faker::TvShows::Friends](doc/v1.9.2/tv_shows/friends.md) + - [Faker::TvShows::GameOfThrones](doc/v1.9.2/tv_shows/game_of_thrones.md) + - [Faker::TvShows::HeyArnold](doc/v1.9.2/tv_shows/hey_arnold.md) + - [Faker::TvShows::HowIMetYourMother](doc/v1.9.2/tv_shows/how_i_met_your_mother.md) + - [Faker::TvShows::MichaelScott](doc/v1.9.2/tv_shows/michael_scott.md) + - [Faker::TvShows::NewGirl](doc/v1.9.2/tv_shows/new_girl.md) + - [Faker::TvShows::ParksAndRec](doc/v1.9.2/tv_shows/parks_and_rec.md) + - [Faker::TvShows::RickAndMorty](doc/v1.9.2/tv_shows/rick_and_morty.md) + - [Faker::TvShows::RuPaul](doc/v1.9.2/tv_shows/rupaul.md) + - [Faker::TvShows::Seinfeld](doc/v1.9.2/tv_shows/seinfeld.md) + - [Faker::TvShows::SiliconValley](doc/v1.9.2/tv_shows/silicon_valley.md) + - [Faker::TvShows::Simpsons](doc/v1.9.2/tv_shows/simpsons.md) + - [Faker::TvShows::SouthPark](doc/v1.9.2/tv_shows/south_park.md) + - [Faker::TvShows::StarTrek](doc/v1.9.2/tv_shows/star_trek.md) + - [Faker::TvShows::Stargate](doc/v1.9.2/tv_shows/stargate.md) + - [Faker::TvShows::StrangerThings](doc/v1.9.2/tv_shows/stranger_things.md) + - [Faker::TvShows::TheExpanse](doc/v1.9.2/tv_shows/the_expanse.md) + - [Faker::TvShows::TheFreshPrinceOfBelAir](doc/v1.9.2/tv_shows/the_fresh_prince_of_bel_air.md) + - [Faker::TvShows::TheITCrowd](doc/v1.9.2/tv_shows/the_it_crowd.md) + - [Faker::TvShows::TheThickOfIt](doc/v1.9.2/tv_shows/the_thick_of_it.md) + - [Faker::TvShows::TwinPeaks](doc/v1.9.2/tv_shows/twin_peaks.md) + - [Faker::TvShows::VentureBros](doc/v1.9.2/tv_shows/venture_bros.md) + +## Customization +Since you may want to make addresses and other types of data look different +depending on where in the world you are (US postal codes vs. UK postal codes, +for example), Faker uses the I18n gem to store strings (like state names) and +formats (US postal codes are NNNNN while UK postal codes are AAN NAA), +allowing you to get different formats by switching locales. Just set +Faker::Config.locale to the locale you want, and Faker will take care of the +rest. + +If your locale doesn't already exist, create it in the `lib/locales` directory +and you can then override or add elements to suit your needs. See more about how to +use locales [here](lib/locales/README.md) + +```yaml +en-au-ocker: + faker: + name: + # Existing faker field, new data + first_name: + - Charlotte + - Ava + - Chloe + - Emily + + # New faker fields + ocker_first_name: + - Bazza + - Bluey + - Davo + - Johno + - Shano + - Shazza + region: + - South East Queensland + - Wide Bay Burnett + - Margaret River + - Port Pirie + - Gippsland + - Elizabeth + - Barossa +``` + +## Contributing +See [CONTRIBUTING.md](https://github.com/stympy/faker/blob/master/CONTRIBUTING.md). + +## Contact +Comments and feedback are welcome. Send an email to Benjamin Curtis via the [google group](http://groups.google.com/group/ruby-faker). + +## License +This code is free to use under the terms of the MIT license.