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

Added Archer into tv category. #2750

Merged
merged 2 commits into from
Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
<summary>Tv Shows</summary>

- [Faker::TvShows::AquaTeenHungerForce](doc/tv_shows/aqua_teen_hunger_force.md)
- [Faker::TvShows::Archer](doc/tv_shows/archer.md)
- [Faker::TvShows::BigBangTheory](doc/tv_shows/big_bang_theory.md)
- [Faker::TvShows::BojackHorseman](doc/tv_shows/bojack_horseman.md)
- [Faker::TvShows::BreakingBad](doc/tv_shows/breaking_bad.md)
Expand Down
9 changes: 9 additions & 0 deletions doc/tv_shows/archer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Faker::TvShows::Archer

```ruby
Faker::TvShows::Archer.character #=> "Sterling Archer"

Faker::TvShows::Archer.location #=> "Area 51"

Faker::TvShows::Archer.quote #=> "Danger Zone!"
```
51 changes: 51 additions & 0 deletions lib/faker/tv_shows/archer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# frozen_string_literal: true

module Faker
class TvShows
class Archer < Base
flexible :archer

class << self
##
# Produces a character from Archer.
#
# @return [String]
#
# @example
# Faker::TvShows::Archer.character #=> "Sterling Archer"
#
# @faker.version 2.13.0
def character
fetch('archer.characters')
end

##
# Produces a location from Archer.
#
# @return [String]
#
# @example
# Faker::TvShows::Archer.location #=> "The Tuntmore Towers"
#
# @faker.version 2.13.0
def location
fetch('archer.locations')
end

##
# Produces a quote from Archer.
#
# @return [String]
#
# @example
# Faker::TvShows::Archer.quote
# #=> "You're not my supervisor!"
#
# @faker.version 2.13.0
lepari23 marked this conversation as resolved.
Show resolved Hide resolved
def quote
fetch('archer.quotes')
end
end
end
end
end
75 changes: 75 additions & 0 deletions lib/locales/en/archer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
en:
faker:
archer:
characters:
- Sterling Archer
- Lana Kane
- Malory Archer
- Cyril Figgis
- Cheryl Tunt
- Pam Poovey
- Dr. Krieger
- Ray Gillette
- Barry Dylan
- Ron Cadillac
- Woodhouse
- Slater
- Katya Kazanova
- Brett Bunsen
- Conway Stern
- Len Trexler
- George Spelvin
- Trinette McGoon
- Rodney
- Cecil Tunt
- Charles and Rudy
- Gustavo Calderon
- Captain Lammers
- Edie Poovey
- Veronica Deane
- Figgis Agency staff
- Slater's agents
- Popeye
- Barry-6
- Conway Stern
- Bilbo
- Dutch
locations:
- ISIS Headquarters
- The Tuntmore Towers
- The Archer Apartment
- The Malory Apartment
- The Krieger Lab
- San Marcos Palace
- The KGB Headquarters
- The Vatican
- Area 51
- Dreamland
- Danger Island
- The Figgis Agency office
- New York City
- Miami
- Monte Carlo
- Hollywood
- Texas
quotes:
- Lana. Lana. Lana!... Danger zone.
- I'm sorry, I can't hear you over the sound of my giant throbbing erection!
- This is why we can't have nice things, people!
- If I cared about what you do on the weekend, I'd stick a shotgun in my mouth and pull the trigger with my toes.
- It's like my brain's a tree and you're those little cookie elves.
- I'm not saying I invented the turtleneck, but I was the first person to realize its potential as a tactical garment.
- You're about as useful as a cock-flavored lollipop.
- You want to take away my freedom? You're gonna have to pry it from my cold, dead hands.
- Just the Tip.
- It's called 'the velveteen touch of a dandy fop.' Look it up.
- Phrasing!
- Danger zone!
- M as in Mancy
- Do you want ants? Because that's how you get ants.
- I swear to god I had something for this.
- I am the one who makes the decisions, and I decide what we do, and we are not murdering people!
- You're not my supervisor!
- That's how you get ants. But seriously, don't eat that.
- Phrasing. Boom!
- Read a book, it'll make you feel better.
21 changes: 21 additions & 0 deletions test/faker/tv_shows/test_archer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerTvShowsArcher < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Archer
end

def test_characters
assert_match(/\w+/, @tester.character)
end

def test_locations
assert_match(/\w+/, @tester.location)
end

def test_quote
assert_match(/\w+/, @tester.quote)
end
end