faker 2.14.0 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +83 -0
  3. data/README.md +9 -0
  4. data/lib/faker.rb +37 -15
  5. data/lib/faker/blockchain/aeternity.rb +4 -4
  6. data/lib/faker/books/dune.rb +15 -2
  7. data/lib/faker/books/lovecraft.rb +8 -4
  8. data/lib/faker/default/address.rb +4 -4
  9. data/lib/faker/default/bank.rb +3 -5
  10. data/lib/faker/default/barcode.rb +11 -11
  11. data/lib/faker/default/beer.rb +3 -3
  12. data/lib/faker/default/camera.rb +46 -0
  13. data/lib/faker/default/chile_rut.rb +3 -2
  14. data/lib/faker/default/code.rb +2 -2
  15. data/lib/faker/default/commerce.rb +1 -1
  16. data/lib/faker/default/company.rb +40 -10
  17. data/lib/faker/default/driving_licence.rb +1 -1
  18. data/lib/faker/default/drone.rb +25 -25
  19. data/lib/faker/default/faker_adjective.rb +35 -0
  20. data/lib/faker/default/finance.rb +21 -0
  21. data/lib/faker/default/food.rb +1 -1
  22. data/lib/faker/default/hipster.rb +8 -5
  23. data/lib/faker/default/id_number.rb +2 -2
  24. data/lib/faker/default/internet.rb +5 -4
  25. data/lib/faker/default/invoice.rb +1 -1
  26. data/lib/faker/default/json.rb +4 -4
  27. data/lib/faker/default/lorem.rb +2 -2
  28. data/lib/faker/default/measurement.rb +3 -2
  29. data/lib/faker/default/military.rb +26 -0
  30. data/lib/faker/default/mountain.rb +33 -0
  31. data/lib/faker/default/number.rb +1 -1
  32. data/lib/faker/default/omniauth.rb +2 -0
  33. data/lib/faker/default/relationship.rb +1 -1
  34. data/lib/faker/default/space.rb +1 -1
  35. data/lib/faker/default/stripe.rb +3 -3
  36. data/lib/faker/default/vehicle.rb +1 -1
  37. data/lib/faker/fantasy/tolkien.rb +67 -0
  38. data/lib/faker/games/clash_of_clans.rb +48 -0
  39. data/lib/faker/games/control.rb +1 -1
  40. data/lib/faker/games/dnd.rb +6 -6
  41. data/lib/faker/games/elder_scrolls.rb +26 -0
  42. data/lib/faker/games/heroes.rb +13 -0
  43. data/lib/faker/games/minecraft.rb +65 -0
  44. data/lib/faker/games/street_fighter.rb +4 -4
  45. data/lib/faker/games/super_mario.rb +48 -0
  46. data/lib/faker/games/world_of_warcraft.rb +26 -1
  47. data/lib/faker/japanese_media/conan.rb +48 -0
  48. data/lib/faker/japanese_media/doraemon.rb +48 -0
  49. data/lib/faker/japanese_media/dragon_ball.rb +26 -0
  50. data/lib/faker/japanese_media/naruto.rb +61 -0
  51. data/lib/faker/japanese_media/studio_ghibli.rb +48 -0
  52. data/lib/faker/movies/hobbit.rb +4 -4
  53. data/lib/faker/movies/how_to_train_your_dragon.rb +48 -0
  54. data/lib/faker/movies/lord_of_the_rings.rb +3 -3
  55. data/lib/faker/movies/room.rb +63 -0
  56. data/lib/faker/movies/star_wars.rb +2 -2
  57. data/lib/faker/music/hiphop.rb +48 -0
  58. data/lib/faker/music/opera.rb +237 -1
  59. data/lib/faker/quotes/quote.rb +26 -0
  60. data/lib/faker/sports/volleyball.rb +74 -0
  61. data/lib/faker/tv_shows/buffy.rb +17 -4
  62. data/lib/faker/tv_shows/final_space.rb +51 -0
  63. data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +17 -4
  64. data/lib/faker/version.rb +1 -1
  65. data/lib/helpers/unique_generator.rb +3 -0
  66. data/lib/locales/en/adjective.yml +179 -0
  67. data/lib/locales/en/buffy.yml +1 -1
  68. data/lib/locales/en/camera.yml +611 -0
  69. data/lib/locales/en/clash_of_clan.yml +101 -0
  70. data/lib/locales/en/company.yml +2 -2
  71. data/lib/locales/en/conan.yml +171 -0
  72. data/lib/locales/en/demographic.yml +218 -5
  73. data/lib/locales/en/doraemon.yml +286 -0
  74. data/lib/locales/en/dota.yml +531 -63
  75. data/lib/locales/en/dragon_ball.yml +243 -1
  76. data/lib/locales/en/driving_license.yml +3 -0
  77. data/lib/locales/en/dune.yml +401 -131
  78. data/lib/locales/en/elder_scrolls.yml +583 -9
  79. data/lib/locales/en/fallout.yml +311 -133
  80. data/lib/locales/en/final_space.yml +37 -0
  81. data/lib/locales/en/finance.yml +53 -0
  82. data/lib/locales/en/fresh_prince_of_bel_air.yml +1 -1
  83. data/lib/locales/en/half_life.yml +84 -3
  84. data/lib/locales/en/heroes.yml +408 -3
  85. data/lib/locales/en/heroes_of_the_storm.yml +131 -4
  86. data/lib/locales/en/how_to_train_your_dragon.yml +174 -0
  87. data/lib/locales/en/jack_handey.yml +54 -0
  88. data/lib/locales/en/league_of_legends.yml +285 -6
  89. data/lib/locales/en/military.yml +179 -5
  90. data/lib/locales/en/minecraft.yml +273 -0
  91. data/lib/locales/en/mountain.yml +158 -0
  92. data/lib/locales/en/music.yml +451 -29
  93. data/lib/locales/en/myst.yml +87 -31
  94. data/lib/locales/en/naruto.yml +231 -0
  95. data/lib/locales/en/opera.yml +168 -0
  96. data/lib/locales/en/overwatch.yml +2650 -2622
  97. data/lib/locales/en/pokemon.yml +417 -4
  98. data/lib/locales/en/quote.yml +692 -163
  99. data/lib/locales/en/room.yml +68 -0
  100. data/lib/locales/en/source.yml +30 -0
  101. data/lib/locales/en/star_trek.yml +1 -1
  102. data/lib/locales/en/street_fighter.yml +4 -4
  103. data/lib/locales/en/studio_ghibli.yml +107 -0
  104. data/lib/locales/en/super_mario.yml +58 -0
  105. data/lib/locales/en/super_smash_bros.yml +16 -4
  106. data/lib/locales/en/tolkien.yml +2453 -0
  107. data/lib/locales/en/volleyball.yml +501 -0
  108. data/lib/locales/en/witcher.yml +389 -7
  109. data/lib/locales/en/world_of_warcraft.yml +122 -4
  110. data/lib/locales/en/zelda.yml +962 -4
  111. data/lib/locales/es.yml +56 -0
  112. data/lib/locales/ja.yml +5 -1
  113. data/lib/locales/pt-BR.yml +1 -1
  114. data/lib/locales/uk.yml +2 -0
  115. metadata +38 -10
  116. data/lib/locales/en/hobbit.yml +0 -19
  117. data/lib/locales/en/lord_of_the_rings.yml +0 -6
@@ -93,7 +93,7 @@ module Faker
93
93
  #
94
94
  # @faker.version 1.7.0
95
95
  def measurement
96
- fetch('food.measurement_sizes') + ' ' + fetch('food.measurements')
96
+ "#{fetch('food.measurement_sizes')} #{fetch('food.measurements')}"
97
97
  end
98
98
 
99
99
  ##
@@ -59,7 +59,8 @@ module Faker
59
59
  #
60
60
  # @param word_count [Integer] Specifies the number of words in the sentence
61
61
  # @param supplemental [Boolean] Specifies if the words are supplemental
62
- # @param random_words_to_add [Boolean] Specifies the number of random words to add
62
+ # @param random_words_to_add [Integer] Specifies the number of random words to add
63
+ # @param open_compounds_allowed [Boolean] Specifies if the generated sentence can contain words having additional spaces
63
64
  # @return [String]
64
65
  #
65
66
  # @example
@@ -68,10 +69,12 @@ module Faker
68
69
  # Faker::Hipster.sentence(word_count: 3, supplemental: true) #=> "Beard laboriosam sequi celiac."
69
70
  # Faker::Hipster.sentence(word_count: 3, supplemental: false, random_words_to_add: 4) #=> "Bitters retro mustache aesthetic biodiesel 8-bit."
70
71
  # Faker::Hipster.sentence(word_count: 3, supplemental: true, random_words_to_add: 4) #=> "Occaecati deleniti messenger bag meh crucifix autem."
72
+ # Faker::Hipster.sentence(word_count: 3, supplemental: true, random_words_to_add: 0, open_compounds_allowed: true) #=> "Kale chips nihil eos."
73
+ # Faker::Hipster.sentence(word_count: 3, supplemental: true, random_words_to_add: 0, open_compounds_allowed: false) #=> "Dreamcatcher umami fixie."
71
74
  #
72
75
  # @faker.version 1.6.0
73
76
  # rubocop:disable Metrics/ParameterLists
74
- def sentence(legacy_word_count = NOT_GIVEN, legacy_supplemental = NOT_GIVEN, legacy_random_words_to_add = NOT_GIVEN, word_count: 4, supplemental: false, random_words_to_add: 6)
77
+ def sentence(legacy_word_count = NOT_GIVEN, legacy_supplemental = NOT_GIVEN, legacy_random_words_to_add = NOT_GIVEN, word_count: 4, supplemental: false, random_words_to_add: 6, open_compounds_allowed: true)
75
78
  # rubocop:enable Metrics/ParameterLists
76
79
  warn_for_deprecated_arguments do |keywords|
77
80
  keywords << :word_count if legacy_word_count != NOT_GIVEN
@@ -79,7 +82,7 @@ module Faker
79
82
  keywords << :random_words_to_add if legacy_random_words_to_add != NOT_GIVEN
80
83
  end
81
84
 
82
- words(number: word_count + rand(random_words_to_add.to_i).to_i, supplemental: supplemental, spaces_allowed: true).join(' ').capitalize + '.'
85
+ "#{words(number: word_count + rand(random_words_to_add.to_i).to_i, supplemental: supplemental, spaces_allowed: open_compounds_allowed).join(' ').capitalize}."
83
86
  end
84
87
 
85
88
  ##
@@ -182,9 +185,9 @@ module Faker
182
185
 
183
186
  paragraph = paragraph(sentence_count: 3, supplemental: supplemental)
184
187
 
185
- paragraph += ' ' + paragraph(sentence_count: 3, supplemental: supplemental) while paragraph.length < characters
188
+ paragraph += " #{paragraph(sentence_count: 3, supplemental: supplemental)}" while paragraph.length < characters
186
189
 
187
- paragraph[0...characters - 1] + '.'
190
+ "#{paragraph[0...characters - 1]}."
188
191
  end
189
192
  end
190
193
  end
@@ -197,7 +197,7 @@ module Faker
197
197
  digits = Faker::Number.number(digits: 8)
198
198
  verification_code = chilean_verification_code(digits)
199
199
 
200
- digits.to_s + '-' + verification_code.to_s
200
+ "#{digits}-#{verification_code}"
201
201
  end
202
202
 
203
203
  private
@@ -256,7 +256,7 @@ module Faker
256
256
  end * 10
257
257
  end
258
258
 
259
- def brazilian_document_digit(checksum, id = false)
259
+ def brazilian_document_digit(checksum, id: false)
260
260
  remainder = checksum % 11
261
261
  id ? brazilian_id_digit(remainder) : brazilian_citizen_number_digit(remainder)
262
262
  end
@@ -37,7 +37,7 @@ module Faker
37
37
 
38
38
  construct_email(
39
39
  sanitize_email_local_part(username(specifier: name)),
40
- 'example.' + sample(%w[org com net])
40
+ "example.#{sample(%w[org com net])}"
41
41
  )
42
42
  end
43
43
 
@@ -50,7 +50,8 @@ module Faker
50
50
  with_locale(:en) do
51
51
  return shuffle(specifier.scan(/[[:word:]]+/)).join(sample(separators)).downcase if specifier.respond_to?(:scan)
52
52
 
53
- if specifier.is_a?(Integer)
53
+ case specifier
54
+ when Integer
54
55
  # If specifier is Integer and has large value, Argument error exception is raised to overcome memory full error
55
56
  raise ArgumentError, 'Given argument is too large' if specifier > 10**6
56
57
 
@@ -62,7 +63,7 @@ module Faker
62
63
  break unless result.length < specifier && tries < 7
63
64
  end
64
65
  return result * (specifier / result.length + 1) if specifier.positive?
65
- elsif specifier.is_a?(Range)
66
+ when Range
66
67
  tries = 0
67
68
  result = nil
68
69
  loop do
@@ -115,7 +116,7 @@ module Faker
115
116
  keywords << :special_characters if legacy_special_characters != NOT_GIVEN
116
117
  end
117
118
 
118
- min_alpha = mix_case ? 2 : 0
119
+ min_alpha = mix_case && min_length > 1 ? 2 : 0
119
120
  temp = Lorem.characters(number: min_length, min_alpha: min_alpha)
120
121
  diff_length = max_length - min_length
121
122
 
@@ -43,7 +43,7 @@ module Faker
43
43
 
44
44
  ref = reference if ref.empty?
45
45
 
46
- 'RF' + iban_checksum('RF', ref) + ref
46
+ "RF#{iban_checksum('RF', ref)}#{ref}"
47
47
  end
48
48
 
49
49
  ##
@@ -26,8 +26,8 @@ module Faker
26
26
  keywords << :options if legacy_options != NOT_GIVEN
27
27
  end
28
28
 
29
- options[:key] = 'Faker::' + options[:key]
30
- options[:value] = 'Faker::' + options[:value]
29
+ options[:key] = "Faker::#{options[:key]}"
30
+ options[:value] = "Faker::#{options[:value]}"
31
31
 
32
32
  hash = build_shallow_hash(width, options)
33
33
  JSON.generate(hash)
@@ -84,8 +84,8 @@ module Faker
84
84
  keywords << :options if legacy_options != NOT_GIVEN
85
85
  end
86
86
 
87
- options[:key] = 'Faker::' + options[:key]
88
- options[:value] = 'Faker::' + options[:value]
87
+ options[:key] = "Faker::#{options[:key]}"
88
+ options[:value] = "Faker::#{options[:value]}"
89
89
 
90
90
  hash = JSON.parse(json)
91
91
  hash.each do |key, _|
@@ -107,9 +107,9 @@ module Faker
107
107
 
108
108
  paragraph = paragraph(sentence_count: 3, supplemental: supplemental)
109
109
 
110
- paragraph += ' ' + paragraph(sentence_count: 3, supplemental: supplemental) while paragraph.length < number
110
+ paragraph += " #{paragraph(sentence_count: 3, supplemental: supplemental)}" while paragraph.length < number
111
111
 
112
- paragraph[0...number - 1] + '.'
112
+ "#{paragraph[0...number - 1]}."
113
113
  end
114
114
 
115
115
  # rubocop:disable Metrics/ParameterLists
@@ -172,9 +172,10 @@ module Faker
172
172
 
173
173
  def define_measurement_locale(amount, locale)
174
174
  ensure_valid_amount(amount)
175
- if amount == ALL
175
+ case amount
176
+ when ALL
176
177
  make_plural(fetch("measurement.#{locale}"))
177
- elsif amount == NONE
178
+ when NONE
178
179
  fetch("measurement.#{locale}")
179
180
  else
180
181
  locale = check_for_plural(fetch("measurement.#{locale}"), amount)
@@ -55,6 +55,32 @@ module Faker
55
55
  fetch('military.air_force_rank')
56
56
  end
57
57
 
58
+ ##
59
+ # Produces a rank in the U.S. Space Force.
60
+ #
61
+ # @return [String]
62
+ #
63
+ # @example
64
+ # Faker::Military.space_force_rank #=> "Senior Enlisted Advisor of the Space Force"
65
+ #
66
+ # @faker.version next
67
+ def space_force_rank
68
+ fetch('military.space_force_rank')
69
+ end
70
+
71
+ ##
72
+ # Produces a rank in the U.S. Coast Guard
73
+ #
74
+ # @return [String]
75
+ #
76
+ # @example
77
+ # Faker::Military.coast_guard_rank #=> "Master Chief Petty Officer of the Coast Guard"
78
+ #
79
+ # @faker.version next
80
+ def coast_guard_rank
81
+ fetch('military.coast_guard_rank')
82
+ end
83
+
58
84
  ##
59
85
  # Produces a U.S. Department of Defense Paygrade.
60
86
  #
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class Mountain < Base
5
+ class << self
6
+ ##
7
+ # Produces a name of a mountain
8
+ #
9
+ # @return [String]
10
+ #
11
+ # @example
12
+ # Faker::Mountain.name #=> "Mount Everest"
13
+ #
14
+ # @faker.version next
15
+ def name
16
+ fetch('mountain.name')
17
+ end
18
+
19
+ ##
20
+ # Produces a name of a range
21
+ #
22
+ # @return [String]
23
+ #
24
+ # @example
25
+ # Faker::Mountain.range #=> "Dhaulagiri Himalaya"
26
+ #
27
+ # @faker.version next
28
+ def range
29
+ fetch('mountain.range')
30
+ end
31
+ end
32
+ end
33
+ end
@@ -40,7 +40,7 @@ module Faker
40
40
  keywords << :digits if legacy_digits != NOT_GIVEN
41
41
  end
42
42
 
43
- '0' + (2..digits).collect { digit }.join
43
+ "0#{(2..digits).collect { digit }.join}"
44
44
  end
45
45
 
46
46
  ##
@@ -9,6 +9,8 @@ module Faker
9
9
  :email
10
10
 
11
11
  def initialize(name: nil, email: nil)
12
+ super()
13
+
12
14
  @name = name || "#{Name.first_name} #{Name.last_name}"
13
15
  @email = email || Internet.safe_email(name: self.name)
14
16
  @first_name, @last_name = self.name.split
@@ -32,7 +32,7 @@ module Faker
32
32
  end
33
33
  end
34
34
 
35
- fetch('relationship.familial.' + connection)
35
+ fetch("relationship.familial.#{connection}")
36
36
  end
37
37
 
38
38
  ##
@@ -158,7 +158,7 @@ module Faker
158
158
  #
159
159
  # @faker.version 1.6.4
160
160
  def distance_measurement
161
- rand(10..100).to_s + ' ' + fetch('space.distance_measurement')
161
+ "#{rand(10..100)} #{fetch('space.distance_measurement')}"
162
162
  end
163
163
 
164
164
  ##
@@ -30,7 +30,7 @@ module Faker
30
30
  end
31
31
  end
32
32
 
33
- fetch('stripe.valid_cards.' + card_type)
33
+ fetch("stripe.valid_cards.#{card_type}")
34
34
  end
35
35
 
36
36
  ##
@@ -60,7 +60,7 @@ module Faker
60
60
  end
61
61
  end
62
62
 
63
- fetch('stripe.valid_tokens.' + card_type)
63
+ fetch("stripe.valid_tokens.#{card_type}")
64
64
  end
65
65
 
66
66
  ##
@@ -89,7 +89,7 @@ module Faker
89
89
  end
90
90
  end
91
91
 
92
- fetch('stripe.invalid_cards.' + card_error)
92
+ fetch("stripe.invalid_cards.#{card_error}")
93
93
  end
94
94
 
95
95
  ##
@@ -278,7 +278,7 @@ module Faker
278
278
 
279
279
  return regexify(bothify(fetch('vehicle.license_plate'))) if state_abbreviation.empty?
280
280
 
281
- key = 'vehicle.license_plate_by_state.' + state_abbreviation
281
+ key = "vehicle.license_plate_by_state.#{state_abbreviation}"
282
282
  regexify(bothify(fetch(key)))
283
283
  end
284
284
 
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class Fantasy
5
+ class Tolkien < Base
6
+ flexible :tolkien
7
+
8
+ class << self
9
+ ##
10
+ # Produces a character from Tolkien's legendarium
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::Fantasy::Tolkien.character
16
+ # #=> "Goldberry"
17
+ #
18
+ # @faker.version next
19
+ def character
20
+ fetch('tolkien.characters')
21
+ end
22
+
23
+ ##
24
+ # Produces a location from Tolkien's legendarium
25
+ #
26
+ # @return [String]
27
+ #
28
+ # @example
29
+ # Faker::Fantasy::Tolkien.location
30
+ # #=> "Helm's Deep"
31
+ #
32
+ # @faker.version next
33
+ def location
34
+ fetch('tolkien.locations')
35
+ end
36
+
37
+ ##
38
+ # Produces a race from Tolkien's legendarium
39
+ #
40
+ # @return [String]
41
+ #
42
+ # @example
43
+ # Faker::Fantasy::Tolkien.race
44
+ # #=> "Uruk-hai"
45
+ #
46
+ # @faker.version next
47
+ def race
48
+ fetch('tolkien.races')
49
+ end
50
+
51
+ ##
52
+ # Produces the name of a poem from Tolkien's legendarium
53
+ #
54
+ # @return [String]
55
+ #
56
+ # @example
57
+ # Faker::Fantasy::Tolkien.poem
58
+ # #=> "Chip the glasses and crack the plates"
59
+ #
60
+ # @faker.version next
61
+ def poem
62
+ fetch('tolkien.poems')
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class Games
5
+ class ClashOfClans < Base
6
+ class << self
7
+ ##
8
+ # Produces the name of a troop from Clash of Clans.
9
+ #
10
+ # @return [String]
11
+ #
12
+ # @example
13
+ # Faker::Games::ClashOfClans.troop #=> "Barbarian"
14
+ #
15
+ # @faker.version next
16
+ def troop
17
+ fetch('games.clash_of_clans.troops')
18
+ end
19
+
20
+ ##
21
+ # Produces the name of a rank from Clash Of Clans.
22
+ #
23
+ # @return [String]
24
+ #
25
+ # @example
26
+ # Faker::Games::ClashOfClans.rank #=> "Legend"
27
+ #
28
+ # @faker.version next
29
+ def rank
30
+ fetch('games.clash_of_clans.ranks')
31
+ end
32
+
33
+ ##
34
+ # Produces the name of a defensive buiding from Clash Of Clans.
35
+ #
36
+ # @return [String]
37
+ #
38
+ # @example
39
+ # Faker::Games::ClashOfClans.defensive_building #=> "Cannon"
40
+ #
41
+ # @faker.version next
42
+ def defensive_building
43
+ fetch('games.clash_of_clans.defensive_buildings')
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -23,7 +23,7 @@ module Faker
23
23
  # @return [String]
24
24
  #
25
25
  # @example
26
- # Faker::Games::Control.character #=> "Dimensional Research"
26
+ # Faker::Games::Control.location #=> "Dimensional Research"
27
27
  #
28
28
  # @faker.version 2.13.0
29
29
  def location
@@ -38,7 +38,7 @@ module Faker
38
38
  # @example
39
39
  # Faker::Games::DnD.city #=> "Earthfast"
40
40
  #
41
- # @faker.version next
41
+ # @faker.version 2.14.0
42
42
  def city
43
43
  fetch('dnd.cities')
44
44
  end
@@ -64,7 +64,7 @@ module Faker
64
64
  # @example
65
65
  # Faker::Games::DnD.language #=> "Gnomish"
66
66
  #
67
- # @faker.version next
67
+ # @faker.version 2.14.0
68
68
  def language
69
69
  fetch('dnd.languages')
70
70
  end
@@ -77,7 +77,7 @@ module Faker
77
77
  # @example
78
78
  # Faker::Games::DnD.melee_weapon #=> "Handaxe"
79
79
  #
80
- # @faker.version next
80
+ # @faker.version 2.14.0
81
81
  def melee_weapon
82
82
  fetch('dnd.melee_weapons')
83
83
  end
@@ -90,7 +90,7 @@ module Faker
90
90
  # @example
91
91
  # Faker::Games::DnD.monster #=> "Manticore"
92
92
  #
93
- # @faker.version next
93
+ # @faker.version 2.14.0
94
94
  def monster
95
95
  fetch('dnd.monsters')
96
96
  end
@@ -103,7 +103,7 @@ module Faker
103
103
  # @example
104
104
  # Faker::Games::DnD.races #=> "Dwarf"
105
105
  #
106
- # @faker.version next
106
+ # @faker.version 2.14.0
107
107
  def race
108
108
  fetch('dnd.races')
109
109
  end
@@ -116,7 +116,7 @@ module Faker
116
116
  # @example
117
117
  # Faker::Games::DnD.ranged_weapon #=> "Shortbow"
118
118
  #
119
- # @faker.version next
119
+ # @faker.version 2.14.0
120
120
  def ranged_weapon
121
121
  fetch('dnd.ranged_weapons')
122
122
  end