Skip to content

Commit 1012ec7

Browse files
committed
Double check /docs and fix issues
1 parent 44e2ecc commit 1012ec7

25 files changed

+97
-63
lines changed

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-
# Optional arguments: word_count=4, random_words_to_add=6
15+
# Keyword arguments: word_count=4, random_words_to_add=6
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-
# Optional arguments: number=3, spaces_allowed = false
20+
# Keyword arguments: number=3, spaces_allowed = false
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-
# Optional arguments: number=3
25+
# Keyword arguments: number=3
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-
# Optional arguments: sentence_count=3, random_sentences_to_add=3
29+
# Keyword arguments: sentence_count=3, random_sentences_to_add=3
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-
# Optional arguments: paragraph_count=3
34+
# Keyword arguments: paragraph_count=3
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-
# Optional arguments: chars=3, supplemental=false
38+
# Keyword arguments: characters=3, supplemental=false
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/address.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ Faker::Address.state_abbr #=> "AP"
3535

3636
Faker::Address.country #=> "French Guiana"
3737

38-
# Optional arguments: code
38+
# Keyword arguments: code
3939
Faker::Address.country_by_code(code: 'NL') #=> "Netherlands"
4040

41-
# Optional arguments: name
41+
# Keyword arguments: name
4242
Faker::Address.country_name_to_code(name: 'united_states') #=> "US"
4343

4444
Faker::Address.country_code #=> "IT"

doc/default/bank.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Faker::Bank.account_number(digits: 13) #=> 673858237902
77

88
Faker::Bank.iban #=> "GB76DZJM33188515981979"
99

10-
# Optional argument bank_country_code
10+
# Keyword argument: country_code
1111
# All countries should be supported
1212
Faker::Bank.iban(country_code: "be") #=> "BE6375388567752043"
1313

doc/default/boolean.md

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

55
```ruby
6-
# Optional parameter: true_ratio=0.5
76
Faker::Boolean.boolean #=> true
87

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

doc/default/commerce.md

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

6-
# Optional arguments max=3, fixed_amount=false
6+
# Keyword arguments max: 3, fixed_amount: false
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"
@@ -17,7 +17,7 @@ Faker::Commerce.price #=> 44.6
1717
Faker::Commerce.price(range: 0..10.0, as_string: true) #=> "2.18"
1818

1919
# Generate a random promotion code.
20-
# Optional argument digits = 6 for number of random digits in suffix
20+
# Keyword argument digits: 6 for number of random digits in suffix
2121
Faker::Commerce.promotion_code #=> "AmazingDeal829102"
2222
Faker::Commerce.promotion_code(digits: 2) #=> "AmazingPrice57"
2323

doc/default/company.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,29 @@ Faker::Company.type #=> "Privately Held"
2929
# Get a random profession
3030
Faker::Company.profession #=> "firefighter"
3131

32+
###############################################################
3233
# Generate country specific identifiers
34+
###############################################################
3335

36+
# Get a random Swedish organisation number
3437
Faker::Company.swedish_organisation_number #=> "7962578022"
3538

39+
# Get a random Czech organisation number
3640
Faker::Company.czech_organisation_number #=> "77778171"
3741

42+
# Get a random French siren number
3843
Faker::Company.french_siren_number #=> "819489626"
3944

45+
# Get a random French siret number
4046
Faker::Company.french_siret_number #=> "81948962600013"
4147

48+
# Get a random Norwegian organisation number
4249
Faker::Company.norwegian_organisation_number #=> "839071558"
4350

51+
# Get a random Australian organisation number
4452
Faker::Company.australian_business_number #=> "81137773602"
4553

54+
# Get a random Spanish organisation number
4655
Faker::Company.spanish_organisation_number #=> "P2344979"
4756

4857
# Get a random Polish taxpayer identification number
@@ -51,18 +60,18 @@ Faker::Company.polish_taxpayer_identification_number #=> "1060000062"
5160
# Get a random Polish register of national economy number
5261
Faker::Company.polish_register_of_national_economy #=> "123456785"
5362

54-
# Generate South African company registration numbers:
63+
# Get a random South African company registration number
5564
Faker::Company.south_african_pty_ltd_registration_number #=> "5301/714689/07"
5665
Faker::Company.south_african_close_corporation_registration_number #=> "CK74/7585/23"
5766
Faker::Company.south_african_listed_company_registration_number #=> "7039/3135/06"
5867
Faker::Company.south_african_trust_registration_number #=> "IT38/6489900"
5968

60-
# Generate a Brazilian company number (CNPJ)
69+
# Get a random Brazilian company number (CNPJ)
6170
Faker::Company.brazilian_company_number #=> "18553414000618"
6271

63-
# Generate a formatted Brazilian company number (CNPJ)
72+
# Get a random formatted Brazilian company number (CNPJ)
6473
Faker::Company.brazilian_company_number(formatted: true) #=> "00.000.000/0000-00"
6574

66-
# Generate a USA Standard Industrial Classification code (SIC)
75+
# Get a random USA Standard Industrial Classification code (SIC)
6776
Faker::Company.sic_code #=> "0851"
6877
```

doc/default/compass.md

+24
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,46 @@ Available since version 1.8.0.
55
```ruby
66
# A random direction
77
Faker::Compass.direction #=> "southeast"
8+
9+
# Random cardinal
810
Faker::Compass.cardinal #=> "north"
11+
12+
# Random ordinal
913
Faker::Compass.ordinal #=> "northwest"
14+
15+
# Random half_wind
1016
Faker::Compass.half_wind #=> "north-northwest"
17+
18+
# Random quarter wind
1119
Faker::Compass.quarter_wind #=> "north by west"
1220

1321
# Random abbreviation
1422
Faker::Compass.abbreviation #=> "NEbN"
23+
24+
# Random cardinal abbreviation
1525
Faker::Compass.cardinal_abbreviation #=> "N"
26+
27+
# Random ordinal abbreviation
1628
Faker::Compass.ordinal_abbreviation #=> "SW"
29+
30+
# Random half wind abbreviation
1731
Faker::Compass.half_wind_abbreviation #=> "NNE"
32+
33+
# Random quarter wind abbreviation
1834
Faker::Compass.quarter_wind_abbreviation #=> "SWbS"
1935

2036
# Random azimuth
2137
Faker::Compass.azimuth #=> "168.75"
38+
39+
# Random cardinal azimuth
2240
Faker::Compass.cardinal_azimuth #=> "90"
41+
42+
# Random ordinal azimuth
2343
Faker::Compass.ordinal_azimuth #=> "135"
44+
45+
# Random half wind azimuth
2446
Faker::Compass.half_wind_azimuth #=> "292.5"
47+
48+
# Random quarter wind azimuth
2549
Faker::Compass.quarter_wind_azimuth #=> "56.25"
2650
```

doc/default/date.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

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

77
# Random date between dates except for certain date
8-
Faker::Date.between_except(1.year.ago, 1.year.from_now, Date.today) #=> "Wed, 24 Sep 2014"
8+
Faker::Date.between_except(from: 1.year.ago, to: 1.year.from_now, excepted: Date.today) #=> "Wed, 24 Sep 2014"
99

1010
# Random date in the future (up to maximum of N days)
1111
Faker::Date.forward(days: 23) # => "Fri, 03 Oct 2014"

doc/default/driving_licence.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Generate a licence number in GB format, as issued in England, Scotland and Wales
55
# The DVSA does not publish their checksum algorithm, so the last 3 characters
66
# are random
7-
# Optional arguments: last_name, initials, date_of_birth, gender
7+
# Keyword arguments: last_name, initials, date_of_birth, gender
88
Faker::DrivingLicence.british_driving_licence #=> "MCDER712081VF7EK"
99
Faker::DrivingLicence.british_driving_licence(last_name: "O'Carroll",
1010
initials: "J",
@@ -16,6 +16,6 @@ Faker::DrivingLicence.northern_irish_driving_licence #=> "70702548"
1616

1717
# Generate a UK driving licence number in either GB or NI format, at a rate
1818
# consistent with their relative populations
19-
# Optional arguments: last_name, initials, date_of_birth, gender
19+
# Keyword arguments: last_name, initials, date_of_birth, gender
2020
Faker::DrivingLicence.uk_driving_licence #=> "OCARR815246J91HT"
2121
Faker::DrivingLicence.uk_driving_licence #=> "70702548"

doc/default/educator.md

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Faker::Educator.university #=> "Mallowtown Technical College"
77

88
Faker::Educator.secondary_school #=> "Iceborough Secondary College"
99

10-
# [DEPRECATION] `course` is deprecated. Please use `degree` instead.
1110
Faker::Educator.degree #=> "Associate Degree in Criminology"
1211

1312
Faker::Educator.course_name #=> "Criminology 101"

doc/default/file.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Faker::File.extension #=> "mp3"
77

88
Faker::File.mime_type #=> "application/pdf"
99

10-
# Optional arguments: dir, name, extension, directory_separator
10+
# Keyword arguments: dir, name, extension, directory_separator
1111
Faker::File.file_name(dir: 'path/to') #=> "path/to/something_random.jpg"
1212
Faker::File.file_name(dir: 'foo/bar', name: 'baz') #=> "foo/bar/baz.zip"
1313
Faker::File.file_name(dir: 'foo/bar', name: 'baz', ext: 'doc') #=> "foo/bar/baz.doc"
1414
Faker::File.file_name(dir: 'foo/bar', name: 'baz', ext: 'mp3', directory_separator: '\\') #=> "foo/bar\\baz.mp3"
1515

16-
# Optional arguments: segment_count, root, directory_separator
16+
# Keyword arguments: segment_count, root, directory_separator
1717
Faker::File.dir #=> "et_error/sint_voluptas/quas_veritatis"
1818
Faker::File.dir(segment_count: 2) #=> "ea-suscipit/ut-deleniti"
1919
Faker::File.dir(segment_count: 3, root: nil, directory_separator: '/') #=> "est_porro/fugit_eveniet/incidunt-autem"

doc/default/finance.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Faker::Finance
22

33
```ruby
4-
# Random credit_card
4+
# Random credit card
55
Faker::Finance.credit_card #=> "3018-348979-1853"
66
Faker::Finance.credit_card(:mastercard) #=> "6771-8921-2291-6236"
77
Faker::Finance.credit_card(:mastercard, :visa) #=> "4448-8934-1277-7195"
88

9-
# Random vat_number
9+
# Random vat number
1010
Faker::Finance.vat_number #=> "BR38.395.329/2471-83"
1111
Faker::Finance.vat_number(country: 'DE') #=> "DE593306671"
1212
Faker::Finance.vat_number(country: 'ZA') #=> "ZA79494416181"

doc/default/food.md

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Available since version 1.7.0.
44

55
```ruby
6-
76
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."
87

98
Faker::Food.dish #=> "Caesar Salad"
@@ -21,5 +20,4 @@ Faker::Food.spice #=> "Caraway Seed"
2120
Faker::Food.sushi #=> "Sea bream"
2221

2322
Faker::Food.vegetables #=> "Broccolini"
24-
2523
```

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-
# Optional arguments: num=3, supplemental=false, spaces_allowed = false
8+
# Keyword arguments: number: 3, supplemental: false, spaces_allowed: false
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-
# Optional arguments: word_count=4, supplemental=false, random_words_to_add=6
14+
# Keyword arguments: word_count: 4, supplemental: false, random_words_to_add: 6
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-
# Optional arguments: sentence_count=3, supplemental=false
21+
# Keyword arguments: number: 3, supplemental: false
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-
# Optional arguments: sentence_count=3, supplemental=false, random_sentences_to_add=3
26+
# Keyword arguments: sentence_count=3, supplemental=false, random_sentences_to_add=3
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-
# Optional arguments: paragraph_count=3, supplemental=false
33+
# Keyword arguments: number: 3, supplemental: false
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-
# Optional arguments: chars=3, supplemental=false
38+
# Keyword arguments: characters: 3, supplemental: false
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/house.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Faker::House
22

3-
43
```ruby
54
Faker::House.furniture #=> "chair"
65

0 commit comments

Comments
 (0)