Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump faker from 1.9.3 to 1.9.4 #509

Merged
merged 2 commits into from Jun 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 24 additions & 1 deletion Gemfile.lock
Expand Up @@ -107,14 +107,20 @@ GEM
ebnf (1.1.3)
rdf (~> 3.0)
sxp (~> 1.0)
equatable (0.6.0)
erubi (1.8.0)
factory_bot (5.0.2)
activesupport (>= 4.2.0)
factory_bot_rails (5.0.2)
factory_bot (~> 5.0.2)
railties (>= 4.2.0)
faker (1.9.3)
faker (1.9.4)
i18n (>= 0.7)
pastel (~> 0.7.2)
thor (~> 0.20.0)
tty-pager (~> 0.12.0)
tty-screen (~> 0.6.5)
tty-tree (~> 0.3.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
ffi (1.11.1)
Expand Down Expand Up @@ -177,6 +183,9 @@ GEM
parallel (1.17.0)
parser (2.6.3.0)
ast (~> 2.4.0)
pastel (0.7.3)
equatable (~> 0.6)
tty-color (~> 0.5)
pg (1.1.4)
pg_search (2.2.0)
activerecord (>= 4.2)
Expand Down Expand Up @@ -306,16 +315,30 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
strings (0.1.5)
strings-ansi (~> 0.1)
unicode-display_width (~> 1.5)
unicode_utils (~> 1.4)
strings-ansi (0.1.0)
sxp (1.0.2)
rdf (~> 3.0)
thor (0.20.3)
thread_safe (0.3.6)
tty-color (0.5.0)
tty-pager (0.12.1)
strings (~> 0.1.4)
tty-screen (~> 0.6)
tty-which (~> 0.4)
tty-screen (0.6.5)
tty-tree (0.3.0)
tty-which (0.4.1)
turbolinks (5.2.0)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unicode-display_width (1.6.0)
unicode_utils (1.4.0)
uniform_notifier (1.12.1)
warden (1.2.8)
rack (>= 2.0.6)
Expand Down
12 changes: 0 additions & 12 deletions config/initializers/faker.rb
Expand Up @@ -2,18 +2,6 @@
module GameProperties
class Game < Faker::Base
class << self
def name
fetch('game.name')
end

def platform
fetch('game.platform')
end

def genre
fetch('game.genre')
end

def company
fetch('game.company')
end
Expand Down
126 changes: 1 addition & 125 deletions config/locales/en.yml
@@ -1,132 +1,8 @@
en:
# Faker data for seeding video game titles.
# Faker data for seeding video game data.
# Don't forget to also update faker.rb when you add new Faker data, idiot.
faker:
game:
name: [
'Half-Life',
'Half-Life: Opposing Force',
'Half-Life: Blue Shift',
'Half-Life 2',
'Half-Life 2: Episode One',
'Half-Life 2: Episode Two',
'Portal',
'Portal 2',
'Team Fortress Classic',
'Team Fortress 2',
'Super Mario Bros.',
'Super Mario Bros. 2',
'Super Mario Bros. 3',
'Super Mario World',
'Super Mario Sunshine',
'Super Mario Galaxy',
'Super Mario Galaxy 2',
'Super Mario Odyssey',
'Civilization III',
'Civilization IV',
'Civilization V',
'Civilization VI',
'The Legend of Zelda',
'The Legend of Zelda: Ocarina of Time',
"The Legend of Zelda: Majora's Mask",
'The Legend of Zelda: Twilight Princess',
'The Legend of Zelda: Skyward Sword',
'The Legend of Zelda: Breath of the Wild',
'Pong',
'Pac-Man',
'Starcraft',
'Starcraft II',
'Overwatch',
'Hearthstone',
'Halo: Combat Evolved',
'Halo 2',
'Halo 3',
'Halo 3: ODST',
'Halo: Reach',
'Halo 4',
'Halo 5: Guardians',
'Wii Sports',
'Wii Sports Resort',
'Wii Play',
'Wii Music',
'Pokémon Red',
'Pokémon Blue',
'Pokémon Yellow',
'Pokémon Gold',
'Pokémon Silver',
'Pokémon Crystal',
'Pokémon Ruby',
'Pokémon Sapphire',
'Pokémon FireRed',
'Pokémon LeafGreen',
'Pokémon Emerald',
'Pokémon Diamond',
'Pokémon Pearl',
'Pokémon Platinum',
'Pokémon HeartGold',
'Pokémon SoulSilver',
'Pokémon Black',
'Pokémon White',
'Pokémon Black 2',
'Pokémon White 2',
'Pokémon X',
'Pokémon Y',
'Pokémon Omega Ruby',
'Pokémon Alpha Sapphire',
'Pokémon Sun',
'Pokémon Moon',
'Pokémon Ultra Sun',
'Pokémon Ultra Moon',
"Pokémon: Let's Go Pikachu!",
"Pokémon: Let's Go Eevee!"
]
platform: [
'Xbox',
'Xbox 360',
'Xbox One',
'PlayStation',
'PlayStation 2',
'PlayStation 3',
'PlayStation 4',
'GameBoy',
'GameBoy Color',
'GameBoy Advanced',
'Nintendo DS',
'Nintendo 3DS',
'Nintendo Entertainment System',
'Super Nintendo Entertainment System',
'Nintendo 64',
'GameCube',
'Wii',
'Wii U',
'Nintendo Switch',
'Windows',
'macOS',
'Linux'
]
genre: [
'First-person shooter',
'Puzzle',
'Platformer',
'Action',
'Adventure',
'Strategy',
'Role-playing game',
'Sports',
'Simulation',
'Fighting',
'Massively multiplayer online',
'Stealth',
'Survival',
'Rhythm',
'Survival horror',
'Text adventure',
'Visual novel',
'Real-time strategy',
'Multiplayer online battle arena',
'Tower defense',
'Trivia'
]
company: [
'Valve',
'Nintendo',
Expand Down
2 changes: 1 addition & 1 deletion db/seeds/games.rb
Expand Up @@ -26,7 +26,7 @@ def cover_fetcher
engines.uniq!

game = Game.create!(
name: Faker::Game.unique.name,
name: Faker::Game.unique.title,
description: Faker::Lorem.sentence,
genres: genres,
engines: engines,
Expand Down