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

Add Faker::TvShows::TheExpanse #1487

Merged
merged 4 commits into from
Dec 3, 2018
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/unreleased/tv_shows/the_expanse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Faker::TvShows::TheExpanse

```ruby
Faker::TvShows::TheExpanse.character #=> "Jim Holden"

Faker::TvShows::TheExpanse.location #=> "Ganymede"

Faker::TvShows::TheExpanse.ship #=> "Nauvoo"

Faker::TvShows::TheExpanse.quote #=> "I am that guy."
```
27 changes: 27 additions & 0 deletions lib/faker/tv_shows/the_expanse.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# frozen_string_literal: true

module Faker
module TvShows
class TheExpanse < Base
flexible :the_expanse

class << self
def character
fetch('the_expanse.characters')
end

def quote
fetch('the_expanse.quotes')
end

def location
fetch('the_expanse.locations')
end

def ship
fetch('the_expanse.ships')
end
end
end
end
end
7 changes: 7 additions & 0 deletions lib/locales/en/the_expanse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
en:
faker:
the_expanse:
characters: ["Jim Holden", "Alex Kamal", "Naomi Nagata", "Amos Burton", "Chrisjen Avasarala", "Joe Miller", "Sadavir Errinwright", "Roberta Draper", "Julie Mao", "Col. Fredrick Lucius Johnson", "Camina Drummer", "Diogo", "Cotyar", "Jules-Pierre Mao", "Dr. Praxidike Meng", "Reverend Doctor Anna Volovodov", "Dr. Strickland", "Mei", "Sec-Gen Gillis", "Admiral Nguyen", "Admiral Souther", "Commander Klaes Ashford", "Clarissa Mao", "Octavia Muss", "Anderson Dawes", "Shed Garvey", "Arjun Avasarala"]
locations: ["Earth", "Jupiter", "Luna", "Ganymede", "Europa", "Io", "Callisto", "Asteroid belt", "Ceres", "Eros", "Uranus", "Titania", "Saturn", "Titan", "Ilus system", "New Terra", "Sol system", "Mars", "Deimos", "Phobos", "Saturn", "Phoebe"]
ships: ["Rocinante", "Nauvoo", "Donnager", "Anubis", "Kingfisher", "Kittur Chennamma", "Knight", "Koto", "Canterbury", "Lightbreaker", "Lucien", "Marasmus", "Aristophanes", "Nephthys", "Callisto's Dream", "Corvette", "S.A. Corey", "Schiaparelli", "Razorback", "Tanaka", "Hammurabi"]
quotes: ["Give the Martians their water! Milowda na animals. You have every right to be angry. You should be angry. But if we act like animals, we only justify their belief that we are. Gif im fo imalowda xitim. Treat them the way they should treat us.", "You know what I love most about Mars? They still dream. We gave up. They're an entire culture dedicated to a common goal, working together as one to turn a lifeless rock into a garden. We had a garden and we paved it.", "My great uncle emigrated from Earth. He missed it terribly. He used to tell me stories when I was a little boy about these... endless blue skies, free air everywhere, open water all the way to the horizon. He told me that someday we would make Mars just like that. When you spend your whole life living under a dome, even the idea of an ocean seems impossible to imagine. I could never understand your people. Why, when the universe has bestowed so much upon you, you seem to care so little for it?", "Do you know it is possible to cry so hard that your tears turn to blood? And living with this pain, I came to realize that I have millions of brothers and sisters in the Belt. I even count you among them.", "Remember the Cant!", "War is an inherently unstable interaction with three things: Intense emotion, politics and luck. That message is luck. Maybe out here, away from all the politics and bullshit, luck opens the door and lets a couple of grunts figure out how not to fight, for once.", "They've launched the hybrids...", "Ma'am, for the first time in your life, please just shut the fuck up!", "This is Amos. He's my best friend in the whole world.", "I am that guy.", "The only way this can be stopped is out here, away from the politicians.", "I met your mother, Alice. When everyone else said you were a terrorist I went to find out for myself. Lovely woman. She thought I was full of shit, too, at first. She's well, happy for you, happy you're free. She told me when you were a boy, you wanted to be a knight.", "This isn't just about the war, we need to contain the protomolecule, make sure it doesn't fall into the wrong hands!", "When I first saw that thing outside, for a split second I thought I was hallucinating. But after hearing what went down in that lab, now I wish I kinda had been.", "But there's only one thing that I need to tell you. And it's the simplest thing. But it's the hardest thing to remember. Listen to your heart. No matter what. It'll always be the right call.", "I have stolen your secret, Fred Johnson. And I am giving it to the Belt.", "Either you're doing an incredibly shitty job or you're no longer in control of the people who work for you.", "I know a lady named Rocinante, she was good to me."]
25 changes: 25 additions & 0 deletions test/faker/tv_shows/test_the_expanse.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerTvShowsTheExpanse < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::TheExpanse
end

def test_character
assert @tester.character.match(/\w+/)
end

def test_location
assert @tester.location.match(/\w+/)
end

def test_quote
assert @tester.quote.match(/\w+/)
end

def test_ship
assert @tester.ship.match(/\w+/)
end
end
5 changes: 3 additions & 2 deletions unreleased_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master'
- [Faker::Creature::Animal](doc/unreleased/creature/animal.md)
- [Faker::Creature::Cat](doc/unreleased/creature/cat.md)
- [Faker::Creature::Dog](doc/unreleased/creature/dog.md)

### Games
- [Faker::Games::Dota](doc/unreleased/games/dota.md)
- [Faker::Games::ElderScrolls](doc/unreleased/games/elder_scrolls.md)
Expand All @@ -238,7 +238,7 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master'
- [Faker::Games::Witcher](doc/unreleased/games/witcher.md)
- [Faker::Games::WorldOfWarcraft](doc/unreleased/games/world_of_warcraft.md)
- [Faker::Games::Zelda](doc/unreleased/games/zelda.md)

### Japanese Media
- [Faker::JapaneseMedia::DragonBall](doc/unreleased/japanese_media/dragon_ball.md)
- [Faker::JapaneseMedia::OnePiece](doc/unreleased/japanese_media/one_piece.md)
Expand Down Expand Up @@ -283,6 +283,7 @@ gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master'
- [Faker::TvShows::StarTrek](doc/unreleased/tv_shows/star_trek.md)
- [Faker::TvShows::Stargate](doc/unreleased/tv_shows/stargate.md)
- [Faker::TvShows::StrangerThings](doc/unreleased/tv_shows/stranger_things.md)
- [Faker::TvShows::TheExpanse](doc/unreleased/tv_shows/the_expanse.md)
- [Faker::TvShows::TheFreshPrinceOfBelAir](doc/unreleased/tv_shows/the_fresh_prince_of_bel_air.md)
- [Faker::TvShows::TheITCrowd](doc/unreleased/tv_shows/the_it_crowd.md)
- [Faker::TvShows::TheThickOfIt](doc/unreleased/tv_shows/the_thick_of_it.md)
Expand Down