Skip to content

Commit

Permalink
Add Myst module (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeragamba authored and vbrazo committed May 17, 2018
1 parent 1043ee9 commit 1554685
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 0 deletions.
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

0 comments on commit 1554685

Please sign in to comment.