Skip to content

Commit f0fdecd

Browse files
committed
Add missing docs and make them similar
1 parent d5f744a commit f0fdecd

35 files changed

+101
-113
lines changed

doc/books/dune.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ Faker::Books::Dune.planet #=> "Caladan"
1111

1212
Faker::Books::Dune.quote #=> "A dead man, surely, no longer requires that water."
1313

14+
# Keyword arguments: character
1415
Faker::Books::Dune.quote(character: "baron_harkonnen") #=> "He who controls the spice, controls the universe!"
1516

1617
Faker::Books::Dune.saying #=> "You do not beg the sun for mercy."
1718

19+
# Keyword arguments: source
1820
Faker::Books::Dune.saying(source: "fremen") #=> "May thy knife chip and shatter."
1921
```

doc/books/lovecraft.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@ Faker::Books::Lovecraft.location #=> "Kingsport"
1212

1313
Faker::Books::Lovecraft.word #=> "furtive"
1414

15-
# Keyword arguments: word_count: 4, random_words_to_add: 6
15+
# Keyword arguments: word_count, random_words_to_add
1616
Faker::Books::Lovecraft.sentence #=> "Furtive antiquarian squamous dank cat loathsome amorphous lurk."
1717
Faker::Books::Lovecraft.sentence(word_count: 3) #=> "Daemoniac antediluvian fainted squamous comprehension gambrel nameless singular."
1818
Faker::Books::Lovecraft.sentence(word_count: 3, random_words_to_add: 1) #=> "Amorphous indescribable tenebrous."
1919

20-
# Keyword arguments: number: 3, spaces_allowed: false
20+
# Keyword arguments: number, spaces_allowed
2121
Faker::Books::Lovecraft.words #=> ["manuscript", "abnormal", "singular"]
2222
Faker::Books::Lovecraft.words(number: 2) #=> ["daemoniac", "cat"]
2323
Faker::Books::Lovecraft.words(number: 2, spaces_allowed: true) #=> ["lurk", "charnel"]
2424

25-
# Keyword arguments: number: 3
25+
# Keyword arguments: number
2626
Faker::Books::Lovecraft.sentences #=> ["Nameless loathsome decadent gambrel.", "Ululate swarthy immemorial cat madness gibbous unmentionable unnamable.", "Decadent antediluvian non-euclidean tentacles amorphous tenebrous."]
2727
Faker::Books::Lovecraft.sentences(number: 2) #=> ["Antediluvian amorphous unmentionable singular accursed squamous immemorial.", "Gambrel daemoniac gibbous stygian shunned ululate iridescence abnormal."]
2828

29-
# Keyword arguments: sentence_count: 3, random_sentences_to_add: 3
29+
# Keyword arguments: sentence_count, random_sentences_to_add
3030
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."
3131
Faker::Books::Lovecraft.paragraph(sentence_count: 2) #=> "Decadent lurk tenebrous loathsome furtive spectral amorphous gibbous. Gambrel eldritch daemoniac cat madness comprehension stygian effulgence."
3232
Faker::Books::Lovecraft.paragraph(sentence_count: 2, random_sentences_to_add: 1) #=> "Stench cyclopean fainted antiquarian nameless. Antiquarian ululate tenebrous non-euclidean effulgence."
3333

34-
# Keyword arguments: number: 3
34+
# Keyword arguments: number
3535
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."]
3636
Faker::Books::Lovecraft.paragraphs(number: 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."]
3737

38-
# Keyword arguments: characters: 3, supplemental: false
38+
# Keyword arguments: characters, supplemental
3939
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."
4040
Faker::Books::Lovecraft.paragraph_by_chars(characters: 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."
4141
```

doc/default/alphanumeric.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Faker::Alphanumeric
22

33
```ruby
4+
# Keyword arguments: characters
45
Faker::Alphanumeric.alpha(characters: 10) #=> "zlvubkrwga"
56

7+
# Keyword arguments: characters
68
Faker::Alphanumeric.alphanumeric(characters: 10) #=> "3yfq2phxtb"
79
```

doc/default/bank.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33

44
Faker::Bank.account_number #=> 6738582379
55

6+
# Keyword arguments: digits
67
Faker::Bank.account_number(digits: 13) #=> 673858237902
78

89
Faker::Bank.iban #=> "GB76DZJM33188515981979"
910

10-
# Keyword argument: country_code
11+
# Keyword arguments: country_code
1112
# All countries should be supported
1213
Faker::Bank.iban(country_code: "be") #=> "BE6375388567752043"
1314

doc/default/boolean.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Available since version 1.6.2.
55
```ruby
66
Faker::Boolean.boolean #=> true
77

8-
# Keyword parameter: true_ratio: 0.5
8+
# Keyword parameter: true_ratio
99
Faker::Boolean.boolean(true_ratio: 0.2) #=> false
1010
```

doc/default/chile_rut.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Faker::ChileRut.full_rut #=> "30686957-4"
77
Faker::ChileRut.rut #=> 11235813
88

99
# Returns rut between passed minimum rut and 99999999
10+
# Keyword arguments: min_rut
1011
Faker::ChileRut.rut(min_rut: 20_890_156) #=> 31853211
1112

1213
# Every call to rut or full_rut generates a new random rut, so last_rut and dv

doc/default/code.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Faker::Code.rut #=> "91389184-8"
1111

1212
Faker::Code.nric #=> "S5589083H"
1313

14+
# Keyword arguments: min_age, max_age
1415
Faker::Code.nric(min_age: 27, max_age: 34) #=> S8505970Z
1516

1617
Faker::Code.imei #= "546327785982623"

doc/default/commerce.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
```ruby
44
Faker::Commerce.color #=> "lavender"
55

6-
# Keyword arguments max: 3, fixed_amount: false
6+
# Keyword arguments: max, fixed_amount
77
Faker::Commerce.department #=> "Grocery, Health & Beauty"
88
Faker::Commerce.department(max: 5) #=> "Grocery, Books, Health & Beauty"
99
Faker::Commerce.department(max: 2, fixed_amount: true) #=> "Books & Tools"
@@ -13,11 +13,12 @@ Faker::Commerce.material #=> "Steel"
1313
Faker::Commerce.product_name #=> "Practical Granite Shirt"
1414

1515
# Produces a Float by default
16+
# Keyword arguments: range, as_string
1617
Faker::Commerce.price #=> 44.6
1718
Faker::Commerce.price(range: 0..10.0, as_string: true) #=> "2.18"
1819

1920
# Generate a random promotion code.
20-
# Keyword argument digits: 6 for number of random digits in suffix
21+
# Keyword arguments: digits
2122
Faker::Commerce.promotion_code #=> "AmazingDeal829102"
2223
Faker::Commerce.promotion_code(digits: 2) #=> "AmazingPrice57"
2324

doc/default/company.md

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Faker::Company.south_african_trust_registration_number #=> "IT38/6489900"
7070
Faker::Company.brazilian_company_number #=> "18553414000618"
7171

7272
# Get a random formatted Brazilian company number (CNPJ)
73+
# Keyword arguments: formatted
7374
Faker::Company.brazilian_company_number(formatted: true) #=> "00.000.000/0000-00"
7475

7576
# Get a random USA Standard Industrial Classification code (SIC)

doc/default/date.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@
22

33
```ruby
44
# Random date between dates
5+
# Keyword arguments: from, to
56
Faker::Date.between(from: 2.days.ago, to: Date.today) #=> "Wed, 24 Sep 2014"
67

78
# Random date between dates except for certain date
9+
# Keyword arguments: from, to, excepted
810
Faker::Date.between_except(from: 1.year.ago, to: 1.year.from_now, excepted: Date.today) #=> "Wed, 24 Sep 2014"
911

1012
# Random date in the future (up to maximum of N days)
13+
# Keyword arguments: days
1114
Faker::Date.forward(days: 23) # => "Fri, 03 Oct 2014"
1215

1316
# Random date in the past (up to maximum of N days)
17+
# Keyword arguments: days
1418
Faker::Date.backward(days: 14) #=> "Fri, 19 Sep 2014"
1519

1620
# Random birthday date (maximum age between 18 and 65)
21+
# Keyword arguments: min_age, max_age
1722
Faker::Date.birthday(min_age: 18, max_age: 65) #=> "Mar, 28 Mar 1986"
1823
```

doc/default/demographic.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ Faker::Demographic.sex #=> "Female"
1515

1616
Faker::Demographic.height #=> "1.61"
1717

18+
# Keyword arguments: unit
1819
Faker::Demographic.height(unit: :imperial) #=> "6 ft, 2 in"
1920
```

doc/default/fillmurray.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
Available since version 1.7.1.
44

55
```ruby
6+
# Keyword arguments: grayscale, width, height
67
Faker::Fillmurray.image #=> "http://www.fillmurray.com/300/300"
7-
88
Faker::Fillmurray.image(grayscale: true) #=> "http://fillmurray.com/g/300/300"
9-
109
Faker::Fillmurray.image(grayscale: false, width: 200, height: 400) #=> "http://fillmurray.com/200/400"
1110
```

doc/default/finance.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Faker::Finance.credit_card(:mastercard) #=> "6771-8921-2291-6236"
77
Faker::Finance.credit_card(:mastercard, :visa) #=> "4448-8934-1277-7195"
88

99
# Random vat number
10+
# Keyword arguments: country
1011
Faker::Finance.vat_number #=> "BR38.395.329/2471-83"
1112
Faker::Finance.vat_number(country: 'DE') #=> "DE593306671"
1213
Faker::Finance.vat_number(country: 'ZA') #=> "ZA79494416181"

doc/default/hipster.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,37 @@ Adapted from [Hipster Ipsum](http://hipsum.co/)
55
```ruby
66
Faker::Hipster.word #=> "irony"
77

8-
# Keyword arguments: number: 3, supplemental: false, spaces_allowed: false
8+
# Keyword arguments: number, supplemental, spaces_allowed
99
Faker::Hipster.words #=> ["pug", "pitchfork", "chia"]
1010
Faker::Hipster.words(number: 4) #=> ["ugh", "cardigan", "poutine", "stumptown"]
1111
Faker::Hipster.words(number: 4, supplemental: true) #=> ["iste", "seitan", "normcore", "provident"]
1212
Faker::Hipster.words(number: 4, supplemental: true, spaces_allowed: true) #=> ["qui", "magni", "craft beer", "est"]
1313

14-
# Keyword arguments: word_count: 4, supplemental: false, random_words_to_add: 6
14+
# Keyword arguments: word_count, supplemental, random_words_to_add
1515
Faker::Hipster.sentence #=> "Park iphone leggings put a bird on it."
1616
Faker::Hipster.sentence(word_count: 3) #=> "Pour-over swag godard."
1717
Faker::Hipster.sentence(word_count: 3, supplemental: true) #=> "Beard laboriosam sequi celiac."
1818
Faker::Hipster.sentence(word_count: 3, supplemental: false, random_words_to_add: 4) #=> "Bitters retro mustache aesthetic biodiesel 8-bit."
1919
Faker::Hipster.sentence(word_count: 3, supplemental: true, random_words_to_add: 4) #=> "Occaecati deleniti messenger bag meh crucifix autem."
2020

21-
# Keyword arguments: number: 3, supplemental: false
21+
# Keyword arguments: number, supplemental
2222
Faker::Hipster.sentences #=> ["Godard pitchfork vinegar chillwave everyday 90's whatever.", "Pour-over artisan distillery street waistcoat.", "Salvia yr leggings franzen blue bottle."]
2323
Faker::Hipster.sentences(number: 1) #=> ["Before they sold out pinterest venmo umami try-hard ugh hoodie artisan."]
2424
Faker::Hipster.sentences(number: 1, supplemental: true) #=> ["Et sustainable optio aesthetic et."]
2525

26-
# Keyword arguments: sentence_count: 3, supplemental: false, random_sentences_to_add: 3
26+
# Keyword arguments: sentence_count, supplemental, random_sentences_to_add
2727
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."
2828
Faker::Hipster.paragraph(sentence_count: 2) #=> "Yolo tilde farm-to-table hashtag. Lomo kitsch disrupt forage +1."
2929
Faker::Hipster.paragraph(sentence_count: 2, supplemental: true) #=> "Typewriter iste ut viral kombucha voluptatem. Sint voluptates saepe. Direct trade irony chia excepturi yuccie. Biodiesel esse listicle et quam suscipit."
3030
Faker::Hipster.paragraph(sentence_count: 2, supplemental: false, random_sentences_to_add: 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."
3131
Faker::Hipster.paragraph(sentence_count: 2, supplemental: true, random_sentences_to_add: 4) #=> "Deep v gluten-free unde waistcoat aperiam migas voluptas dolorum. Aut drinking illo sustainable sapiente. Direct trade fanny pack kale chips ennui semiotics."
3232

33-
# Keyword arguments: number: 3, supplemental: false
33+
# Keyword arguments: number, supplemental
3434
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."]
3535
Faker::Hipster.paragraphs(number: 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."]
3636
Faker::Hipster.paragraphs(number: 1, supplemental: 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."]
3737

38-
# Keyword arguments: characters: 3, supplemental: false
38+
# Keyword arguments: characters, supplemental
3939
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."
4040
Faker::Hipster.paragraph_by_chars(characters: 256, supplemental: 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."
4141
```

doc/default/id_number.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ Faker::IDNumber.invalid_south_african_id_number #=> "1642972065088"
2525
Faker::IDNumber.brazilian_citizen_number #=> "53540542221"
2626

2727
# Generate a formatted Brazilian CPF
28+
# Keyword arguments: formatted
2829
Faker::IDNumber.brazilian_citizen_number(formatted: true) #=> 000.000.000-00
2930
```

doc/default/internet.md

+11-21
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,35 @@
11
# Faker::Internet
22

33
```ruby
4-
# Keyword arguments name: nil, separators: nil
4+
# Keyword arguments: name, separators
55
Faker::Internet.email #=> "[email protected]"
6-
76
Faker::Internet.email(name: 'Nancy') #=> "[email protected]"
8-
97
Faker::Internet.email(name: 'Janelle Santiago', separators: '+') #=> [email protected]"
108

11-
# Keyword argument name: nil
9+
# Keyword arguments: name
1210
Faker::Internet.free_email #=> "[email protected]"
13-
1411
Faker::Internet.free_email(name: 'Nancy') #=> "[email protected]"
1512

16-
# Keyword argument name: nil
13+
# Keyword arguments: name
1714
Faker::Internet.safe_email #=> "[email protected]"
18-
1915
Faker::Internet.safe_email(name: 'Nancy') #=> "[email protected]"
2016

21-
# Keyword arguments specifier: nil, separators: %w(. _)
17+
# Keyword arguments: specifier, separators
2218
Faker::Internet.username #=> "alexie"
23-
2419
Faker::Internet.username(specifier: 'Nancy') #=> "nancy"
25-
2620
Faker::Internet.username(specifier: 'Nancy Johnson', separators: %w(. _ -)) #=> "johnson-nancy"
2721

28-
# Keyword arguments: min_length: 5, max_length: 8
22+
# Keyword arguments: min_length, max_length
2923
Faker::Internet.username(specifier: 5..8)
3024

31-
# Keyword argument min_length: 8
25+
# Keyword arguments: min_length
3226
Faker::Internet.username(specifier: 8)
3327

34-
# Keyword arguments: min_length: 8, max_length: 16
28+
# Keyword arguments: min_length, max_length, mix_case, special_chars
3529
Faker::Internet.password #=> "Vg5mSvY1UeRg7"
36-
3730
Faker::Internet.password(min_length: 8) #=> "YfGjIk0hGzDqS0"
38-
3931
Faker::Internet.password(min_length: 10, max_length: 20) #=> "EoC9ShWd1hWq4vBgFw"
40-
4132
Faker::Internet.password(min_length: 10, max_length: 20, mix_case: true) #=> "3k5qS15aNmG"
42-
4333
Faker::Internet.password(min_length: 10, max_length: 20, mix_case: true, special_chars: true) #=> "*%NkOnJsH4"
4434

4535
Faker::Internet.domain_name #=> "effertz.info"
@@ -62,21 +52,21 @@ Faker::Internet.ip_v6_address #=> "ac5f:d696:3807:1d72:2eb5:4e81:7d2b:e1df"
6252

6353
Faker::Internet.ip_v6_cidr #=> "ac5f:d696:3807:1d72:2eb5:4e81:7d2b:e1df/78"
6454

65-
# Keyword argument prefix: ''
55+
# Keyword arguments: prefix
6656
Faker::Internet.mac_address #=> "e6:0d:00:11:ed:4f"
6757
Faker::Internet.mac_address(prefix: '55:44:33') #=> "55:44:33:02:1d:9b"
6858

69-
# Keyword arguments: host: domain_name, path: "/#{username}", scheme: scheme
59+
# Keyword arguments: host, path, scheme
7060
Faker::Internet.url #=> "http://thiel.com/chauncey_simonis"
7161
Faker::Internet.url(host: 'example.com') #=> "http://example.com/clotilde.swift"
7262
Faker::Internet.url(host: 'example.com', path: '/foobar.html') #=> "http://example.com/foobar.html"
7363

74-
# Keyword arguments: words: nil, glue: nil
64+
# Keyword arguments: words, glue
7565
Faker::Internet.slug #=> "pariatur_laudantium"
7666
Faker::Internet.slug(words: 'foo bar') #=> "foo.bar"
7767
Faker::Internet.slug(words: 'foo bar', glue: '-') #=> "foo-bar"
7868

79-
# Keyword argument: vendor: nil
69+
# Keyword arguments: vendor
8070
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)"
8171
Faker::Internet.user_agent(vendor: :firefox) #=> "Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.0"
8272

0 commit comments

Comments
 (0)