faker 2.11.0 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +160 -0
  3. data/README.md +11 -2
  4. data/lib/faker.rb +16 -10
  5. data/lib/faker/default/address.rb +31 -1
  6. data/lib/faker/default/bank.rb +79 -0
  7. data/lib/faker/default/blood.rb +48 -0
  8. data/lib/faker/default/business.rb +1 -1
  9. data/lib/faker/default/chile_rut.rb +44 -1
  10. data/lib/faker/default/commerce.rb +73 -10
  11. data/lib/faker/default/company.rb +40 -3
  12. data/lib/faker/default/compass.rb +135 -0
  13. data/lib/faker/default/computer.rb +63 -0
  14. data/lib/faker/default/construction.rb +54 -0
  15. data/lib/faker/default/cosmere.rb +90 -0
  16. data/lib/faker/default/crypto_coin.rb +45 -0
  17. data/lib/faker/default/date.rb +16 -12
  18. data/lib/faker/default/driving_licence.rb +42 -0
  19. data/lib/faker/default/file.rb +49 -0
  20. data/lib/faker/default/finance.rb +24 -0
  21. data/lib/faker/default/gender.rb +1 -1
  22. data/lib/faker/default/hipster.rb +94 -0
  23. data/lib/faker/default/id_number.rb +86 -0
  24. data/lib/faker/default/internet.rb +35 -7
  25. data/lib/faker/default/internet_http.rb +48 -0
  26. data/lib/faker/default/invoice.rb +32 -5
  27. data/lib/faker/default/json.rb +55 -0
  28. data/lib/faker/default/lorem_flickr.rb +65 -0
  29. data/lib/faker/default/lorem_pixel.rb +22 -0
  30. data/lib/faker/default/markdown.rb +89 -0
  31. data/lib/faker/default/measurement.rb +90 -0
  32. data/lib/faker/default/name.rb +98 -0
  33. data/lib/faker/default/nhs.rb +19 -0
  34. data/lib/faker/default/number.rb +5 -7
  35. data/lib/faker/default/omniauth.rb +58 -5
  36. data/lib/faker/default/phone_number.rb +88 -5
  37. data/lib/faker/default/placeholdit.rb +21 -0
  38. data/lib/faker/default/slack_emoji.rb +81 -0
  39. data/lib/faker/default/south_africa.rb +90 -0
  40. data/lib/faker/default/string.rb +19 -3
  41. data/lib/faker/default/stripe.rb +61 -0
  42. data/lib/faker/default/twitter.rb +35 -0
  43. data/lib/faker/default/types.rb +80 -0
  44. data/lib/faker/default/university.rb +45 -0
  45. data/lib/faker/default/vehicle.rb +184 -4
  46. data/lib/faker/default/verb.rb +45 -0
  47. data/lib/faker/default/world_cup.rb +4 -4
  48. data/lib/faker/games/control.rb +113 -0
  49. data/lib/faker/games/dnd.rb +61 -0
  50. data/lib/faker/games/heroes_of_the_storm.rb +16 -5
  51. data/lib/faker/games/minecraft.rb +48 -0
  52. data/lib/faker/games/warhammer_fantasy.rb +74 -0
  53. data/lib/faker/movies/departed.rb +49 -0
  54. data/lib/faker/movies/movie.rb +13 -0
  55. data/lib/faker/music/pearl_jam.rb +50 -0
  56. data/lib/faker/music/phish.rb +27 -1
  57. data/lib/faker/music/prince.rb +64 -0
  58. data/lib/faker/music/rush.rb +37 -0
  59. data/lib/faker/music/show.rb +49 -0
  60. data/lib/faker/quotes/quote.rb +54 -1
  61. data/lib/faker/quotes/shakespeare.rb +36 -0
  62. data/lib/faker/tv_shows/aqua_teen_hunger_force.rb +13 -0
  63. data/lib/faker/tv_shows/big_bang_theory.rb +37 -0
  64. data/lib/faker/tv_shows/dr_who.rb +1 -1
  65. data/lib/faker/tv_shows/futurama.rb +65 -0
  66. data/lib/faker/tv_shows/simpsons.rb +14 -0
  67. data/lib/faker/tv_shows/suits.rb +37 -0
  68. data/lib/faker/version.rb +1 -1
  69. data/lib/helpers/base58.rb +1 -1
  70. data/lib/helpers/char.rb +22 -27
  71. data/lib/locales/de-CH.yml +1693 -0
  72. data/lib/locales/en-AU.yml +44 -10
  73. data/lib/locales/en-CA.yml +2 -0
  74. data/lib/locales/en-US.yml +29 -3
  75. data/lib/locales/en/address.yml +2 -0
  76. data/lib/locales/en/aqua_teen_hunger_force.yml +33 -1
  77. data/lib/locales/en/bank.yml +1 -1
  78. data/lib/locales/en/big_bang_theory.yml +38 -0
  79. data/lib/locales/en/blood.yml +13 -0
  80. data/lib/locales/en/computer.yml +36 -0
  81. data/lib/locales/en/control.yml +247 -0
  82. data/lib/locales/en/departed.yml +50 -0
  83. data/lib/locales/en/dnd.yml +54 -0
  84. data/lib/locales/en/futurama.yml +344 -0
  85. data/lib/locales/en/heroes_of_the_storm.yml +2 -2
  86. data/lib/locales/en/house.yml +1 -1
  87. data/lib/locales/en/minecraft.yml +390 -0
  88. data/lib/locales/en/movie.yml +192 -1
  89. data/lib/locales/en/name.yml +3 -2
  90. data/lib/locales/en/one_piece.yml +2 -2
  91. data/lib/locales/en/pearl_jam.yml +213 -0
  92. data/lib/locales/en/phish.yml +392 -1
  93. data/lib/locales/en/prince.yml +227 -0
  94. data/lib/locales/en/rush.yml +32 -0
  95. data/lib/locales/en/show.yml +597 -0
  96. data/lib/locales/en/simpsons.yml +668 -0
  97. data/lib/locales/en/star_wars.yml +568 -220
  98. data/lib/locales/en/suits.yml +45 -0
  99. data/lib/locales/en/warhammer_fantasy.yml +582 -0
  100. data/lib/locales/fr-CA.yml +2 -0
  101. data/lib/locales/ko.yml +82 -0
  102. data/lib/locales/pt-BR.yml +1 -0
  103. metadata +46 -17
@@ -4,6 +4,32 @@ module Faker
4
4
  class Music
5
5
  class Phish < Base
6
6
  class << self
7
+ ##
8
+ # Produces the name of a album by Phish.
9
+ #
10
+ # @return [String]
11
+ #
12
+ # @example
13
+ # Faker::Music::Phish.album #=> "Fuego"
14
+ #
15
+ # @faker.version 2.13.0
16
+ def album
17
+ fetch('phish.albums')
18
+ end
19
+
20
+ ##
21
+ # Produces the name of a musician in Phish.
22
+ #
23
+ # @return [String]
24
+ #
25
+ # @example
26
+ # Faker::Music::Phish.musician #=> "Trey Anastasio"
27
+ #
28
+ # @faker.version 2.13.0
29
+ def musician
30
+ fetch('phish.musicians')
31
+ end
32
+
7
33
  ##
8
34
  # Produces the name of a song by Phish.
9
35
  #
@@ -14,7 +40,7 @@ module Faker
14
40
  #
15
41
  # @faker.version 1.9.2
16
42
  def song
17
- fetch('phish.song')
43
+ fetch('phish.songs')
18
44
  end
19
45
  end
20
46
  end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class Music
5
+ class Prince < Base
6
+ class << self
7
+ ##
8
+ # Produces a random Prince song.
9
+ #
10
+ # @return [String]
11
+ #
12
+ # @example
13
+ # Faker::Music::Prince.song #=> "Raspberry Beret"
14
+ # Faker::Music::Prince.song #=> "Starfish And Coffee"
15
+ #
16
+ # @faker.version 2.13.0
17
+ def song
18
+ fetch('prince.song')
19
+ end
20
+
21
+ ##
22
+ # Produces a random Prince song lyric.
23
+ #
24
+ # @return [String]
25
+ #
26
+ # @example
27
+ # Faker::Music::Prince.lyric #=> "Dearly beloved, we are gathered here today to get through this thing called life."
28
+ # Faker::Music::Prince.lyric #=> "You were so hard to find, the beautiful ones, they hurt you every time."
29
+ #
30
+ # @faker.version 2.13.0
31
+ def lyric
32
+ fetch('prince.lyric')
33
+ end
34
+
35
+ ##
36
+ # Produces a random Prince album.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::Music::Prince.album #=> "The Gold Experience"
42
+ # Faker::Music::Prince.album #=> "Purple Rain"
43
+ #
44
+ # @faker.version 2.13.0
45
+ def album
46
+ fetch('prince.album')
47
+ end
48
+
49
+ ##
50
+ # Produces a random Prince-associated band.
51
+ #
52
+ # @return [String]
53
+ #
54
+ # @example
55
+ # Faker::Music::Prince.band #=> "The New Power Generation"
56
+ #
57
+ # @faker.version 2.13.0
58
+ def band
59
+ fetch('prince.band')
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'music'
4
+
5
+ module Faker
6
+ class Music
7
+ class Rush < Base
8
+ class << self
9
+ ##
10
+ # Produces the name of a member of Rush
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::Music::Rush.player #=> "Geddy Lee"
16
+ #
17
+ # @faker.version 2.13.0
18
+ def player
19
+ fetch('rush.players')
20
+ end
21
+
22
+ ##
23
+ # Produces the name of an album by Rush
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::Music::Rush.album #=> "Hold Your Fire"
29
+ #
30
+ # @faker.version 2.13.0
31
+ def album
32
+ fetch('rush.albums')
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class Show < Base
5
+ class << self
6
+ ##
7
+ # Produces the name of a musical for an older audience
8
+ #
9
+ # @return [String]
10
+ #
11
+ # @example
12
+ # Faker::Alphanumeric.alpha
13
+ # #=> "West Side Story"
14
+ #
15
+ # @faker.version 2.13.0
16
+ def adult_musical
17
+ fetch('show.adult_musical')
18
+ end
19
+
20
+ ##
21
+ # Produces the name of a musical for a younger audience
22
+ #
23
+ # @return [String]
24
+ #
25
+ # @example
26
+ # Faker::Alphanumeric.alpha
27
+ # #=> "Into the Woods JR."
28
+ #
29
+ # @faker.version 2.13.0
30
+ def kids_musical
31
+ fetch('show.kids_musical')
32
+ end
33
+
34
+ ##
35
+ # Produces the name of a play
36
+ #
37
+ # @return [String]
38
+ #
39
+ # @example
40
+ # Faker::Alphanumeric.alpha
41
+ # #=> "Death of a Salesman"
42
+ #
43
+ # @faker.version 2.13.0
44
+ def play
45
+ fetch('show.play')
46
+ end
47
+ end
48
+ end
49
+ end
@@ -3,27 +3,80 @@
3
3
  module Faker
4
4
  class Quote < Base
5
5
  class << self
6
+ ##
7
+ # Produces a famous last words quote.
8
+ #
9
+ # @return [String]
10
+ #
11
+ # @example
12
+ # Faker::Quote.famous_last_words #=> "My vocabulary did this to me. Your love will let you go on..."
13
+ #
14
+ # @faker.version 1.9.0
6
15
  def famous_last_words
7
16
  fetch('quote.famous_last_words')
8
17
  end
9
18
 
19
+ ##
20
+ # Produces a quote from Matz.
21
+ #
22
+ # @return [String]
23
+ #
24
+ # @example
25
+ # Faker::Quote.matz #=> "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better."
26
+ #
27
+ # @faker.version 1.9.0
10
28
  def matz
11
29
  fetch('quote.matz')
12
30
  end
13
31
 
32
+ ##
33
+ # Produces a quote about the most interesting man in the world.
34
+ #
35
+ # @return [String]
36
+ #
37
+ # @example
38
+ # Faker::Quote.most_interesting_man_in_the_world #=> "He can speak Russian... in French"
39
+ #
40
+ # @faker.version 1.9.0
14
41
  def most_interesting_man_in_the_world
15
42
  fetch('quote.most_interesting_man_in_the_world')
16
43
  end
17
44
 
45
+ ##
46
+ # Produces a Robin quote.
47
+ #
48
+ # @return [String]
49
+ #
50
+ # @example
51
+ # Faker::Quote.robin #=> "Holy Razors Edge"
52
+ #
53
+ # @faker.version 1.9.0
18
54
  def robin
19
55
  fetch('quote.robin')
20
56
  end
21
57
 
58
+ ##
59
+ # Produces a singular siegler quote.
60
+ #
61
+ # @return [String]
62
+ #
63
+ # @example
64
+ # Faker::Quote.singular_siegler #=> "Texas!"
65
+ #
66
+ # @faker.version 1.9.0
22
67
  def singular_siegler
23
68
  fetch('quote.singular_siegler')
24
69
  end
25
70
 
26
- # from: http://morecoolquotes.com/famous-yoda-quotes/
71
+ ##
72
+ # Produces a quote from Yoda.
73
+ #
74
+ # @return [String]
75
+ #
76
+ # @example
77
+ # Faker::Quote.yoda #=> "Use your feelings, Obi-Wan, and find him you will."
78
+ #
79
+ # @faker.version 1.9.0
27
80
  def yoda
28
81
  fetch('quote.yoda')
29
82
  end
@@ -4,18 +4,54 @@ module Faker
4
4
  class Quotes
5
5
  class Shakespeare < Base
6
6
  class << self
7
+ ##
8
+ # Produces a Shakespeare quote from Hamlet.
9
+ #
10
+ # @return [String]
11
+ #
12
+ # @example
13
+ # Faker::Quotes::Shakespeare.hamlet_quote # => "To be, or not to be: that is the question."
14
+ #
15
+ # @faker.version 1.9.2
7
16
  def hamlet_quote
8
17
  sample(hamlet)
9
18
  end
10
19
 
20
+ ##
21
+ # Produces a Shakespeare quote from As You Like It.
22
+ #
23
+ # @return [String]
24
+ #
25
+ # @example
26
+ # Faker::Quotes::Shakespeare.as_you_like_it_quote # => "Can one desire too much of a good thing?."
27
+ #
28
+ # @faker.version 1.9.2
11
29
  def as_you_like_it_quote
12
30
  sample(as_you_like_it)
13
31
  end
14
32
 
33
+ ##
34
+ # Produces a Shakespeare quote from King Richard III.
35
+ #
36
+ # @return [String]
37
+ #
38
+ # @example
39
+ # Faker::Quotes::Shakespeare.king_richard_iii_quote # => "Now is the winter of our discontent."
40
+ #
41
+ # @faker.version 1.9.2
15
42
  def king_richard_iii_quote
16
43
  sample(king_richard_iii)
17
44
  end
18
45
 
46
+ ##
47
+ # Produces a Shakespeare quote from Romeo And Juliet.
48
+ #
49
+ # @return [String]
50
+ #
51
+ # @example
52
+ # Faker::Quotes::Shakespeare.romeo_and_juliet_quote # => "O Romeo, Romeo! wherefore art thou Romeo?."
53
+ #
54
+ # @faker.version 1.9.2
19
55
  def romeo_and_juliet_quote
20
56
  sample(romeo_and_juliet)
21
57
  end
@@ -18,6 +18,19 @@ module Faker
18
18
  def character
19
19
  fetch('aqua_teen_hunger_force.character')
20
20
  end
21
+
22
+ ##
23
+ # Produces a perl of great ATHF wisdom
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::AquaTeenHungerForce.quote #=> "Friendship ain't about trust. Friendship's about nunchucks."
29
+ #
30
+ # @faker.version 2.13.0
31
+ def quote
32
+ fetch('aqua_teen_hunger_force.quote')
33
+ end
21
34
  end
22
35
  end
23
36
  end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class TvShows
5
+ class BigBangTheory < Base
6
+ flexible :big_bang_theory
7
+
8
+ class << self
9
+ ##
10
+ # Produces a character from Big Bang Theory
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::BigBangTheory.character #=> "Sheldon Cooper"
16
+ #
17
+ # @faker.version 2.13.0
18
+ def character
19
+ fetch('big_bang_theory.characters')
20
+ end
21
+
22
+ ##
23
+ # Produces a quote from Bing Bang Theory
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::BigBangTheory.quote #=> "I'm not crazy. My mother had me tested."
29
+ #
30
+ # @faker.version 2.13.0
31
+ def quote
32
+ fetch('big_bang_theory.quotes')
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -79,7 +79,7 @@ module Faker
79
79
  # @example
80
80
  # Faker::TvShows::DrWho.villain #=> "The Master"
81
81
  #
82
- # @faker.version next
82
+ # @faker.version 2.13.0
83
83
  def villain
84
84
  fetch('dr_who.villains')
85
85
  end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Faker
4
+ class TvShows
5
+ class Futurama < Base
6
+ flexible :futurama
7
+
8
+ class << self
9
+ ##
10
+ # Produces a character from Futurama.
11
+ #
12
+ # @return [String]
13
+ #
14
+ # @example
15
+ # Faker::TvShows::Futurama.character #=> "Amy Wong"
16
+ #
17
+ # @faker.version 2.13.0
18
+ def character
19
+ fetch('futurama.characters')
20
+ end
21
+
22
+ ##
23
+ # Produces a location from Futurama.
24
+ #
25
+ # @return [String]
26
+ #
27
+ # @example
28
+ # Faker::TvShows::Futurama.location #=> "Wormulon"
29
+ #
30
+ # @faker.version 2.13.0
31
+ def location
32
+ fetch('futurama.locations')
33
+ end
34
+
35
+ ##
36
+ # Produces a quote from Futurama.
37
+ #
38
+ # @return [String]
39
+ #
40
+ # @example
41
+ # Faker::TvShows::Futurama.quote
42
+ # #=> "Ugh, it's like a party in my mouth & everyone's throwing up."
43
+ #
44
+ # @faker.version 2.13.0
45
+ def quote
46
+ fetch('futurama.quotes')
47
+ end
48
+
49
+ ##
50
+ # Produces a catchphrase from Hermes Conrad.
51
+ #
52
+ # @return [String]
53
+ #
54
+ # @example
55
+ # Faker::TvShows::Futurama.hermes_catchphrase
56
+ # #=> "Great foo of bar!"
57
+ #
58
+ # @faker.version 2.13.0
59
+ def hermes_catchphrase
60
+ fetch('futurama.hermes_catchphrases')
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end