From 5699e9c2c168d57af38718b86ff3872cc8515881 Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Fri, 4 Nov 2022 21:41:21 +0100 Subject: [PATCH 01/12] Cowboy-Bebop en locale --- lib/locales/en/cowboy_bebop.yml | 171 ++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 lib/locales/en/cowboy_bebop.yml diff --git a/lib/locales/en/cowboy_bebop.yml b/lib/locales/en/cowboy_bebop.yml new file mode 100644 index 0000000000..3cbd9101c6 --- /dev/null +++ b/lib/locales/en/cowboy_bebop.yml @@ -0,0 +1,171 @@ +en: + faker: + conan: + characters: + - 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 + + episodes: + - 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 + + songs: + - 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 + + quotes: + - 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. From b12dce102e43f4627a7d0cea148ec4d4b0b7915e Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Fri, 4 Nov 2022 21:51:49 +0100 Subject: [PATCH 02/12] Add Cowboy Bebop class --- lib/faker/japanese_media/cowboy_bebop.rb | 61 ++++++++++++++++++++++++ lib/locales/en/cowboy_bebop.yml | 8 ++-- 2 files changed, 65 insertions(+), 4 deletions(-) create mode 100644 lib/faker/japanese_media/cowboy_bebop.rb diff --git a/lib/faker/japanese_media/cowboy_bebop.rb b/lib/faker/japanese_media/cowboy_bebop.rb new file mode 100644 index 0000000000..22944144ec --- /dev/null +++ b/lib/faker/japanese_media/cowboy_bebop.rb @@ -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 songs + fetch('cowboy_bebop.qoute') + end + end + end + end +end diff --git a/lib/locales/en/cowboy_bebop.yml b/lib/locales/en/cowboy_bebop.yml index 3cbd9101c6..c317692f9d 100644 --- a/lib/locales/en/cowboy_bebop.yml +++ b/lib/locales/en/cowboy_bebop.yml @@ -1,7 +1,7 @@ en: faker: conan: - characters: + character: - Edward - Ein - Faye Valentine @@ -45,7 +45,7 @@ en: - Whitney Hagas Matsumoto - Zebra - episodes: + episode: - Asteroid Blues - Stray Dog Strut - Honky Tonk Women @@ -73,7 +73,7 @@ en: - The Real Folk Blues part 1 - The Real Folk Blues part 2 - songs: + song: - Tank! - Rush - Spokey Dokey @@ -150,7 +150,7 @@ en: - No Money. - Rain - quotes: + 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. From 505d5288975b9d11941c67af23e9dac6b08a5c10 Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Fri, 4 Nov 2022 22:29:14 +0100 Subject: [PATCH 03/12] Add cowboy_bebop tests --- lib/faker/japanese_media/cowboy_bebop.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/faker/japanese_media/cowboy_bebop.rb b/lib/faker/japanese_media/cowboy_bebop.rb index 22944144ec..7df7f70c6c 100644 --- a/lib/faker/japanese_media/cowboy_bebop.rb +++ b/lib/faker/japanese_media/cowboy_bebop.rb @@ -52,10 +52,11 @@ def song # Faker::JapaneseMedia::CowboyBebop.quote #=> "Bang!" # # @faker.version next - def songs - fetch('cowboy_bebop.qoute') + def quote + fetch('cowboy_bebop.quote') end end end end end + From 8e724d3b0798dcca4cfabd42d3cad7c5da61ab61 Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Fri, 4 Nov 2022 22:31:09 +0100 Subject: [PATCH 04/12] Add Faker::JapaneseMedia::CowboyBebop --- lib/locales/en/cowboy_bebop.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/lib/locales/en/cowboy_bebop.yml b/lib/locales/en/cowboy_bebop.yml index c317692f9d..bd1c80e0ca 100644 --- a/lib/locales/en/cowboy_bebop.yml +++ b/lib/locales/en/cowboy_bebop.yml @@ -1,6 +1,6 @@ en: faker: - conan: + cowboy_bebop: character: - Edward - Ein @@ -151,21 +151,13 @@ en: - 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. + - "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." From 549ba01fa72a1d50433d2eeb17cd997accbee45e Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Fri, 4 Nov 2022 22:32:14 +0100 Subject: [PATCH 05/12] Add Cowboy Bebop tests --- lib/faker/japanese_media/cowboy_bebop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faker/japanese_media/cowboy_bebop.rb b/lib/faker/japanese_media/cowboy_bebop.rb index 7df7f70c6c..5cf9314439 100644 --- a/lib/faker/japanese_media/cowboy_bebop.rb +++ b/lib/faker/japanese_media/cowboy_bebop.rb @@ -49,7 +49,7 @@ def song # @return [String] # # @example - # Faker::JapaneseMedia::CowboyBebop.quote #=> "Bang!" + # Faker::JapaneseMedia::CowboyBebop.quote #=> "Bang!!" # # @faker.version next def quote From 536c3197e4d62e2e3baf6605e594a211f5afa6f8 Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Fri, 4 Nov 2022 22:32:40 +0100 Subject: [PATCH 06/12] Add CowboyBebop class --- lib/faker/japanese_media/cowboy_bebop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faker/japanese_media/cowboy_bebop.rb b/lib/faker/japanese_media/cowboy_bebop.rb index 5cf9314439..6685c67060 100644 --- a/lib/faker/japanese_media/cowboy_bebop.rb +++ b/lib/faker/japanese_media/cowboy_bebop.rb @@ -49,7 +49,7 @@ def song # @return [String] # # @example - # Faker::JapaneseMedia::CowboyBebop.quote #=> "Bang!!" + # Faker::JapaneseMedia::CowboyBebop.quote #=> "Bang!!!" # # @faker.version next def quote From 431fd51da498142aa6dea477c60b81228a914ebf Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Fri, 4 Nov 2022 22:33:46 +0100 Subject: [PATCH 07/12] Enable Rubocop Minitest --- .../japanese_media/test_faker_cowboy_bebop.rb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/faker/japanese_media/test_faker_cowboy_bebop.rb diff --git a/test/faker/japanese_media/test_faker_cowboy_bebop.rb b/test/faker/japanese_media/test_faker_cowboy_bebop.rb new file mode 100644 index 0000000000..6e4e90052c --- /dev/null +++ b/test/faker/japanese_media/test_faker_cowboy_bebop.rb @@ -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 From b765023fdabdbbee0ce3940bc1b7eaa7c666dc82 Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Sat, 5 Nov 2022 10:38:22 +0100 Subject: [PATCH 08/12] Add Faker::JapaneseMedia::CowboyBebop --- doc/japanese_media/cowboy_bebop.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/japanese_media/cowboy_bebop.md diff --git a/doc/japanese_media/cowboy_bebop.md b/doc/japanese_media/cowboy_bebop.md new file mode 100644 index 0000000000..819db4b486 --- /dev/null +++ b/doc/japanese_media/cowboy_bebop.md @@ -0,0 +1,10 @@ +# Faker::JapaneseMedia::CowboyBebop + +Available since version 1.8.0. + +```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!" +``` \ No newline at end of file From 8b0dac5d0cb0c4d59b717002b35312c14d94a386 Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Sat, 5 Nov 2022 10:40:35 +0100 Subject: [PATCH 09/12] Add Faker::JapaneseMedia::CowboyBebop --- README.md | 1 + doc/japanese_media/cowboy_bebop.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 92e9db0cc9..66a59a15d0 100644 --- a/README.md +++ b/README.md @@ -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::DragonBall](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) diff --git a/doc/japanese_media/cowboy_bebop.md b/doc/japanese_media/cowboy_bebop.md index 819db4b486..5c2d87c12f 100644 --- a/doc/japanese_media/cowboy_bebop.md +++ b/doc/japanese_media/cowboy_bebop.md @@ -1,6 +1,6 @@ # Faker::JapaneseMedia::CowboyBebop -Available since version 1.8.0. +Available since version 3.0.0. ```ruby Faker::JapaneseMedia::CowboyBebop.character #=> "Spike Spiegel" From b2024872b1a4a931e5704292f580cfba4de19684 Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Sat, 5 Nov 2022 10:50:21 +0100 Subject: [PATCH 10/12] Add Faker::JapaneseMedia::CowboyBebop md information --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 66a59a15d0..78aaf7c915 100644 --- a/README.md +++ b/README.md @@ -271,7 +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::DragonBall](doc/japanese_media/cowboy_bebop.md) + - [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) From ef39359b8bcae6a84c010d2d89f9de4ba37be96c Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Sat, 5 Nov 2022 19:48:55 +0100 Subject: [PATCH 11/12] Appease rubocop --- lib/faker/japanese_media/cowboy_bebop.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/faker/japanese_media/cowboy_bebop.rb b/lib/faker/japanese_media/cowboy_bebop.rb index 6685c67060..a8d3f523eb 100644 --- a/lib/faker/japanese_media/cowboy_bebop.rb +++ b/lib/faker/japanese_media/cowboy_bebop.rb @@ -59,4 +59,3 @@ def quote end end end - From b3d2b79152317c3ffa60dab23ef6681324f91aad Mon Sep 17 00:00:00 2001 From: Ivan Pavlovic Date: Sat, 5 Nov 2022 19:56:06 +0100 Subject: [PATCH 12/12] Change version to next --- doc/japanese_media/cowboy_bebop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/japanese_media/cowboy_bebop.md b/doc/japanese_media/cowboy_bebop.md index 5c2d87c12f..2b0229d801 100644 --- a/doc/japanese_media/cowboy_bebop.md +++ b/doc/japanese_media/cowboy_bebop.md @@ -1,6 +1,6 @@ # Faker::JapaneseMedia::CowboyBebop -Available since version 3.0.0. +Available since version @faker.version next ```ruby Faker::JapaneseMedia::CowboyBebop.character #=> "Spike Spiegel"