forked from faker-ruby/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes before release (faker-ruby#1508)
* Change deprecate dates to 01/2019 * Move docs/unreleased to docs/1.9.2 * Fix rubocop offenses * Check the 1.8.7 deprecate methods and remove the warnings * Revert wrong change * Fix deprecate dates * Fix Style/NumericLiteralPrefix cop offense * Enable Style/NumericLiteralPrefix false
- Loading branch information
Showing
250 changed files
with
3,799 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Faker::Blockchain::Bitcoin | ||
|
||
```ruby | ||
Faker::Blockchain::Bitcoin.address #=> "1HUoGjmgChmnxxYhz87YytV4gVjfPaExmh" | ||
|
||
Faker::Blockchain::Bitcoin.testnet_address #=> "msHGunDvoEwmVFXvd2Bub1SNw5RP1YHJaf" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Faker::Blockchain::Ethereum | ||
|
||
Available since version 1.9.0. | ||
|
||
```ruby | ||
Faker::Blockchain::Ethereum.address #=> "c38bbc8e93c09f6ed3fe39b5135da91ad1a99d397ef16948606cdcbd14929f9d" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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." | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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." | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Faker::Creature::Animal | ||
|
||
It might be available in the next version. | ||
|
||
```ruby | ||
Faker::Creature::Animal.name #=> "Antelope" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Faker::Appliance | ||
|
||
Available since version 1.9.0. | ||
|
||
```ruby | ||
Faker::Appliance.brand #=> "Bosch" | ||
|
||
Faker::Appliance.equipment #=> "Appliance plug" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Faker::Artist | ||
|
||
Available since version 1.8.8. | ||
|
||
```ruby | ||
Faker::Artist.name #=> "Michelangelo" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
``` |
Oops, something went wrong.