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::Myst #1218

Merged
merged 1 commit into from
May 17, 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
25 changes: 25 additions & 0 deletions lib/faker/myst.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module Faker
class Myst < Base
class << self
def game
fetch('myst.games')
end

def creature
fetch('myst.creatures')
end

def age
fetch('myst.ages')
end

def person
fetch('myst.people')
end

def quote
fetch('myst.quotes')
end
end
end
end
47 changes: 47 additions & 0 deletions lib/locales/en/myst.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
en:
faker:
myst:
games: [ "Myst", "Riven: The Sequel to Myst", "Myst III: Exile", "Myst IV: Revelation", "Uru: Ages Beyond Myst", "Myst V: End of Ages" ]
creatures: [ "squee", "sunner", "wahrks", "ytrams", "scarab beetles", "bahro", "karnaks", "Mangree", "Zeftyr" ]
people: [ "The Stranger", "Atrus", "Sirrus", "Achenar", "Ghen", "Catherine", "Saavedro", "Yeesha", "Esher", "Atrius", "Ti'ana" ]
ages: [
# Myst
"Myst", "Stoneship", "Mechanical", "Channelwood", "Selenitic", "Earth", "Rime",
# Riven
" Riven", "Tay", "Age 233",
# Exile
"J'nanin", "Edanna", "Voltanic", "Amateria", "Narayan",
# Revelation
"Spire", "Haven", "Serenia",
# Uru (all versions)
"Relto", "Teledahn", "Gahreesen", "Kadish Tolesa", "Eder Gira", "Eder Kemo", "Nexus", "Er'cana", "Ahnonay", "Eder Delin", "Eder Tsogal", "Pod Age", "Minkata", "Jalak Dador",
# End of Ages
"Direbo", "Tahgira", "Todelmer", "Laki'ahn", "Noloben",
# Books
"Ko'ah", "Gemedet", "Age 37", "Inception", "Torus Age", "Averone", "Chroma'agana", "Terahnee",
]
quotes: [
# Atrus
"The ending has not yet been written.",
"I realized, the moment I fell into the fissure, that the Book would not be destroyed as I had planned.",
"Try moving the slider.",
"Remember the tower rotation.",

# Gehn
"Who the devil are you?",
"One thing I know about linking books is that the doors they open don't close behind you.",

# Achenar
"Find the blue pages.",
"Bring me blue pages.",

# Sirrus
"Find the red pages.",
"Bring me the red pages.",

# Saavedro
"Atrus? Is that you? Come to rescue your Book so soon? Not yet, old friend... not yet.",

# Ti'ana
"Atrus... what do you see?",
]
27 changes: 27 additions & 0 deletions test/test_faker_myst.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')

class TestFakerMyst < Test::Unit::TestCase
def setup
@tester = Faker::Myst
end

def test_game
assert @tester.game.match(/\w+/)
end

def test_creature
assert @tester.creature.match(/\w+/)
end

def test_age
assert @tester.age.match(/\w+/)
end

def test_person
assert @tester.person.match(/\w+/)
end

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