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 Studio Ghibli #2124

Merged
merged 1 commit into from
Sep 24, 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'mast
### Japanese Media
- [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)
- [Faker::JapaneseMedia::SwordArtOnline](doc/japanese_media/sword_art_online.md)

### Movies
Expand Down
9 changes: 9 additions & 0 deletions doc/japanese_media/studio_ghibli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Faker::JapaneseMedia::StudioGhibli

```ruby
Faker::JapaneseMedia::StudioGhibli.character #=> "Howl Jenkins Pendragon"

Faker::JapaneseMedia::StudioGhibli.quote #=> "Here's another curse for you, may all your bacon burn."

Faker::JapaneseMedia::StudioGhibli.movie #=> "Howl's Moving Castle"
```
48 changes: 48 additions & 0 deletions lib/faker/japanese_media/studio_ghibli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# frozen_string_literal: true

module Faker
class JapaneseMedia
class StudioGhibli < Base
class << self
##
# Produces a character from the Studio Ghibli.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::StudioGhibli.character #=> "Chihiro"
#
# @faker.version next
def character
fetch('studio_ghibli.characters')
end

##
# Produces a quote from Studio Ghibli's movies.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::StudioGhibli.quote #=> "One thing you can always count on is that hearts change."
#
# @faker.version next
def quote
fetch('studio_ghibli.quotes')
end

##
# Produces a movie from Studio Ghibli.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::StudioGhibli.movie #=> "Kiki's Delivery Service"
#
# @faker.version next
def movie
fetch('studio_ghibli.movies')
end
end
end
end
end
93 changes: 93 additions & 0 deletions lib/locales/en/studio_ghibli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
en:
faker:
studio_ghibli:
characters:
- Chihiro Ogino
- Traveling Soot
- Yubaba
- Haku
- No-Face
- Zeniba
- Kamaji
- Howl Jenkins Pendragon
- Sophie Hatter
- Witch of the Waste
- Lettie Hatter
- Calcifer
- Markl
- Tunip Head
- Suliman
- Pazu
- Shiita
- Dola
- Louis
- Seita Yokokawa
- Setsuko Yokokawa
- Kiyoshi Yokokawa
- Ponyo
- Fujimoto
- Granmamare
- Sōsuke
- Lisa
- Kōichi
- Ashitaka
- San
- Jiko-bō
- Lady Eboshi
- Moro
- Nausicaä
- Jhil
- Yupa
- Obaba Hisako
- Marco Pagot
- Gina
- Fio Piccolo
- Donald Curtis
- Mamma Aiuto
- Capo
- Mr. Piccolo
- Bellini
- Jiji
- Kiki the Witch
- Tombo Kopoli
- Osono
- Ursula
- Totoro
- Mei Kusakabe
- Catbus
- Satsuki Kusakabe
- Tatsuo Kusakabe
- Kanta Ōgaki
- Yasuko Kusakabe
quotes:
- It’s not really important what color your dress is. What matters is the heart inside.
- We each need to find our own inspiration, Kiki. Sometimes it’s not easy.
- Maybe I can stay and find some other nice people who will like me and accept me for who I am.
- Something you wouldn't recognize. It’s called love.
- Once you do something, you never forget. Even if you can't remember.
- Here's another curse for you, may all your bacon burn.
- I'm going up to my room now, where I may die.
- Really, these wizards! You'd think no one had ever had a cold before! Well, what is it?
- I give up. I see no point in living if I can’t be beautiful.
- Life is suffering. It is hard. The world is cursed. But still you find reasons to keep living.
- Look, everyone! This is what hatred looks like! This is what it does when it catches hold of you! It's eating me alive, and very soon now it will kill me! Fear and anger only make it grow faster!
- These days, there are angry ghosts all around us. Dead from wars, sickness, starvation, and nobody cares. So - you say you're under a curse. So what, so's the whole damn world.
- It's not really important what color your dress is. What matters is the heart inside. I think something's wrong with me. I make friends, then suddenly I can't bear to be with any of them. Seems like that other me, the cheerful and honest one, went away somewhere.
movies:
- Spirited Away
- Kiki's Delivery Service
- My Neighbour Totoro
- Howl's Moving Castle
- Princess Mononoke
- Porco Rosso
- The Cat Returns
- Ponyo
- Nausicaä of the Valley of the Wind
- Castle in the Sky
- Grave of the Fireflies
- Arietty
- Tales from Earthsea
- From Up on Poppy Hill
- The Wind Rises
- The Tale of the Princess Kaguya
- My Neighbors the Yamadas
21 changes: 21 additions & 0 deletions test/faker/japanese_media/test_faker_studio_ghibli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerJapaneseMediaStudioGhibli < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::StudioGhibli
end

def test_character
assert @tester.character.match(/\w+/)
end

def test_quote
assert @tester.quote.match(/\w+/)
end

def test_movie
assert @tester.movie.match(/\w+/)
end
end