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::Games:ElderScrolls.jewlery #2171

Merged
merged 1 commit into from
Oct 26, 2020
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
2 changes: 2 additions & 0 deletions doc/games/elder_scrolls.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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