Skip to content

Commit

Permalink
Add generator to Faker::Games:ElderScrolls (#2171)
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyHuntsman committed Oct 26, 2020
1 parent 7c1f8d6 commit a985223
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/games/elder_scrolls.md
Expand Up @@ -18,4 +18,6 @@ Faker::Games::ElderScrolls.last_name #=> Mallory
Faker::Games::ElderScrolls.name #=> Babette Brill

Faker::Games::ElderScrolls.weapon #=> Elven Bow

Faker::Games::ElderScrolls.jewelry #=> "Silver Ruby Ring"
```
13 changes: 13 additions & 0 deletions lib/faker/games/elder_scrolls.rb
Expand Up @@ -120,6 +120,19 @@ def last_name
def weapon
fetch('games.elder_scrolls.weapon')
end

##
# Produces a weapon from the Elder Scrolls universe.
#
# @return [String]
#
# @example
# Faker::Games::ElderScrolls.jewelry #=> "Silver Ruby Ring"
#
# @faker.version next
def jewelry
fetch('games.elder_scrolls.jewelry')
end
end
end
end
Expand Down
90 changes: 90 additions & 0 deletions lib/locales/en/elder_scrolls.yml
Expand Up @@ -493,3 +493,93 @@ en:
- Dwarven Crossbow
- Enhanced Crossbow
- Enhanced Dwarven Crossbow
jewelry:
- Copper and Moonstone Circlet
- Copper and Onyx Circlet
- Copper and Ruby Circlet
- Copper and Sapphire Circlet
- Gold and Emerald Circlet
- Gold and Ruby Circlet
- Jade and Emerald Circlet
- Jade and Sapphire Circlet
- Silver and Moonstone Circlet
- Silver and Sapphire Circlet
- Aetherial Crown
- Diadem of the Savant
- Mage's Circlet
- Wedding Wreath
- Gold Ring
- Gold Diamond Ring
- Gold Emerald Ring
- Gold Sapphire Ring
- Silver Ring
- Silver Amethyst Ring
- Silver Garnet Ring
- Silver Ruby Ring
- Ahzidal's Ring of Arcana
- Ahzidal's Ring of Necromancy
- Asgeir's Wedding Band
- Balwen's Ornamental Ring
- Bone Hawk Ring
- Calcelmo's Ring
- Enchanted Ring
- Fjola's Wedding Band
- Hircine's Ring
- Ilas-Tei's Ring
- Katarina's Ornamental Ring
- Madesi's Silver Ring
- Muiri's Ring
- Neloth's Ring of Tracking
- Nightweaver's Band
- Pithi's Ornamental Ring
- Ring of Bloodlust
- Ring of Instinct
- Ring of Namira
- Ring of Pure Mixtures
- Ring of the Beast
- Ring of the Erudite
- Ring of the Hunt
- Ring of the Moon
- Silver-Blood Family Ring
- The Bond of Matrimony
- Treoy's Ornamental Ring
- Viola's Gold Ring
- Wedding Ring
- Gold Necklace
- Gold Diamond Necklace
- Gold Jeweled Necklace
- Gold Ruby Necklace
- Silver Necklace
- Silver Emerald Necklace
- Silver Jeweled Necklace
- Silver Sapphire Necklace
- Bone Hawk AmuletDG
- Amulet of Akatosh
- Amulet of Arkay
- Amulet of Dibella
- Amulet of Julianos
- Amulet of Kynareth
- Amulet of Mara
- Amulet of Stendarr
- Amulet of Talos
- Amulet of Zenithar
- Amulet of Articulation
- Amulet of BatsDG
- Amulet of the GargoyleDG
- Andurs' Amulet of Arkay
- Charmed Necklace
- East Empire Pendant
- Fjotli's Silver Locket
- Grosta's Necklace
- Jeweled Amulet
- Kyne's Token
- Locket of Saint JiubDG
- Moon Amulet
- Necromancer Amulet
- Ogmund's Amulet of Talos
- Reyda's Necklace
- Saarthal Amulet
- Savos Aren's Amulet
- Shahvee's Amulet of Zenithar
- The Gauldur Amulet
- Yisra's Necklace
4 changes: 4 additions & 0 deletions test/faker/games/test_faker_elder_scrolls.rb
Expand Up @@ -42,4 +42,8 @@ def test_last_name
def test_weapon
assert @tester.weapon.match(/\w+/)
end

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

0 comments on commit a985223

Please sign in to comment.