faker 1.9.6 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +189 -6
  3. data/README.md +5 -1
  4. data/lib/faker/books/dune.rb +2 -2
  5. data/lib/faker/books/lovecraft.rb +18 -18
  6. data/lib/faker/creature/animal.rb +1 -1
  7. data/lib/faker/creature/cat.rb +1 -1
  8. data/lib/faker/creature/dog.rb +1 -1
  9. data/lib/faker/creature/horse.rb +1 -1
  10. data/lib/faker/default/address.rb +3 -3
  11. data/lib/faker/default/alphanumeric.rb +4 -4
  12. data/lib/faker/default/avatar.rb +1 -1
  13. data/lib/faker/default/bank.rb +2 -2
  14. data/lib/faker/default/boolean.rb +1 -1
  15. data/lib/faker/default/cannabis.rb +4 -0
  16. data/lib/faker/default/chile_rut.rb +3 -3
  17. data/lib/faker/default/code.rb +5 -5
  18. data/lib/faker/default/commerce.rb +4 -4
  19. data/lib/faker/default/company.rb +2 -2
  20. data/lib/faker/default/crypto_coin.rb +9 -4
  21. data/lib/faker/default/date.rb +9 -9
  22. data/lib/faker/default/demographic.rb +1 -1
  23. data/lib/faker/default/device.rb +2 -2
  24. data/lib/faker/default/driving_licence.rb +2 -2
  25. data/lib/faker/default/educator.rb +0 -3
  26. data/lib/faker/default/file.rb +3 -3
  27. data/lib/faker/default/fillmurray.rb +2 -2
  28. data/lib/faker/default/finance.rb +1 -1
  29. data/lib/faker/default/hipster.rb +16 -16
  30. data/lib/faker/default/id_number.rb +47 -10
  31. data/lib/faker/default/internet.rb +22 -21
  32. data/lib/faker/default/invoice.rb +3 -3
  33. data/lib/faker/default/json.rb +2 -2
  34. data/lib/faker/default/lorem.rb +20 -20
  35. data/lib/faker/default/lorem_flickr.rb +4 -4
  36. data/lib/faker/default/lorem_pixel.rb +1 -1
  37. data/lib/faker/default/markdown.rb +7 -7
  38. data/lib/faker/default/measurement.rb +8 -8
  39. data/lib/faker/default/name.rb +2 -4
  40. data/lib/faker/default/nhs.rb +7 -7
  41. data/lib/faker/default/number.rb +35 -32
  42. data/lib/faker/default/omniauth.rb +11 -11
  43. data/lib/faker/default/phone_number.rb +1 -1
  44. data/lib/faker/default/placeholdit.rb +1 -1
  45. data/lib/faker/default/relationship.rb +1 -1
  46. data/lib/faker/default/source.rb +2 -2
  47. data/lib/faker/default/south_africa.rb +1 -1
  48. data/lib/faker/default/space.rb +2 -2
  49. data/lib/faker/default/string.rb +1 -1
  50. data/lib/faker/default/stripe.rb +4 -4
  51. data/lib/faker/default/time.rb +23 -8
  52. data/lib/faker/default/twitter.rb +30 -30
  53. data/lib/faker/default/types.rb +7 -7
  54. data/lib/faker/default/vehicle.rb +5 -5
  55. data/lib/faker/default/world_cup.rb +2 -2
  56. data/lib/faker/games/dota.rb +1 -1
  57. data/lib/faker/games/elder_scrolls.rb +1 -1
  58. data/lib/faker/games/fallout.rb +1 -1
  59. data/lib/faker/games/half_life.rb +1 -1
  60. data/lib/faker/games/heroes.rb +1 -1
  61. data/lib/faker/games/heroes_of_the_storm.rb +1 -1
  62. data/lib/faker/games/league_of_legends.rb +1 -1
  63. data/lib/faker/games/myst.rb +1 -1
  64. data/lib/faker/games/overwatch.rb +1 -1
  65. data/lib/faker/games/pokemon.rb +1 -1
  66. data/lib/faker/games/sonic_the_hedgehog.rb +1 -1
  67. data/lib/faker/games/super_smash_bros.rb +1 -1
  68. data/lib/faker/games/witcher.rb +1 -1
  69. data/lib/faker/games/world_of_warcraft.rb +1 -1
  70. data/lib/faker/games/zelda.rb +1 -1
  71. data/lib/faker/japanese_media/dragon_ball.rb +1 -1
  72. data/lib/faker/japanese_media/one_piece.rb +1 -1
  73. data/lib/faker/japanese_media/sword_art_online.rb +1 -1
  74. data/lib/faker/movies/back_to_the_future.rb +1 -1
  75. data/lib/faker/movies/ghostbusters.rb +1 -1
  76. data/lib/faker/movies/harry_potter.rb +1 -1
  77. data/lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb +1 -1
  78. data/lib/faker/movies/hobbit.rb +1 -1
  79. data/lib/faker/movies/lebowski.rb +1 -1
  80. data/lib/faker/movies/lord_of_the_rings.rb +1 -1
  81. data/lib/faker/movies/princess_bride.rb +1 -1
  82. data/lib/faker/movies/star_wars.rb +2 -2
  83. data/lib/faker/movies/v_for_vendetta.rb +1 -1
  84. data/lib/faker/tv_shows/aqua_teen_hunger_force.rb +1 -1
  85. data/lib/faker/tv_shows/bojack_horseman.rb +1 -1
  86. data/lib/faker/tv_shows/breaking_bad.rb +1 -1
  87. data/lib/faker/tv_shows/buffy.rb +1 -1
  88. data/lib/faker/tv_shows/community.rb +1 -1
  89. data/lib/faker/tv_shows/dr_who.rb +1 -1
  90. data/lib/faker/tv_shows/dumb_and_dumber.rb +1 -1
  91. data/lib/faker/tv_shows/family_guy.rb +1 -1
  92. data/lib/faker/tv_shows/friends.rb +1 -1
  93. data/lib/faker/tv_shows/game_of_thrones.rb +1 -1
  94. data/lib/faker/tv_shows/hey_arnold.rb +1 -1
  95. data/lib/faker/tv_shows/how_i_met_your_mother.rb +1 -1
  96. data/lib/faker/tv_shows/michael_scott.rb +1 -1
  97. data/lib/faker/tv_shows/new_girl.rb +1 -1
  98. data/lib/faker/tv_shows/parks_and_rec.rb +1 -1
  99. data/lib/faker/tv_shows/rick_and_morty.rb +1 -1
  100. data/lib/faker/tv_shows/ru_paul.rb +1 -1
  101. data/lib/faker/tv_shows/seinfeld.rb +1 -1
  102. data/lib/faker/tv_shows/silicon_valley.rb +1 -1
  103. data/lib/faker/tv_shows/simpsons.rb +1 -1
  104. data/lib/faker/tv_shows/south_park.rb +1 -1
  105. data/lib/faker/tv_shows/star_trek.rb +1 -1
  106. data/lib/faker/tv_shows/stargate.rb +1 -1
  107. data/lib/faker/tv_shows/stranger_things.rb +1 -1
  108. data/lib/faker/tv_shows/the_expanse.rb +1 -1
  109. data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +1 -1
  110. data/lib/faker/tv_shows/the_it_crowd.rb +1 -1
  111. data/lib/faker/tv_shows/the_thick_of_it.rb +1 -1
  112. data/lib/faker/tv_shows/twin_peaks.rb +1 -1
  113. data/lib/faker/tv_shows/venture_bros.rb +1 -1
  114. data/lib/faker/version.rb +1 -1
  115. data/lib/locales/en-IND.yml +1 -1
  116. data/lib/locales/en.yml +4 -1
  117. data/lib/locales/en/address.yml +1 -4
  118. data/lib/locales/en/animal.yml +2 -2
  119. data/lib/locales/en/cannabis.yml +1 -0
  120. data/lib/locales/en/space.yml +1 -1
  121. data/lib/locales/en/super_smash_bros.yml +4 -0
  122. data/lib/locales/vi.yml +1 -1
  123. metadata +9 -17
  124. data/lib/faker/default/creature.rb +0 -6
  125. data/lib/faker/default/games.rb +0 -6
  126. data/lib/faker/default/japanese_media.rb +0 -6
  127. data/lib/faker/default/movies.rb +0 -6
  128. data/lib/faker/default/tv_shows.rb +0 -6
  129. data/lib/faker/deprecate/unreleased/football.rb +0 -35
  130. data/lib/faker/deprecate/unreleased/movies/grateful_dead.rb +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 182c6a436b64f259813bf79005eb3b0f5f2ce35d3c522b9fb2681ac68bdfe115
4
- data.tar.gz: 96db38b14bf7a8afaf09ef6e0d232ad153e1bffcfeff85015b95b9b29cd7e1ea
3
+ metadata.gz: 7462443ac85163e4a2bfaaa60b52b0153d209004c68f498be7796bafdca56bb8
4
+ data.tar.gz: 83792726058a2a4bcae5a9e65faebd7b89271323b04c509c5e85a3ed3dcf87d7
5
5
  SHA512:
6
- metadata.gz: c6c0ca2ab46c4775bc0ed36ad046a7598d322e5d452b14475725e2ef8a72a5aa1c5fb5d772b251dedf49a744e4245370c51a5d351618297bf5690b5b0626df8d
7
- data.tar.gz: 63e374de8cc2ce4658b297978af85250a8767cde7dd365a1492ff2b381caf07faa90d95066a52346667b55eae95275c1003e14b3abecc32102115796fef791e8
6
+ metadata.gz: 13e01c3cf5c0f2f4813b4ebd5f47da32f5445234cb0bbc217e7b1b4836c8578b9e32bdafbafe68c9d9c8f85e2a14ec84a9fa13c3b611c3fa7f566b6bdf1176eb
7
+ data.tar.gz: d4ff9c657474b461ed8b4f54ec16e982ba805d3bc5fd815757bcfbb67b3823fba776ba004af140a1afb6d5424990f6819eda943a7b4bdfe24841713b9eb29f4c
@@ -1,21 +1,204 @@
1
1
  # Change Log
2
2
 
3
- ## HEAD Unreleased
3
+ ## [v2.1.2](https://github.com/stympy/faker-ruby/faker/tree/2.1.2) (2019-10-08)
4
+
5
+ ## Enhancements
6
+
7
+ - [PR #1495](https://github.com/stympy/faker/pull/1495) Add Brazilian documents generation and documentation [@lucasqueiroz](https://github.com/lucasqueiroz)
8
+
9
+ ## Issues
10
+
11
+ We had to use `bundled with 1.7.3` to avoid some issues.
12
+
13
+ ## [v2.1.1](https://github.com/stympy/faker/tree/2.1.1) (2019-10-08)
14
+
15
+ ## Bug/Fixes
16
+
17
+ - [PR #1685](https://github.com/stympy/faker/pull/1685) Upgrade i18n [@EduardoGHdez](https://github.com/EduardoGHdez)
18
+
19
+ `bundler-audit` has identified that i18 has fix a security vulnerability, that has been fixed in the 0.8 version.
20
+
21
+ - [PR #1683](https://github.com/stympy/faker/pull/1683) Rollback Faker::Time changes [@vbrazo](https://github.com/vbrazo)
22
+
23
+ Rollback Faker::Time changes because we should expect the date format from activesupport's en.yml.
24
+
25
+ ## Documentation
26
+
27
+ - [PR #1677](https://github.com/stympy/faker/pull/1677) Fix docs for Internet#password generator [@ur5us](https://github.com/ur5us)
28
+
29
+ ------------------------------------------------------------------------------
30
+
31
+ ## [v2.1.0](https://github.com/stympy/faker/tree/2.1.0) (2019-31-07)
32
+
33
+ ## Bug/Fixes
34
+ - [PR #1675](https://github.com/stympy/faker/pull/1675) Fix off-by-one error when formatting month names [@jutonz](https://github.com/jutonz)
35
+
36
+ This change required a quick release because it's a breaking issue. Every place where I18n.l() was used began to display the wrong date, causing test suite to fail.
37
+
38
+ ------------------------------------------------------------------------------
39
+
40
+ ## [v2.0](https://github.com/stympy/faker/tree/2.0) (2019-31-07)
41
+
42
+ ## Important Note:
43
+
44
+ Version 2 has several `breaking changes`. We replaced positional arguments with keyword arguments and the list below contains all the changed methods:
45
+ - `Faker::Books::Dune.quote(character = nil)` becomes `Faker::Books::Dune.quote(character: nil)`
46
+ - `Faker::Books::Dune.saying(source = nil)` becomes `Faker::Books::Dune.saying(source: nil)`
47
+ - `Faker::Books::Lovecraft.fhtagn(number_of = nil)` becomes `Faker::Books::Lovecraft.fhtagn(number: nil)`
48
+ - `Faker::Books::Lovecraft.paragraph(sentence_count = nil, random_sentences_to_add = nil)` becomes `Faker::Books::Lovecraft.paragraph(sentence_count: nil, random_sentences_to_add: nil)`
49
+ - `Faker::Books::Lovecraft.paragraph_by_chars(chars = nil)` becomes `Faker::Books::Lovecraft.paragraph_by_chars(characters: nil)`
50
+ - `Faker::Books::Lovecraft.paragraphs(paragraph_count = nil)` becomes `Faker::Books::Lovecraft.paragraphs(number: nil)`
51
+ - `Faker::Books::Lovecraft.sentence(word_count = nil, random_words_to_add = nil)` becomes `Faker::Books::Lovecraft.sentence(word_count: nil, random_words_to_add: nil)`
52
+ - `Faker::Books::Lovecraft.sentences(sentence_count = nil)` becomes `Faker::Books::Lovecraft.sentences(number: nil)`
53
+ - `Faker::Books::Lovecraft.words(num = nil, spaces_allowed = nil)` becomes `Faker::Books::Lovecraft.words(number: nil, spaces_allowed: nil)`
54
+ - `Faker::Address.city(options = nil)` becomes `Faker::Address.city(options: nil)`
55
+ - `Faker::Address.postcode(state_abbreviation = nil)` becomes `Faker::Address.postcode(state_abbreviation: nil)`
56
+ - `Faker::Address.street_address(include_secondary = nil)` becomes `Faker::Address.street_address(include_secondary: nil)`
57
+ - `Faker::Address.zip(state_abbreviation = nil)` becomes `Faker::Address.zip(state_abbreviation: nil)`
58
+ - `Faker::Address.zip_code(state_abbreviation = nil)` becomes `Faker::Address.zip_code(state_abbreviation: nil)`
59
+ - `Faker::Alphanumeric.alpha(char_count = nil)` becomes `Faker::Alphanumeric.alpha(number: nil)`
60
+ - `Faker::Alphanumeric.alphanumeric(char_count = nil)` becomes `Faker::Alphanumeric.alphanumeric(number: nil)`
61
+ - `Faker::Avatar.image(slug = nil, size = nil, format = nil, set = nil, bgset = nil)` becomes `Faker::Avatar.image(slug: nil, size: nil, format: nil, set: nil, bgset: nil)`
62
+ - `Faker::Bank.account_number(digits = nil)` becomes `Faker::Bank.account_number(digits: nil)`
63
+ - `Faker::Bank.iban(country_code = nil)` becomes `Faker::Bank.iban(country_code: nil)`
64
+ - `Faker::ChileRut.full_rut(min_rut = nil, fixed = nil)` becomes `Faker::ChileRut.full_rut(min_rut: nil, fixed: nil)`
65
+ - `Faker::ChileRut.rut(min_rut = nil, fixed = nil)` becomes `Faker::ChileRut.rut(min_rut: nil, fixed: nil)`
66
+ - `Faker::Code.ean(base = nil)` becomes `Faker::Code.ean(base: nil)`
67
+ - `Faker::Code.isbn(base = nil)` becomes `Faker::Code.isbn(base: nil)`
68
+ - `Faker::Code.nric(min_age = nil, max_age = nil)` becomes `Faker::Code.nric(min_age: nil, max_age: nil)`
69
+ - `Faker::Commerce.department(max = nil, fixed_amount = nil)` becomes `Faker::Commerce.department(max: nil, fixed_amount: nil)`
70
+ - `Faker::Commerce.price(range = nil, as_string = nil)` becomes `Faker::Commerce.price(range: nil, as_string: nil)`
71
+ - `Faker::Commerce.promotion_code(digits = nil)` becomes `Faker::Commerce.promotion_code(digits: nil)`
72
+ - `Faker::Company.polish_register_of_national_economy(length = nil)` becomes `Faker::Company.polish_register_of_national_economy(length: nil)`
73
+ - `Faker::CryptoCoin.acronym(coin = nil)` becomes `Faker::CryptoCoin.acronym(coin: nil)`
74
+ - `Faker::CryptoCoin.coin_name(coin = nil)` becomes `Faker::CryptoCoin.coin_name(coin: nil)`
75
+ - `Faker::CryptoCoin.url_logo(coin = nil)` becomes `Faker::CryptoCoin.url_logo(coin: nil)`
76
+ - `Faker::Date.backward(days = nil)` becomes `Faker::Date.backward(days: nil)`
77
+ - `Faker::Date.between(from, to)` becomes `Faker::Date.between(from:, to:)`
78
+ - `Faker::Date.between_except(from, to, excepted)` becomes `Faker::Date.between_except(from:, to:, excepted:)`
79
+ - `Faker::Date.birthday(min_age = nil, max_age = nil)` becomes `Faker::Date.birthday(min_age: nil, max_age: nil)`
80
+ - `Faker::Date.forward(days = nil)` becomes `Faker::Date.forward(days: nil)`
81
+ - `Faker::Demographic.height(unit = nil)` becomes `Faker::Demographic.height(unit: nil)`
82
+ - `Faker::File.dir(segment_count = nil, root = nil, directory_separator = nil)` becomes `Faker::File.dir(segment_count: nil, root: nil, directory_separator: nil)`
83
+ - `Faker::File.file_name(dir = nil, name = nil, ext = nil, directory_separator = nil)` becomes `Faker::File.file_name(dir: nil, name: nil, ext: nil, directory_separator: nil)`
84
+ - `Faker::Fillmurray.image(grayscale = nil, width = nil, height = nil)` becomes `Faker::Fillmurray.image(grayscale: nil, width: nil, height: nil)`
85
+ - `Faker::Finance.vat_number(country = nil)` becomes `Faker::Finance.vat_number(country: nil)`
86
+ - `Faker::Hipster.paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil)` becomes `Faker::Hipster.paragraph(sentence_count: nil, supplemental: nil, random_sentences_to_add: nil)`
87
+ - `Faker::Hipster.paragraph_by_chars(chars = nil, supplemental = nil)` becomes `Faker::Hipster.paragraph_by_chars(characters: nil, supplemental: nil)`
88
+ - `Faker::Hipster.paragraphs(paragraph_count = nil, supplemental = nil)` becomes `Faker::Hipster.paragraphs(number: nil, supplemental: nil)`
89
+ - `Faker::Hipster.sentence(word_count = nil, supplemental = nil, random_words_to_add = nil)` becomes `Faker::Hipster.sentence(word_count: nil, supplemental: nil, random_words_to_add: nil)`
90
+ - `Faker::Hipster.sentences(sentence_count = nil, supplemental = nil)` becomes `Faker::Hipster.sentences(number: nil, supplemental: nil)`
91
+ - `Faker::Hipster.words(num = nil, supplemental = nil, spaces_allowed = nil)` becomes `Faker::Hipster.words(number: nil, supplemental: nil, spaces_allowed: nil)`
92
+ - `Faker::Internet.domain_name(subdomain = nil)` becomes `Faker::Internet.domain_name(subdomain: nil)`
93
+ - `Faker::Internet.email(name = nil, *separators)` becomes `Faker::Internet.email(name: nil, separators: nil)`
94
+ - `Faker::Internet.fix_umlauts(string = nil)` becomes `Faker::Internet.fix_umlauts(string: nil)`
95
+ - `Faker::Internet.free_email(name = nil)` becomes `Faker::Internet.free_email(name: nil)`
96
+ - `Faker::Internet.mac_address(prefix = nil)` becomes `Faker::Internet.mac_address(prefix: nil)`
97
+ - `Faker::Internet.password(min_length = nil, max_length = nil, mix_case = nil, special_chars = nil)` becomes `Faker::Internet.password(min_length: nil, max_length: nil, mix_case: nil, special_characters: nil)`
98
+ - `Faker::Internet.safe_email(name = nil)` becomes `Faker::Internet.safe_email(name: nil)`
99
+ - `Faker::Internet.slug(words = nil, glue = nil)` becomes `Faker::Internet.slug(words: nil, glue: nil)`
100
+ - `Faker::Internet.url(host = nil, path = nil, scheme = nil)` becomes `Faker::Internet.url(host: nil, path: nil, scheme: nil)`
101
+ - `Faker::Internet.user_agent(vendor = nil)` becomes `Faker::Internet.user_agent(vendor: nil)`
102
+ - `Faker::Internet.user_name(specifier = nil, separators = nil)` becomes `Faker::Internet.user_name(specifier: nil, separators: nil)`
103
+ - `Faker::Internet.username(specifier = nil, separators = nil)` becomes `Faker::Internet.username(specifier: nil, separators: nil)`
104
+ - `Faker::Invoice.amount_between(from = nil, to = nil)` becomes `Faker::Invoice.amount_between(from: nil, to: nil)`
105
+ - `Faker::Invoice.creditor_reference(ref = nil)` becomes `Faker::Invoice.creditor_reference(ref: nil)`
106
+ - `Faker::Invoice.reference(ref = nil)` becomes `Faker::Invoice.reference(ref: nil)`
107
+ - `Faker::Json.add_depth_to_json(json = nil, width = nil, options = nil)` becomes `Faker::Json.add_depth_to_json(json: nil, width: nil, options: nil)`
108
+ - `Faker::Json.shallow_json(width = nil, options = nil)` becomes `Faker::Json.shallow_json(width: nil, options: nil)`
109
+ - `Faker::Lorem.characters(char_count = nil)` becomes `Faker::Lorem.characters(number: nil)`
110
+ - `Faker::Lorem.paragraph(sentence_count = nil, supplemental = nil, random_sentences_to_add = nil)` becomes `Faker::Lorem.paragraph(sentence_count: nil, supplemental: nil, random_sentences_to_add: nil)`
111
+ - `Faker::Lorem.paragraph_by_chars(chars = nil, supplemental = nil)` becomes `Faker::Lorem.paragraph_by_chars(number: nil, supplemental: nil)`
112
+ - `Faker::Lorem.paragraphs(paragraph_count = nil, supplemental = nil)` becomes `Faker::Lorem.paragraphs(number: nil, supplemental: nil)`
113
+ - `Faker::Lorem.question(word_count = nil, supplemental = nil, random_words_to_add = nil)` becomes `Faker::Lorem.question(word_count: nil, supplemental: nil, random_words_to_add: nil)`
114
+ - `Faker::Lorem.questions(question_count = nil, supplemental = nil)` becomes `Faker::Lorem.questions(number: nil, supplemental: nil)`
115
+ - `Faker::Lorem.sentence(word_count = nil, supplemental = nil, random_words_to_add = nil)` becomes `Faker::Lorem.sentence(word_count: nil, supplemental: nil, random_words_to_add: nil)`
116
+ - `Faker::Lorem.sentences(sentence_count = nil, supplemental = nil)` becomes `Faker::Lorem.sentences(number: nil, supplemental: nil)`
117
+ - `Faker::Lorem.words(num = nil, supplemental = nil)` becomes `Faker::Lorem.words(number: nil, supplemental: nil)`
118
+ - `Faker::LoremFlickr.colorized_image(size = nil, color = nil, search_terms = nil, match_all = nil)` becomes `Faker::LoremFlickr.colorized_image(size: nil, color: nil, search_terms: nil, match_all: nil)`
119
+ - `Faker::LoremFlickr.grayscale_image(size = nil, search_terms = nil, match_all = nil)` becomes `Faker::LoremFlickr.grayscale_image(size: nil, search_terms: nil, match_all: nil)`
120
+ - `Faker::LoremFlickr.image(size = nil, search_terms = nil, match_all = nil)` becomes `Faker::LoremFlickr.image(size: nil, search_terms: nil, match_all: nil)`
121
+ - `Faker::LoremFlickr.pixelated_image(size = nil, search_terms = nil, match_all = nil)` becomes `Faker::LoremFlickr.pixelated_image(size: nil, search_terms: nil, match_all: nil)`
122
+ - `Faker::LoremPixel.image(size = nil, is_gray = nil, category = nil, number = nil, text = nil, secure: nil)` becomes `Faker::LoremPixel.image(size: nil, is_gray: nil, category: nil, number: nil, text: nil, secure: nil)`
123
+ - `Faker::Markdown.sandwich(sentences = nil, repeat = nil)` becomes `Faker::Markdown.sandwich(sentences: nil, repeat: nil)`
124
+ - `Faker::Measurement.height(amount = nil)` becomes `Faker::Measurement.height(amount: nil)`
125
+ - `Faker::Measurement.length(amount = nil)` becomes `Faker::Measurement.length(amount: nil)`
126
+ - `Faker::Measurement.metric_height(amount = nil)` becomes `Faker::Measurement.metric_height(amount: nil)`
127
+ - `Faker::Measurement.metric_length(amount = nil)` becomes `Faker::Measurement.metric_length(amount: nil)`
128
+ - `Faker::Measurement.metric_volume(amount = nil)` becomes `Faker::Measurement.metric_volume(amount: nil)`
129
+ - `Faker::Measurement.metric_weight(amount = nil)` becomes `Faker::Measurement.metric_weight(amount: nil)`
130
+ - `Faker::Measurement.volume(amount = nil)` becomes `Faker::Measurement.volume(amount: nil)`
131
+ - `Faker::Measurement.weight(amount = nil)` becomes `Faker::Measurement.weight(amount: nil)`
132
+ - `Faker::Name.initials(character_count = nil)` becomes `Faker::Name.initials(number: nil)`
133
+ - `Faker::NationalHealthService.check_digit(number = nil)` becomes `Faker::NationalHealthService.check_digit(number: nil)`
134
+ - `Faker::Number.between(from = nil, to = nil)` becomes `Faker::Number.between(from: nil, to: nil)`
135
+ - `Faker::Number.decimal(l_digits = nil, r_digits = nil)` becomes `Faker::Number.decimal(l_digits: nil, r_digits: nil)`
136
+ - `Faker::Number.decimal_part(*args, &block)` becomes `Faker::Number.decimal_part(digits: nil)`
137
+ - `Faker::Number.hexadecimal(digits = nil)` becomes `Faker::Number.hexadecimal(digits: nil)`
138
+ - `Faker::Number.leading_zero_number(*args, &block)` becomes `Faker::Number.leading_zero_number(digits: nil)`
139
+ - `Faker::Number.negative(from = nil, to = nil)` becomes `Faker::Number.negative(from: nil, to: nil)`
140
+ - `Faker::Number.normal(mean = nil, standard_deviation = nil)` becomes `Faker::Number.normal(mean: nil, standard_deviation: nil)`
141
+ - `Faker::Number.number(digits = nil)` becomes `Faker::Number.number(digits: nil)`
142
+ - `Faker::Number.positive(from = nil, to = nil)` becomes `Faker::Number.positive(from: nil, to: nil)`
143
+ - `Faker::Number.within(range = nil)` becomes `Faker::Number.within(range: nil)`
144
+ - `Faker::PhoneNumber.extension(length = nil)` becomes `Faker::PhoneNumber.extension(length: nil)`
145
+ - `Faker::PhoneNumber.subscriber_number(length = nil)` becomes `Faker::PhoneNumber.subscriber_number(length: nil)`
146
+ - `Faker::Placeholdit.image(size = nil, format = nil, background_color = nil, text_color = nil, text = nil)` becomes `Faker::Placeholdit.image(size: nil, format: nil, background_color: nil, text_color: nil, text: nil)`
147
+ - `Faker::Relationship.familial(connection = nil)` becomes `Faker::Relationship.familial(connection: nil)`
148
+ - `Faker::Source.hello_world(lang = nil)` becomes `Faker::Source.hello_world(lang: nil)`
149
+ - `Faker::Source.print_1_to_10(lang = nil)` becomes `Faker::Source.print_1_to_10(lang: nil)`
150
+ - `Faker::String.random(length = nil)` becomes `Faker::String.random(length: nil)`
151
+ - `Faker::Stripe.ccv(card_type = nil)` becomes `Faker::Stripe.ccv(card_type: nil)`
152
+ - `Faker::Stripe.invalid_card(card_error = nil)` becomes `Faker::Stripe.invalid_card(card_error: nil)`
153
+ - `Faker::Stripe.valid_card(card_type = nil)` becomes `Faker::Stripe.valid_card(card_type: nil)`
154
+ - `Faker::Stripe.valid_token(card_type = nil)` becomes `Faker::Stripe.valid_token(card_type: nil)`
155
+ - `Faker::Time.backward(days = nil, period = nil, format = nil)` becomes `Faker::Time.backward(days: nil, period: nil, format: nil)`
156
+ - `Faker::Time.between(from, to, period = nil, format = nil)` becomes `Faker::Time.between(from:, to:, format: nil)`
157
+ - `Faker::Time.forward(days = nil, period = nil, format = nil)` becomes `Faker::Time.forward(days: nil, period: nil, format: nil)`
158
+ - `Faker::Types.complex_rb_hash(key_count = nil)` becomes `Faker::Types.complex_rb_hash(number: nil)`
159
+ - `Faker::Types.rb_array(len = nil)` becomes `Faker::Types.rb_array(len: nil)`
160
+ - `Faker::Types.rb_hash(key_count = nil, type = nil)` becomes `Faker::Types.rb_hash(number: nil, type: nil)`
161
+ - `Faker::Types.rb_integer(from = nil, to = nil)` becomes `Faker::Types.rb_integer(from: nil, to: nil)`
162
+ - `Faker::Types.rb_string(words = nil)` becomes `Faker::Types.rb_string(words: nil)`
163
+ - `Faker::Vehicle.kilometrage(min = nil, max = nil)` becomes `Faker::Vehicle.kilometrage(min: nil, max: nil)`
164
+ - `Faker::Vehicle.license_plate(state_abreviation = nil)` becomes `Faker::Vehicle.license_plate(state_abreviation: nil)`
165
+ - `Faker::Vehicle.mileage(min = nil, max = nil)` becomes `Faker::Vehicle.mileage(min: nil, max: nil)`
166
+ - `Faker::Vehicle.model(make_of_model = nil)` becomes `Faker::Vehicle.model(make_of_model: nil)`
167
+ - `Faker::WorldCup.group(group = nil)` becomes `Faker::WorldCup.group(group: nil)`
168
+ - `Faker::WorldCup.roster(country = nil, type = nil)` becomes `Faker::WorldCup.roster(country: nil, type: nil)`
169
+ - `Faker::Movies::StarWars.quote(character = nil)` becomes `Faker::Movies::StarWars.quote(character: nil)`
4
170
 
5
171
  ### Bug/Fixes
6
- ### Chores
172
+
173
+ - [PR #1660](https://github.com/stympy/faker/pull/1660) Update FillMurray Links To Include www [@RaymondFallon](https://github.com/RaymondFallon)
174
+
7
175
  ### Deprecation
176
+
177
+ - [PR #1634](https://github.com/stympy/faker/pull/1634) Corrected other occurrences of spelling vehicle spelling error, deprecated Space launch_vehicule [@Siyanda](https://github.com/Siyanda)
178
+
8
179
  ### Documentation
180
+
181
+ - [PR #1653](https://github.com/stympy/faker/pull/1653) Add /faker-ruby/faker-bot to README [@vbrazo](https://github.com/vbrazo)
182
+
9
183
  ### Feature Request
184
+
185
+ - [PR #1417](https://github.com/stympy/faker/pull/1417) Rework Faker::Time::between [@pjohnmeyer](https://github.com/pjohnmeyer)
186
+ - [PR #510](https://github.com/stympy/faker/pull/510) Make Faker::Number return integers and floats instead of strings [@tejasbubane](https://github.com/tejasbubane)
187
+ - [PR #1651](https://github.com/stympy/faker/pull/1651) Preparing for v2 [@vbrazo](https://github.com/vbrazo)
188
+ - [PR #1664](https://github.com/stympy/faker/pull/1664) Replace positional arguments with keyword arguments [@vbrazo](https://github.com/vbrazo)
189
+
10
190
  ### Update/add locales
11
191
 
192
+ - [PR #1658](https://github.com/stympy/faker/pull/1658) Update Faker::Games::SuperSmashBros entries [@boardfish](https://github.com/boardfish)
193
+ - [PR #1649](https://github.com/stympy/faker/pull/1649) Remove mexicoMX [@vbrazo](https://github.com/vbrazo)
194
+
12
195
  ------------------------------------------------------------------------------
13
196
 
14
- ## [v1.9.6](https://github.com/stympy/faker/tree/v1.9.5) (2019-07-05)
197
+ ## [v1.9.6](https://github.com/stympy/faker/tree/1.9.6) (2019-07-05)
15
198
 
16
199
  Fix lib/faker/version.rb
17
200
 
18
- ## [v1.9.5](https://github.com/stympy/faker/tree/v1.9.5) (2019-07-04)
201
+ ## [v1.9.5](https://github.com/stympy/faker/tree/v.1.9.5) (2019-07-04)
19
202
 
20
203
  ### Bug
21
204
 
@@ -39,7 +222,7 @@ Fix lib/faker/version.rb
39
222
 
40
223
  ------------------------------------------------------------------------------
41
224
 
42
- ## [v1.9.4](https://github.com/stympy/faker/tree/v1.9.4) (2019-06-19)
225
+ ## [v1.9.4](https://github.com/stympy/faker/tree/1.9.4) (2019-06-19)
43
226
 
44
227
  ### Bug/Fixes
45
228
 
@@ -111,7 +294,7 @@ Fix lib/faker/version.rb
111
294
 
112
295
  ------------------------------------------------------------------------------
113
296
 
114
- ## [v1.9.3](https://github.com/stympy/faker/tree/v1.9.2) (2019-02-12)
297
+ ## [v1.9.3](https://github.com/stympy/faker/tree/v1.9.3) (2019-02-12)
115
298
 
116
299
  [Full Changelog](https://github.com/stympy/faker/compare/v1.9.2...v1.9.3)
117
300
 
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  ![logotype a happy-07](https://user-images.githubusercontent.com/36028424/40263395-4318481e-5b44-11e8-92e5-3dcc1ce169b3.png)
3
3
 
4
4
  # Faker
5
- [![Build Status](https://travis-ci.org/stympy/faker.svg?branch=master)](https://travis-ci.org/stympy/faker)
5
+ [![Build Status](https://travis-ci.org/faker-ruby/faker.svg?branch=master)](https://travis-ci.org/faker-ruby/faker)
6
6
  [![Gem Version](https://badge.fury.io/rb/faker.svg)](https://badge.fury.io/rb/faker)
7
7
  [![Inline docs](http://inch-ci.org/github/stympy/faker.svg?branch=master)](http://inch-ci.org/github/stympy/faker)
8
8
  [![Test Coverage](https://api.codeclimate.com/v1/badges/ef54c7f9df86e965d64b/test_coverage)](https://codeclimate.com/github/stympy/faker/test_coverage)
@@ -20,6 +20,7 @@ development.
20
20
  - [NOTE](#note)
21
21
  - [Installing](#installing)
22
22
  - [Usage](#usage)
23
+ - [CLI](#cli)
23
24
  - [Ensuring unique values](#ensuring-unique-values)
24
25
  - [Deterministic Random](#deterministic-random)
25
26
  - [Generators](#generators)
@@ -66,6 +67,9 @@ Faker::Name.name #=> "Christophe Bartell"
66
67
  Faker::Internet.email #=> "kirsten.greenholt@corkeryfisher.info"
67
68
  ```
68
69
 
70
+ ### CLI
71
+ Instructions are available in the [faker-bot README](https://github.com/faker-ruby/faker-bot).
72
+
69
73
  ### Ensuring unique values
70
74
  Prefix your method call with `unique`. For example:
71
75
  ```ruby
@@ -19,7 +19,7 @@ module Faker
19
19
  fetch('dune.planets')
20
20
  end
21
21
 
22
- def quote(character = nil)
22
+ def quote(character: nil)
23
23
  quoted_characters = translate('faker.dune.quotes').keys
24
24
 
25
25
  if character.nil?
@@ -36,7 +36,7 @@ module Faker
36
36
  fetch('dune.quotes.' + character)
37
37
  end
38
38
 
39
- def saying(source = nil)
39
+ def saying(source: nil)
40
40
  sourced_sayings = translate('faker.dune.sayings').keys
41
41
 
42
42
  if source.nil?
@@ -8,8 +8,8 @@ module Faker
8
8
  fetch('lovecraft.location')
9
9
  end
10
10
 
11
- def fhtagn(number_of = 1)
12
- Array.new(number_of) { fetch('lovecraft.fhtagn') }.join('. ')
11
+ def fhtagn(number: 1)
12
+ Array.new(number) { fetch('lovecraft.fhtagn') }.join('. ')
13
13
  end
14
14
 
15
15
  def deity
@@ -20,8 +20,8 @@ module Faker
20
20
  fetch('lovecraft.tome')
21
21
  end
22
22
 
23
- def sentence(word_count = 4, random_words_to_add = 6)
24
- words(word_count + rand(random_words_to_add.to_i).to_i, true).join(' ').capitalize + '.'
23
+ def sentence(word_count: 4, random_words_to_add: 6)
24
+ words(number: word_count + rand(random_words_to_add.to_i).to_i, spaces_allowed: true).join(' ').capitalize + '.'
25
25
  end
26
26
 
27
27
  def word
@@ -29,8 +29,8 @@ module Faker
29
29
  random_word =~ /\s/ ? word : random_word
30
30
  end
31
31
 
32
- def words(num = 3, spaces_allowed = false)
33
- resolved_num = resolve(num)
32
+ def words(number: 3, spaces_allowed: false)
33
+ resolved_num = resolve(number)
34
34
  word_list = translate('faker.lovecraft.words')
35
35
  word_list *= ((resolved_num / word_list.length) + 1)
36
36
 
@@ -40,32 +40,32 @@ module Faker
40
40
  words.each_with_index { |w, i| words[i] = word if w =~ /\s/ }
41
41
  end
42
42
 
43
- def sentences(sentence_count = 3)
43
+ def sentences(number: 3)
44
44
  [].tap do |sentences|
45
- 1.upto(resolve(sentence_count)) do
46
- sentences << sentence(3)
45
+ 1.upto(resolve(number)) do
46
+ sentences << sentence(word_count: 3)
47
47
  end
48
48
  end
49
49
  end
50
50
 
51
- def paragraph(sentence_count = 3, random_sentences_to_add = 3)
52
- sentences(resolve(sentence_count) + rand(random_sentences_to_add.to_i).to_i).join(' ')
51
+ def paragraph(sentence_count: 3, random_sentences_to_add: 3)
52
+ sentences(number: resolve(sentence_count) + rand(random_sentences_to_add.to_i).to_i).join(' ')
53
53
  end
54
54
 
55
- def paragraphs(paragraph_count = 3)
55
+ def paragraphs(number: 3)
56
56
  [].tap do |paragraphs|
57
- 1.upto(resolve(paragraph_count)) do
58
- paragraphs << paragraph(3)
57
+ 1.upto(resolve(number)) do
58
+ paragraphs << paragraph(sentence_count: 3)
59
59
  end
60
60
  end
61
61
  end
62
62
 
63
- def paragraph_by_chars(chars = 256)
64
- paragraph = paragraph(3)
63
+ def paragraph_by_chars(characters: 256)
64
+ paragraph = paragraph(sentence_count: 3)
65
65
 
66
- paragraph += ' ' + paragraph(3) while paragraph.length < chars
66
+ paragraph += ' ' + paragraph(sentence_count: 3) while paragraph.length < characters
67
67
 
68
- paragraph[0...chars - 1] + '.'
68
+ paragraph[0...characters - 1] + '.'
69
69
  end
70
70
  end
71
71
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faker
4
- module Creature
4
+ class Creature
5
5
  class Animal < Base
6
6
  class << self
7
7
  def name
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faker
4
- module Creature
4
+ class Creature
5
5
  class Cat < Base
6
6
  flexible :cat
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faker
4
- module Creature
4
+ class Creature
5
5
  class Dog < Base
6
6
  flexible :dog
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faker
4
- module Creature
4
+ class Creature
5
5
  class Horse < Base
6
6
  flexible :horse
7
7
 
@@ -5,7 +5,7 @@ module Faker
5
5
  flexible :address
6
6
 
7
7
  class << self
8
- def city(options = {})
8
+ def city(options: {})
9
9
  parse(options[:with_state] ? 'address.city_with_state' : 'address.city')
10
10
  end
11
11
 
@@ -13,7 +13,7 @@ module Faker
13
13
  parse('address.street_name')
14
14
  end
15
15
 
16
- def street_address(include_secondary = false)
16
+ def street_address(include_secondary: false)
17
17
  numerify(parse('address.street_address') + (include_secondary ? ' ' + secondary_address : ''))
18
18
  end
19
19
 
@@ -29,7 +29,7 @@ module Faker
29
29
  parse('address.community')
30
30
  end
31
31
 
32
- def zip_code(state_abbreviation = '')
32
+ def zip_code(state_abbreviation: '')
33
33
  if state_abbreviation.empty?
34
34
  letterified_string = letterify(fetch('address.postcode'))
35
35
  return numerify(letterified_string, leading_zero: true)
@@ -6,15 +6,15 @@ module Faker
6
6
  ALPHABET = ('a'..'z').to_a
7
7
  ALPHANUMS = ALPHABET + (0..9).to_a
8
8
 
9
- def alpha(char_count = 32)
10
- char_count = resolve(char_count)
9
+ def alpha(number: 32)
10
+ char_count = resolve(number)
11
11
  return '' if char_count.to_i < 1
12
12
 
13
13
  Array.new(char_count) { sample(ALPHABET) }.join
14
14
  end
15
15
 
16
- def alphanumeric(char_count = 32)
17
- char_count = resolve(char_count)
16
+ def alphanumeric(number: 32)
17
+ char_count = resolve(number)
18
18
  return '' if char_count.to_i < 1
19
19
 
20
20
  Array.new(char_count) { sample(ALPHANUMS) }.join
@@ -5,7 +5,7 @@ module Faker
5
5
  class << self
6
6
  SUPPORTED_FORMATS = %w[png jpg bmp].freeze
7
7
 
8
- def image(slug = nil, size = '300x300', format = 'png', set = 'set1', bgset = nil)
8
+ def image(slug: nil, size: '300x300', format: 'png', set: 'set1', bgset: nil)
9
9
  raise ArgumentError, 'Size should be specified in format 300x300' unless size =~ /^[0-9]+x[0-9]+$/
10
10
  raise ArgumentError, "Supported formats are #{SUPPORTED_FORMATS.join(', ')}" unless SUPPORTED_FORMATS.include?(format)
11
11