faker 2.14.0 → 2.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +89 -0
  3. data/README.md +9 -0
  4. data/lib/faker.rb +11 -12
  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/id.yml +1 -0
  113. data/lib/locales/ja.yml +5 -1
  114. data/lib/locales/pt-BR.yml +1 -1
  115. data/lib/locales/uk.yml +2 -0
  116. metadata +38 -10
  117. data/lib/locales/en/hobbit.yml +0 -19
  118. data/lib/locales/en/lord_of_the_rings.yml +0 -6
@@ -16,6 +16,19 @@ module Faker
16
16
  fetch('quote.famous_last_words')
17
17
  end
18
18
 
19
+ ##
20
+ # Produces a quote from Deep Thoughts by Jack Handey.
21
+ #
22
+ # @return [String]
23
+ #
24
+ # @example
25
+ # Faker::Quote.jack_handey # => "I hope life isn't a big joke, because I don't get it."
26
+ #
27
+ # @faker.version next
28
+ def jack_handey
29
+ fetch('quote.jack_handey')
30
+ end
31
+
19
32
  ##
20
33
  # Produces a quote from Matz.
21
34
  #
@@ -80,6 +93,19 @@ module Faker
80
93
  def yoda
81
94
  fetch('quote.yoda')
82
95
  end
96
+
97
+ ##
98
+ # Produces a quote from a fortune cookie.
99
+ #
100
+ # @return [String]
101
+ #
102
+ # @example
103
+ # Faker::Quote.fortune_cookie #=> "This cookie senses that you are superstitious; it is an inclination that is bad for your mental health."
104
+ #
105
+ # @faker.version next
106
+ def fortune_cookie
107
+ fetch('quote.fortune_cookie')
108
+ end
83
109
  end
84
110
  end
85
111
  end
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class Sports
5
+ class Volleyball < Base
6
+ class << self
7
+ ##
8
+ # Produces the name of a volleyball team.
9
+ #
10
+ # @return [String]
11
+ #
12
+ # @example
13
+ # Faker::Sports::Volleyball.team #=> "Leo Shoes Modena"
14
+ #
15
+ # @faker.version next
16
+ def team
17
+ fetch('volleyball.team')
18
+ end
19
+
20
+ ##
21
+ # Produces the name of a volleyball player.
22
+ #
23
+ # @return [String]
24
+ #
25
+ # @example
26
+ # Faker::Sports::Volleyball.player #=> "Saeid Marouf"
27
+ #
28
+ # @faker.version next
29
+ def player
30
+ fetch('volleyball.player')
31
+ end
32
+
33
+ ##
34
+ # Produces the name of a volleyball coach.
35
+ #
36
+ # @return [String]
37
+ #
38
+ # @example
39
+ # Faker::Sports::Volleyball.coach #=> "Russ Rose"
40
+ #
41
+ # @faker.version next
42
+ def coach
43
+ fetch('volleyball.coach')
44
+ end
45
+
46
+ ##
47
+ # Produces a position in volleyball.
48
+ #
49
+ # @return [String]
50
+ #
51
+ # @example
52
+ # Faker::Sports::Volleyball.position #=> "Middle blocker"
53
+ #
54
+ # @faker.version next
55
+ def position
56
+ fetch('volleyball.position')
57
+ end
58
+
59
+ ##
60
+ # Produces a formation in volleyball.
61
+ #
62
+ # @return [String]
63
+ #
64
+ # @example
65
+ # Faker::Sports::Volleyball.formation #=> "4-2"
66
+ #
67
+ # @faker.version next
68
+ def formation
69
+ fetch('volleyball.formation')
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
@@ -33,17 +33,30 @@ module Faker
33
33
  end
34
34
 
35
35
  ##
36
- # Produces a celebrity from Buffy the Vampire Slayer.
36
+ # Produces a actor from Buffy the Vampire Slayer.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::Buffy.actor #=> "John Ritter"
42
+ #
43
+ # @faker.version next
44
+ def actor
45
+ fetch('buffy.actors')
46
+ end
47
+
48
+ ##
49
+ # Produces a actor from Buffy the Vampire Slayer.
37
50
  #
38
51
  # @return [String]
39
52
  #
40
53
  # @example
41
54
  # Faker::TvShows::Buffy.celebrity #=> "John Ritter"
42
55
  #
56
+ # @deprecated Use the `actor` method instead.
57
+ #
43
58
  # @faker.version 1.9.2
44
- def celebrity
45
- fetch('buffy.celebrities')
46
- end
59
+ alias celebrity actor
47
60
 
48
61
  ##
49
62
  # Produces a big bad from Buffy the Vampire Slayer.
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class TvShows
5
+ class FinalSpace < Base
6
+ flexible :final_space
7
+
8
+ class << self
9
+ ##
10
+ # Produces a character from Final Space.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::FinalSpace.character #=> "Gary Goodspeed"
16
+ #
17
+ # @faker.version next
18
+ def character
19
+ fetch('final_space.characters')
20
+ end
21
+
22
+ ##
23
+ # Produces a vehicle from Final Space.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::FinalSpace.vehicle #=> "Imperium Cruiser"
29
+ #
30
+ # @faker.version next
31
+ def vehicle
32
+ fetch('final_space.vehicles')
33
+ end
34
+
35
+ ##
36
+ # Produces a quote from Final Space.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::FinalSpace.quote
42
+ # #=> "It's an alien on my face! It's an alien on my...It's a space alien!"
43
+ #
44
+ # @faker.version next
45
+ def quote
46
+ fetch('final_space.quotes')
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -20,17 +20,30 @@ module Faker
20
20
  end
21
21
 
22
22
  ##
23
- # Produces a celebrity from The Fresh Prince of Bel-Air.
23
+ # Produces a actor from The Fresh Prince of Bel-Air.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::TheFreshPrinceOfBelAir.actor #=> "Quincy Jones"
29
+ #
30
+ # @faker.version next
31
+ def actor
32
+ fetch('the_fresh_prince_of_bel_air.actors')
33
+ end
34
+
35
+ ##
36
+ # Produces a actor from The Fresh Prince of Bel-Air.
24
37
  #
25
38
  # @return [String]
26
39
  #
27
40
  # @example
28
41
  # Faker::TvShows::TheFreshPrinceOfBelAir.celebrity #=> "Quincy Jones"
29
42
  #
43
+ # @deprecated Use the `actor` method instead.
44
+ #
30
45
  # @faker.version 1.8.3
31
- def celebrity
32
- fetch('the_fresh_prince_of_bel_air.celebrities')
33
- end
46
+ alias celebrity actor
34
47
 
35
48
  ##
36
49
  # Produces a quote from The Fresh Prince of Bel-Air.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faker #:nodoc:
4
- VERSION = '2.14.0'
4
+ VERSION = '2.15.1'
5
5
  end
@@ -14,6 +14,7 @@ module Faker
14
14
  @previous_results = Hash.new { |hash, key| hash[key] = Set.new }
15
15
  end
16
16
 
17
+ # rubocop:disable Lint/MissingSuper
17
18
  def method_missing(name, *arguments)
18
19
  self.class.marked_unique.add(self)
19
20
 
@@ -28,6 +29,8 @@ module Faker
28
29
 
29
30
  raise RetryLimitExceeded, "Retry limit exceeded for #{name}"
30
31
  end
32
+ # rubocop:enable Lint/MissingSuper
33
+
31
34
  # Have method_missing use ruby 2.x keywords if the method exists.
32
35
  # This is necessary because the syntax for passing arguments (`...`)
33
36
  # is invalid on versions before Ruby 2.7, so it can't be used.
@@ -0,0 +1,179 @@
1
+ en:
2
+ faker:
3
+ adjective:
4
+ positive:
5
+ - 'adorable'
6
+ - 'adventurous'
7
+ - 'agreeable'
8
+ - 'attractive'
9
+ - 'beautiful'
10
+ - 'brainy'
11
+ - 'brave'
12
+ - 'bright'
13
+ - 'calm'
14
+ - 'charming'
15
+ - 'cheerful'
16
+ - 'clean'
17
+ - 'clever'
18
+ - 'colorful'
19
+ - 'combative'
20
+ - 'comfortable'
21
+ - 'cooperative'
22
+ - 'courageous'
23
+ - 'curious'
24
+ - 'cute'
25
+ - 'delightful'
26
+ - 'determined'
27
+ - 'elegant'
28
+ - 'enchanting'
29
+ - 'encouraging'
30
+ - 'energetic'
31
+ - 'enthusiastic'
32
+ - 'excited'
33
+ - 'fair'
34
+ - 'faithful'
35
+ - 'famous'
36
+ - 'fancy'
37
+ - 'fantastic'
38
+ - 'fine'
39
+ - 'friendly'
40
+ - 'funny'
41
+ - 'gentle'
42
+ - 'gifted'
43
+ - 'glamorous'
44
+ - 'gleaming'
45
+ - 'glorious'
46
+ - 'good'
47
+ - 'gorgeous'
48
+ - 'graceful'
49
+ - 'handsome'
50
+ - 'happy'
51
+ - 'healthy'
52
+ - 'helpful'
53
+ - 'hilarious'
54
+ - 'homely'
55
+ - 'inexpensive'
56
+ - 'innocent'
57
+ - 'inquisitive'
58
+ - 'jolly'
59
+ - 'joyous'
60
+ - 'kind'
61
+ - 'light'
62
+ - 'lively'
63
+ - 'lovely'
64
+ - 'lucky'
65
+ - 'magnificent'
66
+ - 'modern'
67
+ - 'nice'
68
+ - 'open'
69
+ - 'outstanding'
70
+ - 'perfect'
71
+ - 'pleasant'
72
+ - 'powerful'
73
+ - 'precious'
74
+ - 'proud'
75
+ - 'quaint'
76
+ - 'rich'
77
+ - 'shiny'
78
+ - 'smiling'
79
+ - 'sparkling'
80
+ - 'splendid'
81
+ - 'spotless'
82
+ - 'successful'
83
+ - 'super'
84
+ - 'talented'
85
+ - 'tender'
86
+ - 'tasty'
87
+ - 'thankful'
88
+ - 'thoughtful'
89
+ - 'vast'
90
+ - 'victorious'
91
+ - 'vivacious'
92
+ - 'witty'
93
+ - 'zany'
94
+ - 'zealous'
95
+ negative:
96
+ - 'aggressive'
97
+ - 'annoyed'
98
+ - 'anxious'
99
+ - 'arrogant'
100
+ - 'ashamed'
101
+ - 'average'
102
+ - 'awful'
103
+ - 'bad'
104
+ - 'bloody'
105
+ - 'bored'
106
+ - 'careful'
107
+ - 'cautious'
108
+ - 'concerned'
109
+ - 'confused'
110
+ - 'crazy'
111
+ - 'creepy'
112
+ - 'cruel'
113
+ - 'dangerous'
114
+ - 'depressed'
115
+ - 'disturbed'
116
+ - 'envious'
117
+ - 'evil'
118
+ - 'expensive'
119
+ - 'exuberant'
120
+ - 'filthy'
121
+ - 'foolish'
122
+ - 'fragile'
123
+ - 'frail'
124
+ - 'frantic'
125
+ - 'frightened'
126
+ - 'grieving'
127
+ - 'grotesque'
128
+ - 'grumpy'
129
+ - 'helpless'
130
+ - 'horrible'
131
+ - 'ill'
132
+ - 'itchy'
133
+ - 'jealous'
134
+ - 'jittery'
135
+ - 'lazy'
136
+ - 'lonely'
137
+ - 'misty'
138
+ - 'muddy'
139
+ - 'nasty'
140
+ - 'naughty'
141
+ - 'nervous'
142
+ - 'nutty'
143
+ - 'obnoxious'
144
+ - 'odd'
145
+ - 'old-fashioned'
146
+ - 'outrageous'
147
+ - 'panicky'
148
+ - 'poised'
149
+ - 'poor'
150
+ - 'putrid'
151
+ - 'puzzled'
152
+ - 'repulsive'
153
+ - 'scary'
154
+ - 'selfish'
155
+ - 'shy'
156
+ - 'silly'
157
+ - 'sleepy'
158
+ - 'smoggy'
159
+ - 'sore'
160
+ - 'stormy'
161
+ - 'strange'
162
+ - 'stupid'
163
+ - 'terrible'
164
+ - 'thoughtless'
165
+ - 'tired'
166
+ - 'tough'
167
+ - 'troubled'
168
+ - 'ugliest'
169
+ - 'ugly'
170
+ - 'uninterested'
171
+ - 'unsightly'
172
+ - 'upset'
173
+ - 'uptight'
174
+ - 'weary'
175
+ - 'wicked'
176
+ - 'wild'
177
+ - 'worrisome'
178
+ - 'worried'
179
+ - 'wrong'
@@ -64,7 +64,7 @@ en:
64
64
  "We don't know much about them except for they're very ugly, and they're very mobile for blind people.",
65
65
  "And I wonder what possible catastrophe came crashing down from heaven and brought this dashing stranger to tears?"
66
66
  ]
67
- celebrities: [
67
+ actors: [
68
68
  'Sarah Michelle Geller',
69
69
  'Alyson Hannigan',
70
70
  'David Boreanaz',