faker 2.14.0 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +218 -19
  3. data/History.md +4 -4
  4. data/README.md +18 -1
  5. data/lib/faker.rb +12 -13
  6. data/lib/faker/blockchain/aeternity.rb +4 -4
  7. data/lib/faker/blockchain/bitcoin.rb +2 -2
  8. data/lib/faker/blockchain/tezos.rb +30 -2
  9. data/lib/faker/books/dune.rb +15 -2
  10. data/lib/faker/books/lovecraft.rb +8 -4
  11. data/lib/faker/creature/bird.rb +203 -0
  12. data/lib/faker/default/address.rb +4 -4
  13. data/lib/faker/default/app.rb +1 -1
  14. data/lib/faker/default/avatar.rb +1 -1
  15. data/lib/faker/default/bank.rb +20 -6
  16. data/lib/faker/default/barcode.rb +44 -33
  17. data/lib/faker/default/beer.rb +3 -3
  18. data/lib/faker/default/camera.rb +46 -0
  19. data/lib/faker/default/cannabis.rb +10 -0
  20. data/lib/faker/default/chile_rut.rb +3 -2
  21. data/lib/faker/default/chuck_norris.rb +1 -0
  22. data/lib/faker/default/code.rb +5 -5
  23. data/lib/faker/default/commerce.rb +1 -1
  24. data/lib/faker/default/company.rb +58 -10
  25. data/lib/faker/default/crypto.rb +17 -4
  26. data/lib/faker/default/driving_licence.rb +4 -3
  27. data/lib/faker/default/drone.rb +25 -25
  28. data/lib/faker/default/educator.rb +13 -0
  29. data/lib/faker/default/faker_adjective.rb +35 -0
  30. data/lib/faker/default/file.rb +6 -4
  31. data/lib/faker/default/finance.rb +21 -0
  32. data/lib/faker/default/food.rb +1 -1
  33. data/lib/faker/default/hipster.rb +14 -11
  34. data/lib/faker/default/id_number.rb +36 -2
  35. data/lib/faker/default/internet.rb +232 -6
  36. data/lib/faker/default/invoice.rb +1 -1
  37. data/lib/faker/default/json.rb +7 -6
  38. data/lib/faker/default/lorem.rb +160 -5
  39. data/lib/faker/default/lorem_flickr.rb +3 -8
  40. data/lib/faker/default/lorem_pixel.rb +2 -1
  41. data/lib/faker/default/markdown.rb +4 -2
  42. data/lib/faker/default/measurement.rb +3 -2
  43. data/lib/faker/default/military.rb +26 -0
  44. data/lib/faker/default/mountain.rb +33 -0
  45. data/lib/faker/default/number.rb +23 -6
  46. data/lib/faker/default/omniauth.rb +5 -10
  47. data/lib/faker/default/placeholdit.rb +3 -2
  48. data/lib/faker/default/relationship.rb +1 -1
  49. data/lib/faker/default/science.rb +26 -0
  50. data/lib/faker/default/space.rb +1 -1
  51. data/lib/faker/default/string.rb +3 -2
  52. data/lib/faker/default/stripe.rb +3 -3
  53. data/lib/faker/default/tea.rb +41 -0
  54. data/lib/faker/default/types.rb +4 -3
  55. data/lib/faker/default/vehicle.rb +1 -1
  56. data/lib/faker/fantasy/tolkien.rb +67 -0
  57. data/lib/faker/games/clash_of_clans.rb +48 -0
  58. data/lib/faker/games/control.rb +1 -1
  59. data/lib/faker/games/dnd.rb +6 -6
  60. data/lib/faker/games/elder_scrolls.rb +26 -0
  61. data/lib/faker/games/heroes.rb +13 -0
  62. data/lib/faker/games/minecraft.rb +65 -0
  63. data/lib/faker/games/street_fighter.rb +4 -4
  64. data/lib/faker/games/super_mario.rb +48 -0
  65. data/lib/faker/games/touhou.rb +75 -0
  66. data/lib/faker/games/witcher.rb +39 -0
  67. data/lib/faker/games/world_of_warcraft.rb +26 -1
  68. data/lib/faker/japanese_media/conan.rb +48 -0
  69. data/lib/faker/japanese_media/doraemon.rb +48 -0
  70. data/lib/faker/japanese_media/dragon_ball.rb +26 -0
  71. data/lib/faker/japanese_media/naruto.rb +61 -0
  72. data/lib/faker/japanese_media/studio_ghibli.rb +48 -0
  73. data/lib/faker/movies/hobbit.rb +4 -4
  74. data/lib/faker/movies/how_to_train_your_dragon.rb +48 -0
  75. data/lib/faker/movies/lord_of_the_rings.rb +3 -3
  76. data/lib/faker/movies/room.rb +63 -0
  77. data/lib/faker/movies/star_wars.rb +74 -2
  78. data/lib/faker/music/hiphop.rb +48 -0
  79. data/lib/faker/music/music.rb +12 -0
  80. data/lib/faker/music/opera.rb +237 -1
  81. data/lib/faker/music/rock_band.rb +12 -0
  82. data/lib/faker/quotes/quote.rb +26 -0
  83. data/lib/faker/quotes/rajnikanth.rb +1 -0
  84. data/lib/faker/quotes/shakespeare.rb +34 -0
  85. data/lib/faker/sports/volleyball.rb +74 -0
  86. data/lib/faker/tv_shows/big_bang_theory.rb +1 -1
  87. data/lib/faker/tv_shows/buffy.rb +17 -4
  88. data/lib/faker/tv_shows/final_space.rb +51 -0
  89. data/lib/faker/tv_shows/suits.rb +1 -1
  90. data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +17 -4
  91. data/lib/faker/version.rb +1 -1
  92. data/lib/locales/en-US.yml +1 -1
  93. data/lib/locales/en/adjective.yml +179 -0
  94. data/lib/locales/en/bird.yml +1281 -0
  95. data/lib/locales/en/book.yml +487 -3
  96. data/lib/locales/en/buffy.yml +1 -1
  97. data/lib/locales/en/camera.yml +611 -0
  98. data/lib/locales/en/clash_of_clan.yml +101 -0
  99. data/lib/locales/en/company.yml +2 -2
  100. data/lib/locales/en/conan.yml +171 -0
  101. data/lib/locales/en/demographic.yml +218 -5
  102. data/lib/locales/en/device.yml +112 -4
  103. data/lib/locales/en/doraemon.yml +286 -0
  104. data/lib/locales/en/dota.yml +531 -63
  105. data/lib/locales/en/dragon_ball.yml +243 -1
  106. data/lib/locales/en/driving_license.yml +3 -0
  107. data/lib/locales/en/dune.yml +270 -131
  108. data/lib/locales/en/educator.yml +6 -0
  109. data/lib/locales/en/elder_scrolls.yml +583 -9
  110. data/lib/locales/en/fallout.yml +311 -133
  111. data/lib/locales/en/final_space.yml +37 -0
  112. data/lib/locales/en/finance.yml +53 -0
  113. data/lib/locales/en/football.yml +3 -3
  114. data/lib/locales/en/fresh_prince_of_bel_air.yml +1 -1
  115. data/lib/locales/en/half_life.yml +84 -3
  116. data/lib/locales/en/heroes.yml +408 -3
  117. data/lib/locales/en/heroes_of_the_storm.yml +131 -4
  118. data/lib/locales/en/how_to_train_your_dragon.yml +174 -0
  119. data/lib/locales/en/jack_handey.yml +54 -0
  120. data/lib/locales/en/league_of_legends.yml +285 -6
  121. data/lib/locales/en/lebowski.yml +1 -1
  122. data/lib/locales/en/lovecraft.yml +76 -6
  123. data/lib/locales/en/military.yml +179 -5
  124. data/lib/locales/en/minecraft.yml +273 -0
  125. data/lib/locales/en/mountain.yml +158 -0
  126. data/lib/locales/en/music.yml +461 -29
  127. data/lib/locales/en/myst.yml +87 -31
  128. data/lib/locales/en/naruto.yml +231 -0
  129. data/lib/locales/en/opera.yml +168 -0
  130. data/lib/locales/en/overwatch.yml +2650 -2622
  131. data/lib/locales/en/pokemon.yml +417 -4
  132. data/lib/locales/en/quote.yml +692 -163
  133. data/lib/locales/en/rock_band.yml +1 -0
  134. data/lib/locales/en/room.yml +68 -0
  135. data/lib/locales/en/science.yml +355 -3
  136. data/lib/locales/en/shakespeare.yml +21 -24
  137. data/lib/locales/en/source.yml +30 -0
  138. data/lib/locales/en/space.yml +1 -1
  139. data/lib/locales/en/star_trek.yml +1 -1
  140. data/lib/locales/en/street_fighter.yml +4 -4
  141. data/lib/locales/en/studio_ghibli.yml +107 -0
  142. data/lib/locales/en/super_mario.yml +58 -0
  143. data/lib/locales/en/super_smash_bros.yml +18 -4
  144. data/lib/locales/en/tea.yml +172 -0
  145. data/lib/locales/en/tolkien.yml +2453 -0
  146. data/lib/locales/en/touhou.yml +839 -0
  147. data/lib/locales/en/volleyball.yml +501 -0
  148. data/lib/locales/en/witcher.yml +426 -7
  149. data/lib/locales/en/world_of_warcraft.yml +122 -4
  150. data/lib/locales/en/zelda.yml +962 -4
  151. data/lib/locales/es-AR.yml +4603 -0
  152. data/lib/locales/es.yml +56 -0
  153. data/lib/locales/fr.yml +0 -118
  154. data/lib/locales/fr/address.yml +21 -0
  155. data/lib/locales/fr/book.yml +7 -0
  156. data/lib/locales/fr/color.yml +4 -0
  157. data/lib/locales/fr/company.yml +17 -0
  158. data/lib/locales/fr/compass.yml +23 -0
  159. data/lib/locales/fr/demographic.yml +4 -0
  160. data/lib/locales/fr/gender.yml +6 -0
  161. data/lib/locales/fr/internet.yml +5 -0
  162. data/lib/locales/fr/lorem.yml +5 -0
  163. data/lib/locales/fr/measurement.yml +7 -0
  164. data/lib/locales/fr/name.yml +21 -0
  165. data/lib/locales/fr/phone_number.yml +7 -0
  166. data/lib/locales/fr/pokemon.yml +9 -0
  167. data/lib/locales/id.yml +1 -0
  168. data/lib/locales/ja/README.md +13 -0
  169. data/lib/locales/ja/address.yml +17 -0
  170. data/lib/locales/ja/ancient.yml +4 -0
  171. data/lib/locales/ja/bank.yml +4 -0
  172. data/lib/locales/ja/book.yml +7 -0
  173. data/lib/locales/ja/coffee.yml +4 -0
  174. data/lib/locales/ja/color.yml +4 -0
  175. data/lib/locales/ja/commerce.yml +11 -0
  176. data/lib/locales/ja/company.yml +8 -0
  177. data/lib/locales/ja/creature.yml +9 -0
  178. data/lib/locales/ja/food.yml +4 -0
  179. data/lib/locales/ja/games.yml +18 -0
  180. data/lib/locales/ja/gender.yml +4 -0
  181. data/lib/locales/ja/lorem.yml +9 -0
  182. data/lib/locales/ja/name.yml +13 -0
  183. data/lib/locales/ja/phone_number.yml +7 -0
  184. data/lib/locales/ja/restaurant.yml +11 -0
  185. data/lib/locales/ja/space.yml +5 -0
  186. data/lib/locales/ja/subscription.yml +8 -0
  187. data/lib/locales/ja/university.yml +9 -0
  188. data/lib/locales/pt-BR.yml +2 -1
  189. data/lib/locales/ru.yml +39 -0
  190. data/lib/locales/uk.yml +2 -0
  191. metadata +92 -19
  192. data/lib/locales/en/hobbit.yml +0 -19
  193. data/lib/locales/en/lord_of_the_rings.yml +0 -6
  194. data/lib/locales/ja.yml +0 -101
@@ -46,9 +46,10 @@ module Faker
46
46
  partial_result
47
47
  end
48
48
  partial_check_digit = 11 - (digit_sum % 11)
49
- if partial_check_digit == 11
49
+ case partial_check_digit
50
+ when 11
50
51
  '0'
51
- elsif partial_check_digit == 10
52
+ when 10
52
53
  'k'
53
54
  else
54
55
  partial_check_digit.to_s
@@ -5,6 +5,7 @@ module Faker
5
5
  flexible :chuck_norris
6
6
 
7
7
  class << self
8
+ ##
8
9
  # Produces a Chuck Norris Fact.
9
10
  # Original list of facts:
10
11
  # https://github.com/jenkinsci/chucknorris-plugin/blob/master/src/main/java/hudson/plugins/chucknorris/FactGenerator.java
@@ -61,7 +61,7 @@ module Faker
61
61
  case base
62
62
  when 8 then generate_base8_ean
63
63
  when 13 then generate_base13_ean
64
- else raise ArgumentError, 'base must be 3 or 13'
64
+ else raise ArgumentError, 'base must be 8 or 13'
65
65
  end
66
66
  end
67
67
 
@@ -80,11 +80,11 @@ module Faker
80
80
  value << "-#{vd}"
81
81
  end
82
82
 
83
+ ##
84
+ # Produces a random NRIC (National Registry Identity Card) code.
83
85
  # By default generates a Singaporean NRIC ID for someone
84
86
  # who is born between the age of 18 and 65.
85
87
  #
86
- # Produces a random NRIC (National Registry Identity Card) code.
87
- #
88
88
  # @param min_age [Integer] the min age of the person in years
89
89
  # @param max_age [Integer] the max age of the person in years
90
90
  # @return [String]
@@ -160,7 +160,7 @@ module Faker
160
160
  partial = Array.new(7) { Faker::Config.random.rand(0..9) }.join
161
161
 
162
162
  # Generate 9th digit
163
- check_digit = generate_sin_check_digit(registry + partial + '0').to_s
163
+ check_digit = generate_sin_check_digit("#{registry}#{partial}0").to_s
164
164
 
165
165
  registry + partial + check_digit
166
166
  end
@@ -218,7 +218,7 @@ module Faker
218
218
  def generate_base13_isbn
219
219
  values = regexify(/\d{12}/)
220
220
  remainder = sum(values) { |value, index| index.even? ? value.to_i : value.to_i * 3 } % 10
221
- values << "-#{((10 - remainder) % 10)}"
221
+ values << "-#{(10 - remainder) % 10}"
222
222
  end
223
223
 
224
224
  def sum(values)
@@ -121,7 +121,7 @@ module Faker
121
121
  price = (rand(range) * 100).floor / 100.0
122
122
  if as_string
123
123
  price_parts = price.to_s.split('.')
124
- price = price_parts[0] + '.' + price_parts[-1].ljust(2, '0')
124
+ price = "#{price_parts[0]}.#{price_parts[-1].ljust(2, '0')}"
125
125
  end
126
126
  price
127
127
  end
@@ -162,10 +162,17 @@ module Faker
162
162
  # @faker.version 1.8.5
163
163
  #
164
164
  # Get a random Spanish organization number. See more here https://es.wikipedia.org/wiki/N%C3%BAmero_de_identificaci%C3%B3n_fiscal
165
- def spanish_organisation_number
165
+ def spanish_organisation_number(organization_type: nil)
166
166
  # Valid leading character: A, B, C, D, E, F, G, H, J, N, P, Q, R, S, U, V, W
167
- # 7 digit numbers
168
- [sample(self::ULetters), format('%07d', rand(10**7))].join
167
+ # format: 1 digit letter (organization type) + 7 digit numbers + 1 digit control (letter or number based on
168
+ # organization type)
169
+ letters = %w[A B C D E F G H J N P Q R S U V W]
170
+
171
+ organization_type = sample(letters) unless letters.include?(organization_type)
172
+ code = format('%07d', rand(10**7))
173
+ control = spanish_cif_control_digit(organization_type, code)
174
+
175
+ [organization_type, code, control].join
169
176
  end
170
177
 
171
178
  ##
@@ -397,7 +404,18 @@ module Faker
397
404
  formatted ? format('%s.%s.%s/%s-%s', *number.scan(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/).flatten) : number
398
405
  end
399
406
 
407
+ ##
400
408
  # Get a random Russian tax number.
409
+ # @param region [String] Any region string
410
+ # @param type [Symbol] Legeal or not, defaults to :legal
411
+ #
412
+ # @return [String]
413
+ # @example
414
+ # Faker::Company.russian_tax_number #=> "0415584064"
415
+ # Faker::Company.russian_tax_number(region: 'AZ') #=> "AZ50124562"
416
+ # Faker::Company.russian_tax_number(region: 'AZ', type: false) #=> "AZ8802315465"
417
+ #
418
+ # @faker.version 1.9.4
401
419
  def russian_tax_number(region: nil, type: :legal)
402
420
  inn_number(region, type)
403
421
  end
@@ -457,13 +475,11 @@ module Faker
457
475
  end
458
476
  end
459
477
 
460
- control_digit = if (sum % 10).zero?
461
- 0
462
- else
463
- (sum / 10 + 1) * 10 - sum
464
- end
465
-
466
- control_digit
478
+ if (sum % 10).zero?
479
+ 0
480
+ else
481
+ (sum / 10 + 1) * 10 - sum
482
+ end
467
483
  end
468
484
 
469
485
  def abn_checksum(abn)
@@ -502,7 +518,14 @@ module Faker
502
518
  #
503
519
  # Range of regions:
504
520
  # https://ru.wikipedia.org/wiki/Коды_субъектов_Российской_Федерации
521
+ # region [String] Any region string
522
+ # @param type [Symbol] Legeal or not, defaults to :legal
505
523
  #
524
+ # @return [String]
525
+ # @example
526
+ # Faker::Comnpany.russian_tax_number
527
+ # Faker::Comnpany.russian_tax_number(region: 'AZ')
528
+ # Faker::Comnpany.russian_tax_number(region: 'AZ', type: false)
506
529
  # rubocop:enable Style/AsciiComments
507
530
  def inn_number(region, type)
508
531
  n10 = [2, 4, 10, 3, 5, 9, 4, 6, 8]
@@ -528,6 +551,31 @@ module Faker
528
551
  end % 11 % 10
529
552
  ).to_s
530
553
  end
554
+
555
+ def spanish_cif_control_digit(organization_type, code)
556
+ letters = %w[J A B C D E F G H]
557
+
558
+ control = code.split('').each_with_index.inject(0) do |sum, (value, index)|
559
+ if (index + 1).even?
560
+ sum + value.to_i
561
+ else
562
+ sum + spanish_b_algorithm(value.to_i)
563
+ end
564
+ end
565
+
566
+ control = control.to_s[-1].to_i
567
+ control = control.zero? ? control : 10 - control
568
+
569
+ %w[A B C D E F G H J U V].include?(organization_type) ? control : letters[control]
570
+ end
571
+
572
+ def spanish_b_algorithm(value)
573
+ result = value.to_i * 2
574
+
575
+ return result if result < 10
576
+
577
+ result.to_s[0].to_i + result.to_s[1].to_i
578
+ end
531
579
  end
532
580
  end
533
581
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'digest'
3
+ require 'openssl'
4
4
 
5
5
  module Faker
6
6
  class Crypto < Base
@@ -15,7 +15,7 @@ module Faker
15
15
  #
16
16
  # @faker.version 1.6.4
17
17
  def md5
18
- Digest::MD5.hexdigest(Lorem.characters)
18
+ OpenSSL::Digest::MD5.hexdigest(Lorem.characters)
19
19
  end
20
20
 
21
21
  ##
@@ -28,7 +28,7 @@ module Faker
28
28
  #
29
29
  # @faker.version 1.6.4
30
30
  def sha1
31
- Digest::SHA1.hexdigest(Lorem.characters)
31
+ OpenSSL::Digest::SHA1.hexdigest(Lorem.characters)
32
32
  end
33
33
 
34
34
  ##
@@ -41,7 +41,20 @@ module Faker
41
41
  #
42
42
  # @faker.version 1.6.4
43
43
  def sha256
44
- Digest::SHA256.hexdigest(Lorem.characters)
44
+ OpenSSL::Digest::SHA256.hexdigest(Lorem.characters)
45
+ end
46
+
47
+ ##
48
+ # Produces a SHA512 hash.
49
+ #
50
+ # @return [String]
51
+ #
52
+ # @example
53
+ # Faker::Crypto.sha512 #=> "7b9fc82a6642874833d01b74a7b4fae3d15373193b55cfba47327f8f0afdc8d0ea155b58639a03a887009ef997dab8dd8d36767620d430f6e787e5996e26da80"
54
+ #
55
+ # @faker.version next
56
+ def sha512
57
+ OpenSSL::Digest::SHA512.hexdigest(Lorem.characters)
45
58
  end
46
59
  end
47
60
  end
@@ -6,6 +6,8 @@ module Faker
6
6
  NI_CHANCE = 0.03 # NI Pop is about 3% of total UK population
7
7
 
8
8
  class << self
9
+ # rubocop:disable Metrics/ParameterLists
10
+
9
11
  ##
10
12
  # Produces a random British driving licence number.
11
13
  #
@@ -23,9 +25,7 @@ module Faker
23
25
  # date_of_birth: Date.parse("1986-10-24")) #=> "OCARR815246J91HT"
24
26
  #
25
27
  # @faker.version 1.9.2
26
- # rubocop:disable Metrics/ParameterLists
27
28
  def british_driving_licence(legacy_last_name = NOT_GIVEN, legacy_initials = NOT_GIVEN, legacy_gender = NOT_GIVEN, legacy_date_of_birth = NOT_GIVEN, last_name: Faker::Name.last_name, initials: Faker::Name.initials, gender: random_gender, date_of_birth: Faker::Date.birthday(min_age: 18, max_age: 65))
28
- # rubocop:enable Metrics/ParameterLists
29
29
  warn_for_deprecated_arguments do |keywords|
30
30
  keywords << :last_name if legacy_last_name != NOT_GIVEN
31
31
  keywords << :initials if legacy_initials != NOT_GIVEN
@@ -40,6 +40,7 @@ module Faker
40
40
  gb_licence_checksum
41
41
  ].join
42
42
  end
43
+ # rubocop:enable Metrics/ParameterLists
43
44
 
44
45
  ##
45
46
  # Produces a random Northern Irish licence number.
@@ -88,7 +89,7 @@ module Faker
88
89
  # Faker::DrivingLicence.usa_driving_licence('new mexico') #=> "270692028"
89
90
  # Faker::DrivingLicence.usa_driving_licence('New Mexico') #=> "68178637"
90
91
  #
91
- # @faker.version next
92
+ # @faker.version 2.14.0
92
93
  def usa_driving_licence(state = 'California')
93
94
  bothify(fetch("driving_licence.usa.#{state.to_s.strip.downcase.gsub(' ', '_')}"))
94
95
  rescue I18n::MissingTranslationData => _e
@@ -11,7 +11,7 @@ module Faker
11
11
  # @example
12
12
  # Faker::Drone.name #=> "DJI Mavic Air 2"
13
13
  #
14
- # @faker.version next
14
+ # @faker.version 2.14.0
15
15
  def name
16
16
  fetch('drone.name')
17
17
  end
@@ -24,7 +24,7 @@ module Faker
24
24
  # @example
25
25
  # Faker::Drone.weight #=> "570 g"
26
26
  #
27
- # @faker.version next
27
+ # @faker.version 2.14.0
28
28
  def weight
29
29
  parse('drone.weight')
30
30
  end
@@ -37,7 +37,7 @@ module Faker
37
37
  # @example
38
38
  # Faker::Drone.max_ascent_speed #=> "4 m/s"
39
39
  #
40
- # @faker.version next
40
+ # @faker.version 2.14.0
41
41
  def max_ascent_speed
42
42
  parse('drone.max_ascent_speed')
43
43
  end
@@ -50,7 +50,7 @@ module Faker
50
50
  # @example
51
51
  # Faker::Drone.max_descent_speed #=> "4 m/s"
52
52
  #
53
- # @faker.version next
53
+ # @faker.version 2.14.0
54
54
  def max_descent_speed
55
55
  parse('drone.max_descent_speed')
56
56
  end
@@ -63,7 +63,7 @@ module Faker
63
63
  # @example
64
64
  # Faker::Drone.flight_time #=> "34 min"
65
65
  #
66
- # @faker.version next
66
+ # @faker.version 2.14.0
67
67
  def flight_time
68
68
  parse('drone.flight_time')
69
69
  end
@@ -76,7 +76,7 @@ module Faker
76
76
  # @example
77
77
  # Faker::Drone.max_altitude #=> "5000 m"
78
78
  #
79
- # @faker.version next
79
+ # @faker.version 2.14.0
80
80
  def max_altitude
81
81
  parse('drone.max_altitude')
82
82
  end
@@ -89,7 +89,7 @@ module Faker
89
89
  # @example
90
90
  # Faker::Drone.max_flight_distance #=> "18500 m"
91
91
  #
92
- # @faker.version next
92
+ # @faker.version 2.14.0
93
93
  def max_flight_distance
94
94
  parse('drone.max_flight_distance')
95
95
  end
@@ -102,7 +102,7 @@ module Faker
102
102
  # @example
103
103
  # Faker::Drone.max_speed #=> "19 m/s"
104
104
  #
105
- # @faker.version next
105
+ # @faker.version 2.14.0
106
106
  def max_speed
107
107
  parse('drone.max_speed')
108
108
  end
@@ -115,7 +115,7 @@ module Faker
115
115
  # @example
116
116
  # Faker::Drone.max_wind_resistance #=> "10.5 m/s"
117
117
  #
118
- # @faker.version next
118
+ # @faker.version 2.14.0
119
119
  def max_wind_resistance
120
120
  parse('drone.max_wind_resistance')
121
121
  end
@@ -128,7 +128,7 @@ module Faker
128
128
  # @example
129
129
  # Faker::Drone.max_angular_velocity #=> "250 degree/s"
130
130
  #
131
- # @faker.version next
131
+ # @faker.version 2.14.0
132
132
  def max_angular_velocity
133
133
  parse('drone.max_angular_velocity')
134
134
  end
@@ -141,7 +141,7 @@ module Faker
141
141
  # @example
142
142
  # Faker::Drone.max_tilt_angle #=> "35 degrees"
143
143
  #
144
- # @faker.version next
144
+ # @faker.version 2.14.0
145
145
  def max_tilt_angle
146
146
  parse('drone.max_tilt_angle')
147
147
  end
@@ -154,7 +154,7 @@ module Faker
154
154
  # @example
155
155
  # Faker::Drone.operating_temperature #=> "14-104F"
156
156
  #
157
- # @faker.version next
157
+ # @faker.version 2.14.0
158
158
  def operating_temperature
159
159
  parse('drone.operating_temperature')
160
160
  end
@@ -167,7 +167,7 @@ module Faker
167
167
  # @example
168
168
  # Faker::Drone.battery_capacity #=> "3500 mAh"
169
169
  #
170
- # @faker.version next
170
+ # @faker.version 2.14.0
171
171
  def battery_capacity
172
172
  parse('drone.battery_capacity')
173
173
  end
@@ -180,7 +180,7 @@ module Faker
180
180
  # @example
181
181
  # Faker::Drone.battery_voltage #=> "13.2V"
182
182
  #
183
- # @faker.version next
183
+ # @faker.version 2.14.0
184
184
  def battery_voltage
185
185
  parse('drone.battery_voltage')
186
186
  end
@@ -193,7 +193,7 @@ module Faker
193
193
  # @example
194
194
  # Faker::Drone.battery_type #=> "LiPo 4S"
195
195
  #
196
- # @faker.version next
196
+ # @faker.version 2.14.0
197
197
  def battery_type
198
198
  parse('drone.battery_type')
199
199
  end
@@ -206,7 +206,7 @@ module Faker
206
206
  # @example
207
207
  # Faker::Drone.battery_weight #=> "198 g"
208
208
  #
209
- # @faker.version next
209
+ # @faker.version 2.14.0
210
210
  def battery_weight
211
211
  parse('drone.battery_weight')
212
212
  end
@@ -219,7 +219,7 @@ module Faker
219
219
  # @example
220
220
  # Faker::Drone.charging_temperature #=> "41-104F"
221
221
  #
222
- # @faker.version next
222
+ # @faker.version 2.14.0
223
223
  def charging_temperature
224
224
  parse('drone.charging_temperature')
225
225
  end
@@ -232,7 +232,7 @@ module Faker
232
232
  # @example
233
233
  # Faker::Drone.max_charging_power #=> "38W"
234
234
  #
235
- # @faker.version next
235
+ # @faker.version 2.14.0
236
236
  def max_charging_power
237
237
  parse('drone.max_charging_power')
238
238
  end
@@ -245,7 +245,7 @@ module Faker
245
245
  # @example
246
246
  # Faker::Drone.iso #=> "100-3200"
247
247
  #
248
- # @faker.version next
248
+ # @faker.version 2.14.0
249
249
  def iso
250
250
  parse('drone.iso')
251
251
  end
@@ -258,7 +258,7 @@ module Faker
258
258
  # @example
259
259
  # Faker::Drone.max_resolution #=> "48MP"
260
260
  #
261
- # @faker.version next
261
+ # @faker.version 2.14.0
262
262
  def max_resolution
263
263
  parse('drone.max_resolution')
264
264
  end
@@ -271,7 +271,7 @@ module Faker
271
271
  # @example
272
272
  # Faker::Drone.photo_format #=> "JPEG"
273
273
  #
274
- # @faker.version next
274
+ # @faker.version 2.14.0
275
275
  def photo_format
276
276
  parse('drone.photo_format')
277
277
  end
@@ -284,7 +284,7 @@ module Faker
284
284
  # @example
285
285
  # Faker::Drone.video_format #=> "MP4"
286
286
  #
287
- # @faker.version next
287
+ # @faker.version 2.14.0
288
288
  def video_format
289
289
  parse('drone.video_format')
290
290
  end
@@ -297,7 +297,7 @@ module Faker
297
297
  # @example
298
298
  # Faker::Drone.shutter_speed_range #=> "8-1/8000s"
299
299
  #
300
- # @faker.version next
300
+ # @faker.version 2.14.0
301
301
  def shutter_speed_range
302
302
  "#{fetch('drone.max_shutter_speed')}-#{fetch('drone.min_shutter_speed')}#{fetch('drone.shutter_speed_units')}"
303
303
  end
@@ -310,7 +310,7 @@ module Faker
310
310
  # @example
311
311
  # Faker::Drone.max_shutter_speed #=> "60s"
312
312
  #
313
- # @faker.version next
313
+ # @faker.version 2.14.0
314
314
  def max_shutter_speed
315
315
  "#{fetch('drone.max_shutter_speed')}#{fetch('drone.shutter_speed_units')}"
316
316
  end
@@ -323,7 +323,7 @@ module Faker
323
323
  # @example
324
324
  # Faker::Drone.min_shutter_speed #=> "1/8000s"
325
325
  #
326
- # @faker.version next
326
+ # @faker.version 2.14.0
327
327
  def min_shutter_speed
328
328
  "#{fetch('drone.min_shutter_speed')}#{fetch('drone.shutter_speed_units')}"
329
329
  end