faker 2.3.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +85 -2
  3. data/README.md +2 -1
  4. data/lib/faker/blockchain/aeternity.rb +70 -0
  5. data/lib/faker/default/app.rb +2 -1
  6. data/lib/faker/default/appliance.rb +18 -0
  7. data/lib/faker/default/avatar.rb +2 -1
  8. data/lib/faker/default/chuck_norris.rb +1 -1
  9. data/lib/faker/default/date.rb +83 -2
  10. data/lib/faker/default/dessert.rb +27 -0
  11. data/lib/faker/default/device.rb +54 -0
  12. data/lib/faker/default/driving_licence.rb +2 -2
  13. data/lib/faker/default/electrical_components.rb +27 -0
  14. data/lib/faker/default/greek_philosophers.rb +18 -0
  15. data/lib/faker/default/industry_segments.rb +36 -0
  16. data/lib/faker/default/internet.rb +4 -1
  17. data/lib/faker/default/marketing.rb +9 -0
  18. data/lib/faker/default/military.rb +45 -0
  19. data/lib/faker/default/nation.rb +48 -5
  20. data/lib/faker/default/nato_phonetic_alphabet.rb +9 -0
  21. data/lib/faker/default/number.rb +124 -0
  22. data/lib/faker/default/restaurant.rb +54 -2
  23. data/lib/faker/default/science.rb +27 -0
  24. data/lib/faker/default/subscription.rb +45 -0
  25. data/lib/faker/default/superhero.rb +45 -0
  26. data/lib/faker/default/time.rb +85 -8
  27. data/lib/faker/default/world_cup.rb +50 -0
  28. data/lib/faker/games/dota.rb +47 -0
  29. data/lib/faker/games/heroes.rb +27 -0
  30. data/lib/faker/games/heroes_of_the_storm.rb +36 -0
  31. data/lib/faker/games/league_of_legends.rb +54 -0
  32. data/lib/faker/games/myst.rb +45 -0
  33. data/lib/faker/games/pokemon.rb +27 -0
  34. data/lib/faker/games/sonic_the_hedgehog.rb +27 -0
  35. data/lib/faker/games/witcher.rb +54 -0
  36. data/lib/faker/games/world_of_warcraft.rb +18 -0
  37. data/lib/faker/games/zelda.rb +1 -1
  38. data/lib/faker/japanese_media/dragon_ball.rb +9 -0
  39. data/lib/faker/japanese_media/one_piece.rb +54 -0
  40. data/lib/faker/japanese_media/sword_art_online.rb +36 -0
  41. data/lib/faker/movies/back_to_the_future.rb +28 -0
  42. data/lib/faker/movies/ghostbusters.rb +28 -0
  43. data/lib/faker/movies/harry_potter.rb +54 -0
  44. data/lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb +69 -0
  45. data/lib/faker/movies/hobbit.rb +37 -0
  46. data/lib/faker/movies/lebowski.rb +27 -0
  47. data/lib/faker/movies/lord_of_the_rings.rb +28 -0
  48. data/lib/faker/movies/movie.rb +9 -0
  49. data/lib/faker/movies/princess_bride.rb +19 -0
  50. data/lib/faker/movies/star_wars.rb +94 -0
  51. data/lib/faker/movies/v_for_vendetta.rb +29 -0
  52. data/lib/faker/music/grateful_dead.rb +18 -0
  53. data/lib/faker/music/phish.rb +9 -0
  54. data/lib/faker/music/rock_band.rb +9 -0
  55. data/lib/faker/music/umphreys_mcgee.rb +9 -0
  56. data/lib/faker/sports/basketball.rb +36 -0
  57. data/lib/faker/sports/football.rb +45 -0
  58. data/lib/faker/tv_shows/aqua_teen_hunger_force.rb +9 -0
  59. data/lib/faker/tv_shows/bojack_horseman.rb +28 -0
  60. data/lib/faker/tv_shows/buffy.rb +45 -0
  61. data/lib/faker/tv_shows/community.rb +19 -0
  62. data/lib/faker/tv_shows/dr_who.rb +78 -2
  63. data/lib/faker/tv_shows/dumb_and_dumber.rb +28 -0
  64. data/lib/faker/tv_shows/family_guy.rb +28 -0
  65. data/lib/faker/tv_shows/friends.rb +27 -0
  66. data/lib/faker/tv_shows/game_of_thrones.rb +46 -0
  67. data/lib/faker/tv_shows/hey_arnold.rb +27 -0
  68. data/lib/faker/tv_shows/how_i_met_your_mother.rb +37 -0
  69. data/lib/faker/tv_shows/michael_scott.rb +13 -0
  70. data/lib/faker/tv_shows/new_girl.rb +19 -0
  71. data/lib/faker/tv_shows/parks_and_rec.rb +18 -0
  72. data/lib/faker/tv_shows/rick_and_morty.rb +28 -0
  73. data/lib/faker/tv_shows/ru_paul.rb +18 -0
  74. data/lib/faker/tv_shows/seinfeld.rb +28 -0
  75. data/lib/faker/tv_shows/silicon_valley.rb +75 -0
  76. data/lib/faker/tv_shows/simpsons.rb +28 -0
  77. data/lib/faker/tv_shows/south_park.rb +19 -0
  78. data/lib/faker/tv_shows/star_trek.rb +36 -0
  79. data/lib/faker/tv_shows/stargate.rb +28 -0
  80. data/lib/faker/tv_shows/stranger_things.rb +19 -0
  81. data/lib/faker/tv_shows/the_expanse.rb +36 -0
  82. data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +28 -0
  83. data/lib/faker/tv_shows/the_it_crowd.rb +37 -0
  84. data/lib/faker/tv_shows/the_thick_of_it.rb +28 -0
  85. data/lib/faker/tv_shows/twin_peaks.rb +28 -0
  86. data/lib/faker/tv_shows/venture_bros.rb +38 -0
  87. data/lib/faker/version.rb +1 -1
  88. data/lib/locales/en-TH.yml +360 -0
  89. data/lib/locales/en/color.yml +1 -1
  90. data/lib/locales/en/dr_who.yml +1 -1
  91. data/lib/locales/en/science.yml +1 -1
  92. data/lib/locales/ja.yml +7 -8
  93. data/lib/locales/th.yml +380 -0
  94. metadata +26 -17
@@ -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
@@ -6,14 +6,42 @@ module Faker
6
6
  flexible :the_thick_of_it
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from The Thick of It.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::TheThickOfIt.character #=> "Nicola Murray"
16
+ #
17
+ # @faker.version 1.8.5
9
18
  def character
10
19
  fetch('the_thick_of_it.characters')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a department from The Thick of It.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::TheThickOfIt.department #=> "Shadow Cabinet"
29
+ #
30
+ # @faker.version 1.8.5
13
31
  def department
14
32
  fetch('the_thick_of_it.departments')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces a position from The Thick of It.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::TheThickOfIt.position
42
+ # #=> "Director of Communications"
43
+ #
44
+ # @faker.version 1.8.5
17
45
  def position
18
46
  fetch('the_thick_of_it.positions')
19
47
  end
@@ -6,14 +6,42 @@ module Faker
6
6
  flexible :twin_peaks
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from Twin Peaks.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::TwinPeaks.character #=> "Dale Cooper"
16
+ #
17
+ # @faker.version 1.7.0
9
18
  def character
10
19
  fetch('twin_peaks.characters')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces a location from Twin Peaks.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::TwinPeaks.location #=> "Black Lodge"
29
+ #
30
+ # @faker.version 1.7.0
13
31
  def location
14
32
  fetch('twin_peaks.locations')
15
33
  end
16
34
 
35
+ ##
36
+ # Produces a quote from Twin Peaks.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::TwinPeaks.quote
42
+ # #=> "The owls are not what they seem."
43
+ #
44
+ # @faker.version 1.7.0
17
45
  def quote
18
46
  fetch('twin_peaks.quotes')
19
47
  end
@@ -6,18 +6,56 @@ module Faker
6
6
  flexible :venture_bros
7
7
 
8
8
  class << self
9
+ ##
10
+ # Produces a character from The Venture Bros.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::VentureBros.character #=> "Scaramantula"
16
+ #
17
+ # @faker.version 1.8.3
9
18
  def character
10
19
  fetch('venture_bros.character')
11
20
  end
12
21
 
22
+ ##
23
+ # Produces an organization from The Venture Bros.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::VentureBros.organization
29
+ # #=> "Guild of Calamitous Intent"
30
+ #
31
+ # @faker.version 1.8.3
13
32
  def organization
14
33
  fetch('venture_bros.organization')
15
34
  end
16
35
 
36
+ ##
37
+ # Produces a vehicle from The Venture Bros.
38
+ #
39
+ # @return [String]
40
+ #
41
+ # @example
42
+ # Faker::TvShows::VentureBros.vehicle #=> "Monarchmobile"
43
+ #
44
+ # @faker.version 1.8.3
17
45
  def vehicle
18
46
  fetch('venture_bros.vehicle')
19
47
  end
20
48
 
49
+ ##
50
+ # Produces a quote from The Venture Bros.
51
+ #
52
+ # @return [String]
53
+ #
54
+ # @example
55
+ # Faker::TvShows::VentureBros.quote
56
+ # #=> "Revenge, like gazpacho soup, is best served cold, precise, and merciless."
57
+ #
58
+ # @faker.version 1.8.3
21
59
  def quote
22
60
  fetch('venture_bros.quote')
23
61
  end