diff --git a/lib/faker/myst.rb b/lib/faker/myst.rb new file mode 100644 index 0000000000..860b42b645 --- /dev/null +++ b/lib/faker/myst.rb @@ -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 diff --git a/lib/locales/en/myst.yml b/lib/locales/en/myst.yml new file mode 100644 index 0000000000..31bcf5a632 --- /dev/null +++ b/lib/locales/en/myst.yml @@ -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?", + ] diff --git a/test/test_faker_myst.rb b/test/test_faker_myst.rb new file mode 100644 index 0000000000..b7b666b9d3 --- /dev/null +++ b/test/test_faker_myst.rb @@ -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