faker 2.2.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +131 -15
  3. data/README.md +2 -2
  4. data/lib/faker.rb +34 -0
  5. data/lib/faker/blockchain/aeternity.rb +70 -0
  6. data/lib/faker/blockchain/bitcoin.rb +26 -0
  7. data/lib/faker/blockchain/ethereum.rb +10 -0
  8. data/lib/faker/blockchain/tezos.rb +62 -6
  9. data/lib/faker/books/book.rb +36 -0
  10. data/lib/faker/books/culture_series.rb +49 -0
  11. data/lib/faker/books/dune.rb +60 -9
  12. data/lib/faker/books/lovecraft.rb +189 -33
  13. data/lib/faker/creature/animal.rb +9 -0
  14. data/lib/faker/creature/cat.rb +27 -0
  15. data/lib/faker/creature/dog.rb +72 -0
  16. data/lib/faker/creature/horse.rb +18 -0
  17. data/lib/faker/default/address.rb +10 -15
  18. data/lib/faker/default/alphanumeric.rb +29 -18
  19. data/lib/faker/default/app.rb +50 -11
  20. data/lib/faker/default/appliance.rb +18 -0
  21. data/lib/faker/default/artist.rb +9 -0
  22. data/lib/faker/default/avatar.rb +38 -19
  23. data/lib/faker/default/bank.rb +4 -6
  24. data/lib/faker/default/boolean.rb +14 -4
  25. data/lib/faker/default/chile_rut.rb +6 -14
  26. data/lib/faker/default/chuck_norris.rb +1 -1
  27. data/lib/faker/default/code.rb +7 -13
  28. data/lib/faker/default/commerce.rb +8 -17
  29. data/lib/faker/default/company.rb +4 -6
  30. data/lib/faker/default/crypto_coin.rb +6 -9
  31. data/lib/faker/default/date.rb +76 -30
  32. data/lib/faker/default/demographic.rb +2 -3
  33. data/lib/faker/default/dessert.rb +27 -0
  34. data/lib/faker/default/device.rb +54 -0
  35. data/lib/faker/default/driving_licence.rb +5 -15
  36. data/lib/faker/default/electrical_components.rb +27 -0
  37. data/lib/faker/default/file.rb +9 -26
  38. data/lib/faker/default/fillmurray.rb +4 -11
  39. data/lib/faker/default/finance.rb +2 -3
  40. data/lib/faker/default/gender.rb +18 -0
  41. data/lib/faker/default/greek_philosophers.rb +18 -0
  42. data/lib/faker/default/hacker.rb +59 -1
  43. data/lib/faker/default/hipster.rb +21 -54
  44. data/lib/faker/default/house.rb +18 -0
  45. data/lib/faker/default/id_number.rb +5 -7
  46. data/lib/faker/default/industry_segments.rb +36 -0
  47. data/lib/faker/default/internet.rb +49 -76
  48. data/lib/faker/default/invoice.rb +7 -13
  49. data/lib/faker/default/json.rb +9 -16
  50. data/lib/faker/default/lorem.rb +38 -77
  51. data/lib/faker/default/lorem_flickr.rb +17 -48
  52. data/lib/faker/default/lorem_pixel.rb +7 -23
  53. data/lib/faker/default/markdown.rb +3 -7
  54. data/lib/faker/default/marketing.rb +9 -0
  55. data/lib/faker/default/measurement.rb +16 -24
  56. data/lib/faker/default/military.rb +45 -0
  57. data/lib/faker/default/name.rb +2 -3
  58. data/lib/faker/default/nation.rb +48 -5
  59. data/lib/faker/default/nato_phonetic_alphabet.rb +9 -0
  60. data/lib/faker/default/nhs.rb +2 -3
  61. data/lib/faker/default/number.rb +150 -51
  62. data/lib/faker/default/omniauth.rb +67 -63
  63. data/lib/faker/default/phone_number.rb +2 -3
  64. data/lib/faker/default/placeholdit.rb +6 -19
  65. data/lib/faker/default/programming_language.rb +18 -0
  66. data/lib/faker/default/relationship.rb +2 -3
  67. data/lib/faker/default/restaurant.rb +54 -2
  68. data/lib/faker/default/science.rb +27 -0
  69. data/lib/faker/default/source.rb +51 -14
  70. data/lib/faker/default/string.rb +2 -3
  71. data/lib/faker/default/stripe.rb +8 -12
  72. data/lib/faker/default/subscription.rb +45 -0
  73. data/lib/faker/default/superhero.rb +45 -0
  74. data/lib/faker/default/time.rb +102 -56
  75. data/lib/faker/default/twitter.rb +23 -32
  76. data/lib/faker/default/types.rb +12 -23
  77. data/lib/faker/default/vehicle.rb +8 -14
  78. data/lib/faker/default/world_cup.rb +5 -10
  79. data/lib/faker/games/dota.rb +49 -3
  80. data/lib/faker/games/elder_scrolls.rb +72 -0
  81. data/lib/faker/games/fallout.rb +37 -0
  82. data/lib/faker/games/game.rb +27 -0
  83. data/lib/faker/games/half_life.rb +27 -0
  84. data/lib/faker/games/heroes.rb +27 -0
  85. data/lib/faker/games/heroes_of_the_storm.rb +36 -0
  86. data/lib/faker/games/league_of_legends.rb +54 -0
  87. data/lib/faker/games/myst.rb +45 -0
  88. data/lib/faker/games/overwatch.rb +27 -0
  89. data/lib/faker/games/pokemon.rb +27 -0
  90. data/lib/faker/games/sonic_the_hedgehog.rb +27 -0
  91. data/lib/faker/games/super_smash_bros.rb +18 -0
  92. data/lib/faker/games/witcher.rb +54 -0
  93. data/lib/faker/games/world_of_warcraft.rb +18 -0
  94. data/lib/faker/games/zelda.rb +37 -1
  95. data/lib/faker/japanese_media/dragon_ball.rb +9 -0
  96. data/lib/faker/japanese_media/one_piece.rb +54 -0
  97. data/lib/faker/japanese_media/sword_art_online.rb +36 -0
  98. data/lib/faker/movies/back_to_the_future.rb +28 -0
  99. data/lib/faker/movies/ghostbusters.rb +28 -0
  100. data/lib/faker/movies/harry_potter.rb +54 -0
  101. data/lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb +69 -0
  102. data/lib/faker/movies/hobbit.rb +37 -0
  103. data/lib/faker/movies/lebowski.rb +27 -0
  104. data/lib/faker/movies/lord_of_the_rings.rb +28 -0
  105. data/lib/faker/movies/movie.rb +9 -0
  106. data/lib/faker/movies/princess_bride.rb +19 -0
  107. data/lib/faker/movies/star_wars.rb +97 -6
  108. data/lib/faker/movies/v_for_vendetta.rb +29 -0
  109. data/lib/faker/music/grateful_dead.rb +18 -0
  110. data/lib/faker/music/phish.rb +9 -0
  111. data/lib/faker/music/rock_band.rb +9 -0
  112. data/lib/faker/music/umphreys_mcgee.rb +9 -0
  113. data/lib/faker/sports/basketball.rb +36 -0
  114. data/lib/faker/sports/football.rb +45 -0
  115. data/lib/faker/tv_shows/aqua_teen_hunger_force.rb +9 -0
  116. data/lib/faker/tv_shows/bojack_horseman.rb +28 -0
  117. data/lib/faker/tv_shows/breaking_bad.rb +18 -0
  118. data/lib/faker/tv_shows/buffy.rb +45 -0
  119. data/lib/faker/tv_shows/community.rb +19 -0
  120. data/lib/faker/tv_shows/dr_who.rb +78 -2
  121. data/lib/faker/tv_shows/dumb_and_dumber.rb +28 -0
  122. data/lib/faker/tv_shows/family_guy.rb +28 -0
  123. data/lib/faker/tv_shows/friends.rb +27 -0
  124. data/lib/faker/tv_shows/game_of_thrones.rb +46 -0
  125. data/lib/faker/tv_shows/hey_arnold.rb +27 -0
  126. data/lib/faker/tv_shows/how_i_met_your_mother.rb +37 -0
  127. data/lib/faker/tv_shows/michael_scott.rb +13 -0
  128. data/lib/faker/tv_shows/new_girl.rb +19 -0
  129. data/lib/faker/tv_shows/parks_and_rec.rb +18 -0
  130. data/lib/faker/tv_shows/rick_and_morty.rb +28 -0
  131. data/lib/faker/tv_shows/ru_paul.rb +18 -0
  132. data/lib/faker/tv_shows/seinfeld.rb +28 -0
  133. data/lib/faker/tv_shows/silicon_valley.rb +75 -0
  134. data/lib/faker/tv_shows/simpsons.rb +28 -0
  135. data/lib/faker/tv_shows/south_park.rb +19 -0
  136. data/lib/faker/tv_shows/star_trek.rb +36 -0
  137. data/lib/faker/tv_shows/stargate.rb +28 -0
  138. data/lib/faker/tv_shows/stranger_things.rb +19 -0
  139. data/lib/faker/tv_shows/the_expanse.rb +36 -0
  140. data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +28 -0
  141. data/lib/faker/tv_shows/the_it_crowd.rb +37 -0
  142. data/lib/faker/tv_shows/the_thick_of_it.rb +28 -0
  143. data/lib/faker/tv_shows/twin_peaks.rb +28 -0
  144. data/lib/faker/tv_shows/venture_bros.rb +38 -0
  145. data/lib/faker/version.rb +1 -1
  146. data/lib/locales/en-CA.yml +1 -1
  147. data/lib/locales/en-TH.yml +360 -0
  148. data/lib/locales/en/color.yml +1 -1
  149. data/lib/locales/en/dr_who.yml +1 -1
  150. data/lib/locales/en/science.yml +1 -1
  151. data/lib/locales/ja.yml +8 -9
  152. data/lib/locales/th.yml +380 -0
  153. metadata +33 -14
@@ -6,34 +6,109 @@ module Faker
6
6
  flexible :silicon_valley
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from Silicon Valley.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::SiliconValley.character #=> "Jian Yang"
16
+ #
17
+ # @faker.version 1.8.5
9
18
  def character
10
19
  fetch('silicon_valley.characters')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a company from Silicon Valley.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::SiliconValley.company #=> "Bachmanity"
29
+ #
30
+ # @faker.version 1.8.5
13
31
  def company
14
32
  fetch('silicon_valley.companies')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces a quote from Silicon Valley.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::SiliconValley.quote
42
+ # #=> "I don't want to live in a world where someone else is making the world a better place better than we are."
43
+ #
44
+ # @faker.version 1.8.5
17
45
  def quote
18
46
  fetch('silicon_valley.quotes')
19
47
  end
20
48
 
49
+ ##
50
+ # Produces an app from Silicon Valley.
51
+ #
52
+ # @return [String]
53
+ #
54
+ # @example
55
+ # Faker::TvShows::SiliconValley.app #=> "Nip Alert"
56
+ #
57
+ # @faker.version 1.8.5
21
58
  def app
22
59
  fetch('silicon_valley.apps')
23
60
  end
24
61
 
62
+ ##
63
+ # Produces an invention from Silicon Valley.
64
+ #
65
+ # @return [String]
66
+ #
67
+ # @example
68
+ # Faker::TvShows::SiliconValley.invention
69
+ # #=> "Tres Comas Tequila"
70
+ #
71
+ # @faker.version 1.8.5
25
72
  def invention
26
73
  fetch('silicon_valley.inventions')
27
74
  end
28
75
 
76
+ ##
77
+ # Produces a motto from Silicon Valley.
78
+ #
79
+ # @return [String]
80
+ #
81
+ # @example
82
+ # Faker::TvShows::SiliconValley.motto
83
+ # #=> "Our products are products, producing unrivaled results"
84
+ #
85
+ # @faker.version 1.8.5
29
86
  def motto
30
87
  fetch('silicon_valley.mottos')
31
88
  end
32
89
 
90
+ ##
91
+ # Produces a URL from Silicon Valley.
92
+ #
93
+ # @return [String]
94
+ #
95
+ # @example
96
+ # Faker::TvShows::SiliconValley.url #=> "http://www.piedpiper.com"
97
+ #
98
+ # @faker.version 1.8.5
33
99
  def url
34
100
  fetch('silicon_valley.urls')
35
101
  end
36
102
 
103
+ ##
104
+ # Produces an email address from Silicon Valley.
105
+ #
106
+ # @return [String]
107
+ #
108
+ # @example
109
+ # Faker::TvShows::SiliconValley.email #=> "richard@piedpiper.test"
110
+ #
111
+ # @faker.version 1.9.0
37
112
  def email
38
113
  fetch('silicon_valley.email')
39
114
  end
@@ -6,14 +6,42 @@ module Faker
6
6
  flexible :simpsons
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from The Simpsons.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::Simpsons.character #=> "Charles Montgomery Burns"
16
+ #
17
+ # @faker.version 1.8.0
9
18
  def character
10
19
  fetch('simpsons.characters')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a location from The Simpsons.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::Simpsons.location #=> "Moe's Tavern"
29
+ #
30
+ # @faker.version 1.8.0
13
31
  def location
14
32
  fetch('simpsons.locations')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces a quote from The Simpsons.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::Simpsons.quote
42
+ # #=> "It takes two to lie: one to lie and one to listen."
43
+ #
44
+ # @faker.version 1.8.0
17
45
  def quote
18
46
  fetch('simpsons.quotes')
19
47
  end
@@ -6,10 +6,29 @@ module Faker
6
6
  flexible :south_park
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from South Park.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::SouthPark.character #=> "Mr. Garrison"
16
+ #
17
+ # @faker.version 1.9.2
9
18
  def character
10
19
  fetch('south_park.characters')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a quote from South Park.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::SouthPark.quote
29
+ # #=> "I'm just getting a little cancer Stan."
30
+ #
31
+ # @faker.version 1.9.2
13
32
  def quote
14
33
  fetch('south_park.quotes')
15
34
  end
@@ -6,18 +6,54 @@ module Faker
6
6
  flexible :star_trek
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from Star Trek.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::StarTrek.character #=> "Spock"
16
+ #
17
+ # @faker.version 1.8.0
9
18
  def character
10
19
  fetch('star_trek.character')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a location from Star Trek.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::StarTrek.location #=> "Cardassia"
29
+ #
30
+ # @faker.version 1.8.0
13
31
  def location
14
32
  fetch('star_trek.location')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces a species from Star Trek.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::StarTrek.specie #=> "Ferengi"
42
+ #
43
+ # @faker.version 1.8.0
17
44
  def specie
18
45
  fetch('star_trek.specie')
19
46
  end
20
47
 
48
+ ##
49
+ # Produces a villain from Star Trek.
50
+ #
51
+ # @return [String]
52
+ #
53
+ # @example
54
+ # Faker::TvShows::StarTrek.villain #=> "Khan Noonien Singh"
55
+ #
56
+ # @faker.version 1.8.0
21
57
  def villain
22
58
  fetch('star_trek.villain')
23
59
  end
@@ -6,14 +6,42 @@ module Faker
6
6
  flexible :stargate
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from Stargate.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::Stargate.character #=> "Jack O'Neill"
16
+ #
17
+ # @faker.version 1.8.5
9
18
  def character
10
19
  fetch('stargate.characters')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a planet from Stargate.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::Stargate.planet #=> "Abydos"
29
+ #
30
+ # @faker.version 1.8.5
13
31
  def planet
14
32
  fetch('stargate.planets')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces a quote from Stargate.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::Stargate.quote
42
+ # #=> "General, request permission to beat the crap out of this man."
43
+ #
44
+ # @faker.version 1.8.5
17
45
  def quote
18
46
  fetch('stargate.quotes')
19
47
  end
@@ -6,10 +6,29 @@ module Faker
6
6
  flexible :stranger_things
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from Stranger Things.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::StrangerThings.character #=> "six"
16
+ #
17
+ # @faker.version 1.9.0
9
18
  def quote
10
19
  fetch('stranger_things.quote')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a quote from Stranger Things.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::StrangerThings.quote
29
+ # #=> "Friends don't lie."
30
+ #
31
+ # @faker.version 1.9.0
13
32
  def character
14
33
  fetch('stranger_things.character')
15
34
  end
@@ -6,18 +6,54 @@ module Faker
6
6
  flexible :the_expanse
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from The Expanse.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::TheExpanse.character #=> "Jim Holden"
16
+ #
17
+ # @faker.version 1.9.2
9
18
  def character
10
19
  fetch('the_expanse.characters')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a quote from The Expanse.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::TheExpanse.quote #=> "I am that guy."
29
+ #
30
+ # @faker.version 1.9.2
13
31
  def quote
14
32
  fetch('the_expanse.quotes')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces a location from The Expanse.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::TheExpanse.location #=> "Ganymede"
42
+ #
43
+ # @faker.version 1.9.2
17
44
  def location
18
45
  fetch('the_expanse.locations')
19
46
  end
20
47
 
48
+ ##
49
+ # Produces a ship from The Expanse.
50
+ #
51
+ # @return [String]
52
+ #
53
+ # @example
54
+ # Faker::TvShows::TheExpanse.ship #=> "Nauvoo"
55
+ #
56
+ # @faker.version 1.9.2
21
57
  def ship
22
58
  fetch('the_expanse.ships')
23
59
  end
@@ -6,14 +6,42 @@ module Faker
6
6
  flexible :the_fresh_prince_of_bel_air
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from The Fresh Prince of Bel-Air.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::TheFreshPrinceOfBelAir.character #=> "Will Smith"
16
+ #
17
+ # @faker.version 1.8.3
9
18
  def character
10
19
  fetch('the_fresh_prince_of_bel_air.characters')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a celebrity from The Fresh Prince of Bel-Air.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::TheFreshPrinceOfBelAir.celebrity #=> "Quincy Jones"
29
+ #
30
+ # @faker.version 1.8.3
13
31
  def celebrity
14
32
  fetch('the_fresh_prince_of_bel_air.celebrities')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces a quote from The Fresh Prince of Bel-Air.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::TheFreshPrinceOfBelAir.quote
42
+ # #=> "Girl, you look so good, I would marry your brother just to get in your family."
43
+ #
44
+ # @faker.version 1.8.3
17
45
  def quote
18
46
  fetch('the_fresh_prince_of_bel_air.quotes')
19
47
  end
@@ -6,18 +6,55 @@ module Faker
6
6
  flexible :the_it_crowd
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces an actor from The IT Crowd.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::TheITCrowd.actor #=> "Chris O'Dowd"
16
+ #
17
+ # @faker.version 1.9.0
9
18
  def actor
10
19
  fetch('the_it_crowd.actors')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a character from The IT Crowd.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::TheITCrowd.character #=> "Roy Trenneman"
29
+ #
30
+ # @faker.version 1.9.0
13
31
  def character
14
32
  fetch('the_it_crowd.characters')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces an email from The IT Crowd.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::TheITCrowd.email #=> "roy.trenneman@reynholm.test"
42
+ #
43
+ # @faker.version 1.9.0
17
44
  def email
18
45
  fetch('the_it_crowd.emails')
19
46
  end
20
47
 
48
+ ##
49
+ # Produces a quote from The IT Crowd.
50
+ #
51
+ # @return [String]
52
+ #
53
+ # @example
54
+ # Faker::TvShows::TheITCrowd.quote
55
+ # #=> "Hello, IT. Have you tried turning it off and on again?"
56
+ #
57
+ # @faker.version 1.9.0
21
58
  def quote
22
59
  fetch('the_it_crowd.quotes')
23
60
  end