faker 2.2.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +130 -0
- data/README.md +2 -2
- data/lib/faker.rb +34 -0
- data/lib/faker/blockchain/aeternity.rb +70 -0
- data/lib/faker/blockchain/bitcoin.rb +26 -0
- data/lib/faker/blockchain/ethereum.rb +10 -0
- data/lib/faker/blockchain/tezos.rb +62 -6
- data/lib/faker/books/book.rb +36 -0
- data/lib/faker/books/culture_series.rb +49 -0
- data/lib/faker/books/dune.rb +60 -9
- data/lib/faker/books/lovecraft.rb +189 -33
- data/lib/faker/creature/animal.rb +9 -0
- data/lib/faker/creature/cat.rb +27 -0
- data/lib/faker/creature/dog.rb +72 -0
- data/lib/faker/creature/horse.rb +18 -0
- data/lib/faker/default/address.rb +10 -15
- data/lib/faker/default/alphanumeric.rb +29 -18
- data/lib/faker/default/app.rb +50 -11
- data/lib/faker/default/appliance.rb +18 -0
- data/lib/faker/default/artist.rb +9 -0
- data/lib/faker/default/avatar.rb +38 -19
- data/lib/faker/default/bank.rb +4 -6
- data/lib/faker/default/boolean.rb +14 -4
- data/lib/faker/default/chile_rut.rb +6 -14
- data/lib/faker/default/chuck_norris.rb +1 -1
- data/lib/faker/default/code.rb +7 -13
- data/lib/faker/default/commerce.rb +8 -17
- data/lib/faker/default/company.rb +4 -6
- data/lib/faker/default/crypto_coin.rb +6 -9
- data/lib/faker/default/date.rb +100 -30
- data/lib/faker/default/demographic.rb +2 -3
- data/lib/faker/default/dessert.rb +27 -0
- data/lib/faker/default/device.rb +54 -0
- data/lib/faker/default/driving_licence.rb +7 -17
- data/lib/faker/default/electrical_components.rb +27 -0
- data/lib/faker/default/file.rb +9 -26
- data/lib/faker/default/fillmurray.rb +4 -11
- data/lib/faker/default/finance.rb +2 -3
- data/lib/faker/default/gender.rb +18 -0
- data/lib/faker/default/greek_philosophers.rb +18 -0
- data/lib/faker/default/hacker.rb +59 -1
- data/lib/faker/default/hipster.rb +21 -54
- data/lib/faker/default/house.rb +18 -0
- data/lib/faker/default/id_number.rb +5 -7
- data/lib/faker/default/industry_segments.rb +36 -0
- data/lib/faker/default/internet.rb +49 -76
- data/lib/faker/default/invoice.rb +7 -13
- data/lib/faker/default/json.rb +9 -16
- data/lib/faker/default/lorem.rb +38 -77
- data/lib/faker/default/lorem_flickr.rb +17 -48
- data/lib/faker/default/lorem_pixel.rb +7 -23
- data/lib/faker/default/markdown.rb +3 -7
- data/lib/faker/default/marketing.rb +9 -0
- data/lib/faker/default/measurement.rb +16 -24
- data/lib/faker/default/military.rb +45 -0
- data/lib/faker/default/name.rb +2 -3
- data/lib/faker/default/nation.rb +48 -5
- data/lib/faker/default/nato_phonetic_alphabet.rb +9 -0
- data/lib/faker/default/nhs.rb +2 -3
- data/lib/faker/default/number.rb +149 -50
- data/lib/faker/default/omniauth.rb +67 -63
- data/lib/faker/default/phone_number.rb +2 -3
- data/lib/faker/default/placeholdit.rb +6 -19
- data/lib/faker/default/programming_language.rb +18 -0
- data/lib/faker/default/relationship.rb +2 -3
- data/lib/faker/default/restaurant.rb +54 -2
- data/lib/faker/default/science.rb +27 -0
- data/lib/faker/default/source.rb +51 -14
- data/lib/faker/default/string.rb +2 -3
- data/lib/faker/default/stripe.rb +8 -12
- data/lib/faker/default/subscription.rb +45 -0
- data/lib/faker/default/superhero.rb +45 -0
- data/lib/faker/default/time.rb +102 -56
- data/lib/faker/default/twitter.rb +23 -32
- data/lib/faker/default/types.rb +12 -23
- data/lib/faker/default/vehicle.rb +8 -14
- data/lib/faker/default/world_cup.rb +55 -10
- data/lib/faker/games/dota.rb +49 -3
- data/lib/faker/games/elder_scrolls.rb +72 -0
- data/lib/faker/games/fallout.rb +37 -0
- data/lib/faker/games/game.rb +27 -0
- data/lib/faker/games/half_life.rb +27 -0
- data/lib/faker/games/heroes.rb +27 -0
- data/lib/faker/games/heroes_of_the_storm.rb +36 -0
- data/lib/faker/games/league_of_legends.rb +54 -0
- data/lib/faker/games/myst.rb +45 -0
- data/lib/faker/games/overwatch.rb +27 -0
- data/lib/faker/games/pokemon.rb +27 -0
- data/lib/faker/games/sonic_the_hedgehog.rb +27 -0
- data/lib/faker/games/super_smash_bros.rb +18 -0
- data/lib/faker/games/witcher.rb +54 -0
- data/lib/faker/games/world_of_warcraft.rb +18 -0
- data/lib/faker/games/zelda.rb +37 -1
- data/lib/faker/japanese_media/dragon_ball.rb +9 -0
- data/lib/faker/japanese_media/one_piece.rb +54 -0
- data/lib/faker/japanese_media/sword_art_online.rb +36 -0
- data/lib/faker/movies/back_to_the_future.rb +28 -0
- data/lib/faker/movies/ghostbusters.rb +28 -0
- data/lib/faker/movies/harry_potter.rb +54 -0
- data/lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb +69 -0
- data/lib/faker/movies/hobbit.rb +37 -0
- data/lib/faker/movies/lebowski.rb +27 -0
- data/lib/faker/movies/lord_of_the_rings.rb +28 -0
- data/lib/faker/movies/movie.rb +9 -0
- data/lib/faker/movies/princess_bride.rb +19 -0
- data/lib/faker/movies/star_wars.rb +97 -6
- data/lib/faker/movies/v_for_vendetta.rb +29 -0
- data/lib/faker/music/grateful_dead.rb +18 -0
- data/lib/faker/music/phish.rb +9 -0
- data/lib/faker/music/rock_band.rb +9 -0
- data/lib/faker/music/umphreys_mcgee.rb +9 -0
- data/lib/faker/sports/basketball.rb +36 -0
- data/lib/faker/sports/football.rb +45 -0
- data/lib/faker/tv_shows/aqua_teen_hunger_force.rb +9 -0
- data/lib/faker/tv_shows/bojack_horseman.rb +28 -0
- data/lib/faker/tv_shows/breaking_bad.rb +18 -0
- data/lib/faker/tv_shows/buffy.rb +45 -0
- data/lib/faker/tv_shows/community.rb +19 -0
- data/lib/faker/tv_shows/dr_who.rb +78 -2
- data/lib/faker/tv_shows/dumb_and_dumber.rb +28 -0
- data/lib/faker/tv_shows/family_guy.rb +28 -0
- data/lib/faker/tv_shows/friends.rb +27 -0
- data/lib/faker/tv_shows/game_of_thrones.rb +46 -0
- data/lib/faker/tv_shows/hey_arnold.rb +27 -0
- data/lib/faker/tv_shows/how_i_met_your_mother.rb +37 -0
- data/lib/faker/tv_shows/michael_scott.rb +13 -0
- data/lib/faker/tv_shows/new_girl.rb +19 -0
- data/lib/faker/tv_shows/parks_and_rec.rb +18 -0
- data/lib/faker/tv_shows/rick_and_morty.rb +28 -0
- data/lib/faker/tv_shows/ru_paul.rb +18 -0
- data/lib/faker/tv_shows/seinfeld.rb +28 -0
- data/lib/faker/tv_shows/silicon_valley.rb +75 -0
- data/lib/faker/tv_shows/simpsons.rb +28 -0
- data/lib/faker/tv_shows/south_park.rb +19 -0
- data/lib/faker/tv_shows/star_trek.rb +36 -0
- data/lib/faker/tv_shows/stargate.rb +28 -0
- data/lib/faker/tv_shows/stranger_things.rb +19 -0
- data/lib/faker/tv_shows/the_expanse.rb +36 -0
- data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +28 -0
- data/lib/faker/tv_shows/the_it_crowd.rb +37 -0
- data/lib/faker/tv_shows/the_thick_of_it.rb +28 -0
- data/lib/faker/tv_shows/twin_peaks.rb +28 -0
- data/lib/faker/tv_shows/venture_bros.rb +38 -0
- data/lib/faker/version.rb +1 -1
- data/lib/locales/en-CA.yml +1 -1
- data/lib/locales/en-TH.yml +360 -0
- data/lib/locales/en/color.yml +1 -1
- data/lib/locales/en/dr_who.yml +1 -1
- data/lib/locales/en/science.yml +1 -1
- data/lib/locales/ja.yml +8 -9
- data/lib/locales/th.yml +380 -0
- metadata +40 -15
|
@@ -4,14 +4,41 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class HalfLife < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a character from the Half-Life games.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::HalfLife.character #=> "Gordon Freeman"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.9.2
|
|
7
16
|
def character
|
|
8
17
|
fetch('games.half_life.character')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of an enemy from the Half-Life games.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::HalfLife.enemy #=> "Headcrab"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.9.2
|
|
11
29
|
def enemy
|
|
12
30
|
fetch('games.half_life.enemy')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces the name of a location from the Half-Life games.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::HalfLife.location #=> "Black Mesa Research Facility"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.9.2
|
|
15
42
|
def location
|
|
16
43
|
fetch('games.half_life.location')
|
|
17
44
|
end
|
data/lib/faker/games/heroes.rb
CHANGED
|
@@ -4,14 +4,41 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class Heroes < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a hero from Heroes 3.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::Heroes.name #=> "Christian"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.9.2
|
|
7
16
|
def name
|
|
8
17
|
fetch('heroes.names')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of a specialty from Heroes 3.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::Heroes.specialty #=> "Ballista"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.9.2
|
|
11
29
|
def specialty
|
|
12
30
|
fetch('heroes.specialties')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces the name of a class from Heroes 3.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::Heroes.klass #=> "Knight"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.9.2
|
|
15
42
|
def klass
|
|
16
43
|
fetch('heroes.klasses')
|
|
17
44
|
end
|
|
@@ -4,18 +4,54 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class HeroesOfTheStorm < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces a battleground from Heroes of the Storm.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::HeroesOfTheStorm.battleground #=> "Towers of Doom"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.9.2
|
|
7
16
|
def battleground
|
|
8
17
|
fetch('heroes_of_the_storm.battlegrounds')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces a class from Heroes of the Storm.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::HeroesOfTheStorm.class #=> "Support"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.9.2
|
|
11
29
|
def class
|
|
12
30
|
fetch('heroes_of_the_storm.classes')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces a hero from Heroes of the Storm.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::HeroesOfTheStorm.hero #=> "Illidan"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.9.2
|
|
15
42
|
def hero
|
|
16
43
|
fetch('heroes_of_the_storm.heroes')
|
|
17
44
|
end
|
|
18
45
|
|
|
46
|
+
##
|
|
47
|
+
# Produces a quote from Heroes of the Storm.
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
# @example
|
|
52
|
+
# Faker::Games::HeroesOfTheStorm.quote #=> "MEAT!!!"
|
|
53
|
+
#
|
|
54
|
+
# @faker.version 1.9.2
|
|
19
55
|
def quote
|
|
20
56
|
fetch('heroes_of_the_storm.quotes')
|
|
21
57
|
end
|
|
@@ -4,26 +4,80 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class LeagueOfLegends < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a champion from League of Legends.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::LeagueOfLegends.champion #=> "Jarvan IV"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.8.0
|
|
7
16
|
def champion
|
|
8
17
|
fetch('games.league_of_legends.champion')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces a location from League of Legends.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::LeagueOfLegends.location #=> "Demacia"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.8.0
|
|
11
29
|
def location
|
|
12
30
|
fetch('games.league_of_legends.location')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces a quote from League of Legends.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::LeagueOfLegends.quote #=> "Purge the unjust."
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.8.0
|
|
15
42
|
def quote
|
|
16
43
|
fetch('games.league_of_legends.quote')
|
|
17
44
|
end
|
|
18
45
|
|
|
46
|
+
##
|
|
47
|
+
# Produces a summoner spell from League of Legends.
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
# @example
|
|
52
|
+
# Faker::Games::LeagueOfLegends.summoner_spell #=> "Flash"
|
|
53
|
+
#
|
|
54
|
+
# @faker.version 1.8.0
|
|
19
55
|
def summoner_spell
|
|
20
56
|
fetch('games.league_of_legends.summoner_spell')
|
|
21
57
|
end
|
|
22
58
|
|
|
59
|
+
##
|
|
60
|
+
# Produces a mastery from League of Legends.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
#
|
|
64
|
+
# @example
|
|
65
|
+
# Faker::Games::LeagueOfLegends.masteries #=> "Double Edged Sword"
|
|
66
|
+
#
|
|
67
|
+
# @faker.version 1.8.0
|
|
23
68
|
def masteries
|
|
24
69
|
fetch('games.league_of_legends.masteries')
|
|
25
70
|
end
|
|
26
71
|
|
|
72
|
+
##
|
|
73
|
+
# Produces a rank from League of Legends.
|
|
74
|
+
#
|
|
75
|
+
# @return [String]
|
|
76
|
+
#
|
|
77
|
+
# @example
|
|
78
|
+
# Faker::Games::LeagueOfLegends.rank #=> "Bronze V"
|
|
79
|
+
#
|
|
80
|
+
# @faker.version 1.8.0
|
|
27
81
|
def rank
|
|
28
82
|
fetch('games.league_of_legends.rank')
|
|
29
83
|
end
|
data/lib/faker/games/myst.rb
CHANGED
|
@@ -4,22 +4,67 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class Myst < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a game from the Myst series.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::Myst.game #=> "Myst III: Exile"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.9.0
|
|
7
16
|
def game
|
|
8
17
|
fetch('games.myst.games')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of a creature from Myst.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::Myst.creature #=> "squee"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.9.0
|
|
11
29
|
def creature
|
|
12
30
|
fetch('games.myst.creatures')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces the name of an age from Myst.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::Myst.age #=> "Relto"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.9.0
|
|
15
42
|
def age
|
|
16
43
|
fetch('games.myst.ages')
|
|
17
44
|
end
|
|
18
45
|
|
|
46
|
+
##
|
|
47
|
+
# Produces the name of a chracter from Myst.
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
# @example
|
|
52
|
+
# Faker::Games::Myst.character #=> "Gehn"
|
|
53
|
+
#
|
|
54
|
+
# @faker.version 1.9.0
|
|
19
55
|
def character
|
|
20
56
|
fetch('games.myst.characters')
|
|
21
57
|
end
|
|
22
58
|
|
|
59
|
+
##
|
|
60
|
+
# Produces a quote from Myst.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
#
|
|
64
|
+
# @example
|
|
65
|
+
# Faker::Games::Myst.quote #=> "I realized, the moment I fell into the fissure, that the Book would not be destroyed as I had planned."
|
|
66
|
+
#
|
|
67
|
+
# @faker.version 1.9.0
|
|
23
68
|
def quote
|
|
24
69
|
fetch('games.myst.quotes')
|
|
25
70
|
end
|
|
@@ -4,14 +4,41 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class Overwatch < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a hero from Overwatch.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::Overwatch.hero #=> "Tracer"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.8.0
|
|
7
16
|
def hero
|
|
8
17
|
fetch('games.overwatch.heroes')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of a location from Overwatch.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::Overwatch.location #=> "Numbani"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.8.0
|
|
11
29
|
def location
|
|
12
30
|
fetch('games.overwatch.locations')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces a quote from Overwatch.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::Overwatch.quote #=> "It's high noon"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.8.0
|
|
15
42
|
def quote
|
|
16
43
|
fetch('games.overwatch.quotes')
|
|
17
44
|
end
|
data/lib/faker/games/pokemon.rb
CHANGED
|
@@ -4,14 +4,41 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class Pokemon < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a Pokemon.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::Pokemon.name #=> "Pikachu"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.7.0
|
|
7
16
|
def name
|
|
8
17
|
fetch('games.pokemon.names')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces a location from Pokemon.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::Pokemon.location #=> "Pallet Town"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.7.0
|
|
11
29
|
def location
|
|
12
30
|
fetch('games.pokemon.locations')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces a move from Pokemon.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::Pokemon.move #=> "Thunder Shock"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.7.0
|
|
15
42
|
def move
|
|
16
43
|
fetch('games.pokemon.moves')
|
|
17
44
|
end
|
|
@@ -4,14 +4,41 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class SonicTheHedgehog < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a character from Sonic the Hedgehog.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::SonicTheHedgehog.character #=> "Sonic the Hedgehog"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.9.2
|
|
7
16
|
def character
|
|
8
17
|
fetch('games.sonic_the_hedgehog.character')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of a zone from Sonic the Hedgehog.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::SonicTheHedgehog.zone #=> "Green Hill Zone"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.9.2
|
|
11
29
|
def zone
|
|
12
30
|
fetch('games.sonic_the_hedgehog.zone')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces the name of a game from the Sonic the Hedgehog series.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::SonicTheHedgehog.game #=> "Waku Waku Sonic Patrol Car"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.9.2
|
|
15
42
|
def game
|
|
16
43
|
fetch('games.sonic_the_hedgehog.game')
|
|
17
44
|
end
|
|
@@ -4,10 +4,28 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class SuperSmashBros < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a fighter from the Smash Bros games.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::SuperSmashBros.fighter #=> "Mario"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.9.2
|
|
7
16
|
def fighter
|
|
8
17
|
fetch('games.super_smash_bros.fighter')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of a stage from the Smash Bros games.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::SuperSmashBros.stage #=> "Final Destination"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.9.2
|
|
11
29
|
def stage
|
|
12
30
|
fetch('games.super_smash_bros.stage')
|
|
13
31
|
end
|
data/lib/faker/games/witcher.rb
CHANGED
|
@@ -4,26 +4,80 @@ module Faker
|
|
|
4
4
|
class Games
|
|
5
5
|
class Witcher < Base
|
|
6
6
|
class << self
|
|
7
|
+
##
|
|
8
|
+
# Produces the name of a character from The Witcher.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
#
|
|
12
|
+
# @example
|
|
13
|
+
# Faker::Games::Witcher.character #=> "Triss Merigold"
|
|
14
|
+
#
|
|
15
|
+
# @faker.version 1.8.3
|
|
7
16
|
def character
|
|
8
17
|
fetch('games.witcher.characters')
|
|
9
18
|
end
|
|
10
19
|
|
|
20
|
+
##
|
|
21
|
+
# Produces the name of a witcher from The Witcher.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# Faker::Games::Witcher.witcher #=> "Geralt of Rivia"
|
|
27
|
+
#
|
|
28
|
+
# @faker.version 1.8.3
|
|
11
29
|
def witcher
|
|
12
30
|
fetch('games.witcher.witchers')
|
|
13
31
|
end
|
|
14
32
|
|
|
33
|
+
##
|
|
34
|
+
# Produces the name of a school from The Witcher.
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
#
|
|
38
|
+
# @example
|
|
39
|
+
# Faker::Games::Witcher.school #=> "Wolf"
|
|
40
|
+
#
|
|
41
|
+
# @faker.version 1.8.3
|
|
15
42
|
def school
|
|
16
43
|
fetch('games.witcher.schools')
|
|
17
44
|
end
|
|
18
45
|
|
|
46
|
+
##
|
|
47
|
+
# Produces the name of a location from The Witcher.
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
# @example
|
|
52
|
+
# Faker::Games::Witcher.location #=> "Novigrad"
|
|
53
|
+
#
|
|
54
|
+
# @faker.version 1.8.3
|
|
19
55
|
def location
|
|
20
56
|
fetch('games.witcher.locations')
|
|
21
57
|
end
|
|
22
58
|
|
|
59
|
+
##
|
|
60
|
+
# Produces a quote from The Witcher.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
#
|
|
64
|
+
# @example
|
|
65
|
+
# Faker::Games::Witcher.quote #=> "No Lollygagin'!"
|
|
66
|
+
#
|
|
67
|
+
# @faker.version 1.8.3
|
|
23
68
|
def quote
|
|
24
69
|
fetch('games.witcher.quotes')
|
|
25
70
|
end
|
|
26
71
|
|
|
72
|
+
##
|
|
73
|
+
# Produces the name of a monster from The Witcher.
|
|
74
|
+
#
|
|
75
|
+
# @return [String]
|
|
76
|
+
#
|
|
77
|
+
# @example
|
|
78
|
+
# Faker::Games::Witcher.monster #=> "Katakan"
|
|
79
|
+
#
|
|
80
|
+
# @faker.version 1.8.3
|
|
27
81
|
def monster
|
|
28
82
|
fetch('games.witcher.monsters')
|
|
29
83
|
end
|