Skip to content

Commit

Permalink
Merge branch 'main' into add-pt-br-locales-for-subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanni Brasil authored Jun 11, 2024
2 parents c02efb6 + 21cdb13 commit 3be4d16
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 85 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ gem 'benchmark'
gem 'minitest', '5.23.1'
gem 'pry', '0.14.2'
gem 'rake', '13.2.1'
gem 'rubocop', '1.64.0'
gem 'rubocop', '1.64.1'
gem 'rubocop-minitest', '0.35.0'
gem 'rubocop-rake', '0.6.0'
gem 'simplecov', '0.22.0'
gem 'test-unit', '3.6.2'
gem 'timecop', '0.9.8'
gem 'timecop', '0.9.9'
gem 'yard', '0.9.36'
16 changes: 8 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ GEM
language_server-protocol (3.17.0.3)
method_source (1.0.0)
minitest (5.23.1)
parallel (1.24.0)
parser (3.3.1.0)
parallel (1.25.1)
parser (3.3.2.0)
ast (~> 2.4.1)
racc
power_assert (2.0.3)
Expand All @@ -30,9 +30,9 @@ GEM
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.2)
rexml (3.2.8)
strscan (>= 3.0.9)
rubocop (1.64.0)
rexml (3.2.9)
strscan
rubocop (1.64.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand Down Expand Up @@ -60,7 +60,7 @@ GEM
strscan (3.1.0)
test-unit (3.6.2)
power_assert
timecop (0.9.8)
timecop (0.9.9)
unicode-display_width (2.5.0)
yard (0.9.36)

Expand All @@ -74,12 +74,12 @@ DEPENDENCIES
minitest (= 5.23.1)
pry (= 0.14.2)
rake (= 13.2.1)
rubocop (= 1.64.0)
rubocop (= 1.64.1)
rubocop-minitest (= 0.35.0)
rubocop-rake (= 0.6.0)
simplecov (= 0.22.0)
test-unit (= 3.6.2)
timecop (= 0.9.8)
timecop (= 0.9.9)
yard (= 0.9.36)

BUNDLED WITH
Expand Down
3 changes: 3 additions & 0 deletions doc/default/address.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ Faker::Address.mail_box #=> "PO Box 123"

Faker::Address.community #=> "University Crossing"

#note: #zip_code will return a random string in zipcode format; may or may not be a valid zip for locale
Faker::Address.zip_code #=> "58517" or "23285-4905"

#note: #zip will return a random string in zipcode format; may or may not be a valid zip for locale
Faker::Address.zip #=> "58517" or "66259-8212"

#note: #postcode will return a random string in postcode format; may or may not be a valid zip for locale
Faker::Address.postcode #=> "76032-4907" or "58517"

Faker::Address.time_zone #=> "Asia/Yakutsk"
Expand Down
4 changes: 2 additions & 2 deletions lib/faker/default/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def zip_code(state_abbreviation: '')
return numerify(letterified_string, leading_zero: true)
end

# provide a zip code that is valid for the state provided
# see http://www.fincen.gov/forms/files/us_state_territory_zip_codes.pdf
# provide a zip code that may be valid for the state provided
# note: zip code may appear in the correct format for the state provided but may not be an actual state zip.
bothify(fetch("address.postcode_by_state.#{state_abbreviation}"))
end

Expand Down
187 changes: 120 additions & 67 deletions lib/locales/en/dota.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,97 +42,30 @@ en:
- Earth Spirit
- Earthshaker
- Elder Titan
- Ember Spirit
- Enchantress
- Enigma
- Faceless Void
- Grimstroke
- Gyrocopter
- Hoodwink
- Huskar
- Invoker
- Io
- Jakiro
- Juggernaut
- Keeper of the Light
- Kunkka
- Legion Commander
- Leshrac
- Lich
- Lifestealer
- Lina
- Lion
- Lone Druid
- Luna
- Lycan
- Magnus
- Marci
- Mars
- Medusa
- Meepo
- Mirana
- Monkey King
- Morphling
- Naga Siren
- Nature's Prophet
- Necrophos
- Night Stalker
- Nyx Assassin
- Ogre Magi
- Omniknight
- Oracle
- Outworld Destroyer
- Pangolier
- Phantom Assassin
- Phantom Lancer
- Phoenix
- Primal Beast
- Puck
- Pudge
- Pugna
- Queen of Pain
- Razor
- Riki
- Rubick
- Sand King
- Shadow Demon
- Shadow Fiend
- Shadow Shaman
- Silencer
- Skywrath Mage
- Slardar
- Slark
- Snapfire
- Sniper
- Spectre
- Spirit Breaker
- Storm Spirit
- Sven
- Techies
- Templar Assassin
- Terrorblade
- Tidehunter
- Timbersaw
- Tinker
- Tiny
- Treant Protector
- Troll Warlord
- Tusk
- Underlord
- Undying
- Ursa
- Vengeful Spirit
- Venomancer
- Viper
- Visage
- Void Spirit
- Warlock
- Weaver
- Windranger
- Winter Wyvern
- Witch Doctor
- Wraith King
- Zeus
abaddon:
quote:
- You have called death upon yourself.
Expand All @@ -144,6 +77,23 @@ en:
- Easy now, this stuff is explosive!
- Better living through alchemy!
- Tell the ogre you're sorry.
ancient_apparition:
quote:
- Behold the apparition.
- Time to break the ice!
- I look again upon the cold light of day.
anti_mage:
quote:
- Truth compels me.
- I bring an end to magic.
- They who live by the wand shall die by my blade.
- It is not magic brings me back, but purity of will!
arc_warden:
quote:
- Matter has been split from its intended form. These must be made to unite.
- None escape the Self.
- These fools must learn what they stand against.
- Mercy is yours, for the end comes.
axe:
quote:
- Let the carnage begin.
Expand All @@ -152,11 +102,37 @@ en:
- Feel the axe of Axe!
- What happened? Axe happened!
- No business but war. No family but death. No mercy but the grave!
bane:
quote:
- Your Nightmare is here.
- Nightmares, follow me into the light.
- Knock knees and blood run cold!
- I dreamt a field of war…and woke to find myself upon it.
batrider:
quote:
- Death from above!
- One forest fire coming up!
- I'll have the brisket. My hoss'll have your head.
- You wanna play rough? All right, we'll play rough.
beastmaster:
quote:
- Meet your master…snuhg… beastmaster.
- I'm a natural disaster.
- A death not fit for man or beast.
bloodseeker:
quote:
- The search for blood begins.
- For the Flayed Twins, I seek blood.
- Enough hide and seek.
- Don't be negative...be positive!
bounty_hunter:
quote:
- There's a price on all their heads.
- No job is too big, no fee is too big.
- My blades will do the talking.
- Just business, nothing personal.
- Was there a bounty on me?
- It was just business before. Now it's personal.
brewmaster:
quote:
- I fight any thing in the house.
Expand All @@ -167,23 +143,94 @@ en:
- Time to mash some faces, I'd say.
- A good bashing, never hurt nobody.
- I'm more than a pretty face.
broodmother:
quote:
- The spider comes.
- You're not afraid of spiders, are you?
- I could kill you with five eyes closed.
- My enemies will pay with their liquified guts.
centaur:
quote:
- Long shall my name be remembered.
- I don't always wear a saddlebag, but when I do, I put this one in it.
- Hurts you more than it hurts me.
centaur_warrunner:
quote:
- Long shall my name be remembered.
- I don't always wear a saddlebag, but when I do, I put this one in it.
- Hurts you more than it hurts me.
chaos_knight:
quote:
- All that is light shall be cast in darkness.
- Like the heads of my enemies, this one is in the bag.
- We descend into chaos.
- The light shall be blackened, and chaos shall reign.
- Chaos is Fun…damental.
chen:
quote:
- The Inquisitor has arrived.
- The persecution starts now!
- Only the penitent can be forgiven.
- God taketh whom he loveth best.
- In the name of Obelis, I fight again.
clinkz:
quote:
- A light to guide my way. A light to burn my foes.
- Clink goes my bones.
- It's time for your cremation.
- I've already paid my pound of flesh.
- The furnace of my heart cannot be quenched.
clockwerk:
quote:
- I've a mind like a steel trap, and the physique to go with it!
- What time is it? It's killing time.
- A good offense is the best armor. Good armor is also good armor.
crystal_maiden:
quote:
- Who calls the Crystal Maiden?
- Behold the scourge of Icewrack!
- Swift as the wolves of Icewrack...
- You're dead and that's a cold hard fact.
- Once burned, ice shy...
dark_seer:
quote:
- From the land behind the wall, I come.
- Speed is the heart of battle.
- Face your enemy, face yourself.
- Your life, much like your head, lacked a point.
- Death is a wall I have overleapt.
dark_willow:
quote:
- Are you ready to have some fun, ya?
- No one will forget the name Mireska
- A little mischief never killed anyone... well, you I guess.
- Jex... whaddya say we find who did that and rip their eyes out?
dawnbreaker:
quote:
- Darkness fears the break of dawn!
- I was created to serve, but today I choose this fight.
- The first stars burned and faded into nothingness. Followed by countless more. I remain. And my hammer swings true.
- Even at a fraction of my best, I outshine you immeasurably.
- One must always remember that the sun also rises.
dazzle:
quote:
- Dazzle!
- Where my shadow falls, there falls my foe.
- You're under my protection.
- Resurrection comes easily to a Shadow Priest!
death_prophet:
quote:
- Who dares recall me from the grave?
- The doors of death open wide.
- You merely sipped at life. Now drink deep of death.
- The grave calls me back.
- Death is such a tease.
disruptor:
quote:
- The Stormcrafter comes!
- According to the forecast, this one is in the bag!
- Where you're going, the weather doesn't change.
- The storm charges my coil again.
doom:
quote:
- Face your demons.
Expand All @@ -197,6 +244,12 @@ en:
- Live by the sword, die by the dragon.
- Good night, Sven. I mean bad knight. [Talking to Sven]
- Never make a deal with a dragon, unless you're prepared to keep your end of it.
drow_ranger:
quote:
- My quiver and bow are ready!
- I thought they warned you not to speak with rangers.
- Autumn leaves for a deathbed.
- Faster than an arrow's flight.
earth_spirit:
quote:
- Body is flesh, but spirit immortal.
Expand Down
13 changes: 7 additions & 6 deletions test/faker/games/test_faker_dota.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
class TestFakerDota < Test::Unit::TestCase
def setup
@tester = Faker::Games::Dota
@heroes = %w[abaddon alchemist axe beastmaster brewmaster bristleback centaur
chaos_knight clockwerk doom dragon_knight earth_spirit earthshaker
elder_titan huskar io kunkka legion_commander lifestealer lycan
magnus night_stalker omniknight phoenix pudge sand_king slardar
spirit_breaker sven tidehunter timbersaw tiny treant_protector tusk
underlord undying wraith_king]
@heroes = %w[abaddon alchemist ancient_apparition anti_mage arc_warden axe bane batrider beastmaster
bloodseeker bounty_hunter brewmaster bristleback broodmother centaur centaur_warrunner
chaos_knight chen clinkz clockwerk crystal_maiden dark_seer dark_willow dawnbreaker dazzle
death_prophet disruptor doom dragon_knight drow_ranger earth_spirit earthshaker
elder_titan huskar io kunkka legion_commander lifestealer lycan magnus meepo night_stalker
omniknight phoenix pudge sand_king slardar spirit_breaker sven tidehunter timbersaw tiny
treant_protector tusk underlord undying wraith_king]
end

def test_building
Expand Down

0 comments on commit 3be4d16

Please sign in to comment.