Skip to content

Commit

Permalink
Simple Japanesemedia::CowboyBebop module (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-P23994 committed Nov 6, 2022
1 parent d221c96 commit 05a5e1e
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
- [Faker::Games::Zelda](doc/games/zelda.md)

### Japanese Media
- [Faker::JapaneseMedia::CowboyBebop](doc/japanese_media/cowboy_bebop.md)
- [Faker::JapaneseMedia::DragonBall](doc/japanese_media/dragon_ball.md)
- [Faker::JapaneseMedia::OnePiece](doc/japanese_media/one_piece.md)
- [Faker::JapaneseMedia::StudioGhibli](doc/japanese_media/studio_ghibli.md)
Expand Down
10 changes: 10 additions & 0 deletions doc/japanese_media/cowboy_bebop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Faker::JapaneseMedia::CowboyBebop

Available since version @faker.version next

```ruby
Faker::JapaneseMedia::CowboyBebop.character #=> "Spike Spiegel"
Faker::JapaneseMedia::CowboyBebop.episode #=> "Honky Tonk Women"
Faker::JapaneseMedia::CowboyBebop.songs #=> "Live in Baghdad"
Faker::JapaneseMedia::CowboyBebop.quote #=> "Bang!"
```
61 changes: 61 additions & 0 deletions lib/faker/japanese_media/cowboy_bebop.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# frozen_string_literal: true

module Faker
class JapaneseMedia
class CowboyBebop < Base
class << self
##
# Produces a character from Cowboy Bebop.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::CowboyBebop.character #=> "Spike Spiegel"
#
# @faker.version next
def character
fetch('cowboy_bebop.character')
end

##
# Produces an episode from Cowboy Bebop.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::CowboyBebop.episode #=> "Honky Tonk Women"
#
# @faker.version next
def episode
fetch('cowboy_bebop.episode')
end

##
# Produces a song title from Cowboy Bebop.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::CowboyBebop.songs #=> "Live in Baghdad"
#
# @faker.version next
def song
fetch('cowboy_bebop.song')
end

##
# Produces a quote from Cowboy Bebop.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::CowboyBebop.quote #=> "Bang!!!"
#
# @faker.version next
def quote
fetch('cowboy_bebop.quote')
end
end
end
end
end
163 changes: 163 additions & 0 deletions lib/locales/en/cowboy_bebop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
en:
faker:
cowboy_bebop:
character:
- Edward
- Ein
- Faye Valentine
- Jet Black
- Julia
- Spike Spiegel
- Vicious
- Annie
- Bob
- Laughing Bull
- Gren
- Punch and Judy
- Three Old Men
- Abdul Hakim
- Andy
- Asimov Solensan
- Chessmaster Hex
- Coffee
- Doohan
- Elektra Ovirowa
- Fad
- Fatty River
- Lin
- George
- Giraffe
- Gordon
- Julius
- Katerina Solensan
- Mao Yenrai
- Maria Murdock
- Miles
- Morgan
- Mr. Appledelhi
- Rocco Bonnaro
- Sally Yung
- Shin
- Teddy Bomber
- Udai Taxim
- Victoria Terpsichore
- Wen
- Whitney Hagas Matsumoto
- Zebra

episode:
- Asteroid Blues
- Stray Dog Strut
- Honky Tonk Women
- Gateway Shuffle
- Ballad of Fallen Angels
- Sympathy for the Devil
- Heavy Metal Queen
- Waltz for Venus
- Jamming with Edward
- Ganymede Elegy
- Toys in the Attic
- Jupiter Jazz part 1
- Jupiter Jazz part 2
- Bohemian Rhapsody
- My Funny Valentine
- Black Dog Serenade
- Mushroom Samba
- Speak Like a Child
- Wild Horses
- Pierrot le Fou
- Boogie Woogie Feng Shui
- Cowboy Funk
- Brain Scratch
- Hard Luck Woman
- The Real Folk Blues part 1
- The Real Folk Blues part 2

song:
- Tank!
- Rush
- Spokey Dokey
- Bad Dog No Biscuits
- Cat Blues
- Cosmos
- Space Lion
- Waltz for Zizi
- Piano Black
- Pot City
- Too Good Too Bad
- Car24
- The Egg and I
- Felt Tip Pen
- Rain
- Digging My Potato
- Memory
- The Real Folk Blues
- Odd Ones
- Doggy Dog
- Cats on Mars
- Spy
- Fantaisie Sign
- Piano Bar I
- Black Coffee
- American Money
- Don't Bother None
- Vitamin A
- Live in Baghdad
- Cats on Mars
- Want It All Back
- Bindy
- You Make Me Cool
- Vitamin B
- Green Bird
- Elm
- Vitamin C
- Gateway
- The Singing Sea
- The Egg and You
- Forever Broke
- Power of Kung Food
- BlueTim Jensent
- Words That We Couldn't Say
- Autumn in Ganymede
- Mushroom Hunting
- Go Go Cactus Man
- Chicken Bone
- The Real Man
- N.Y. Rush
- Adieu
- Call Me Call Me
- Ave Maria
- Stella
- Flying Teapot
- Wo Qui Non Coin
- Road to the West
- Farewell Blues
- See You Space Cowboy...
- 24 Hours Open
- Pushing the Sky
- Time to Know ~ Be Waltz
- Clutch
- Musawe
- Yo Pumpkin Head
- Diggin
- What Planet Is This?!
- Fingers
- Powder
- Butterfly
- No Reply
- Dijurido
- Gotta Knock a Little Harder
- No Money.
- Rain

quote:
- "Men always seem to think about their past before they die, as though they were frantically searching for proof that they truly lived."
- "I'm not going there to die. I'm going to find out if I'm really alive."
- "I felt like I was watching a dream I'd never wake up from. Before I knew it, the dream was all over."
- "Everything has a beginning and an end. Life is just a cycle of starts and stops. There are ends we don't desire, but they're inevitable. We have to face them. It's what being human is all about."
- "Bang!"
- "The past is the past and the future is the future. A man is a man and a woman is a woman. The present is the present. I am who I am and you are who you are. That's all there is to it. Does it really matter? Or do we just think it does?"
- "There are three things I hate the most. Kids, pets, and women with attitude. So tell me, why do we have all of them packed into our ship!?"
- "Humans were meant to work and sweat for their money after all. Those that try to get rich quickly or live at expense of others - all get divine retribution along the way. That is the lesson. But, one thing about humans is that they quickly forget the lesson they have learnt."
- "When I was a cop, this was my beat. I’m the Black Dog and when I bite I don’t let go. I have no regrets about her, but I’ll settle this score on my own turf."
- "I was younger then, I wasn't afraid of anything, I didn't think about dying for a second. I thought I was invincible. Then I met some girl. I wanted to live, I started to think like that; for the first time I was afraid of death. I had never felt like that before."
25 changes: 25 additions & 0 deletions test/faker/japanese_media/test_faker_cowboy_bebop.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerCowboyBebop < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::CowboyBebop
end

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

def test_episode
assert_match(/\w+/, @tester.episode)
end

def test_song
assert_match(/\w+/, @tester.song)
end

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

0 comments on commit 05a5e1e

Please sign in to comment.