Skip to content

Commit

Permalink
Merge pull request #66 from sue445/feature/go_princess_precure_0.2.0
Browse files Browse the repository at this point in the history
Support Go! Princess Precure and Spring Carnival
  • Loading branch information
sue445 committed Feb 22, 2015
2 parents 9d75e82 + 7779020 commit 163d38c
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 19 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## master
[full changelog](http://github.com/sue445/rubicure/compare/v0.2.2.1...master)
[full changelog](http://github.com/sue445/rubicure/compare/v0.2.3...master)

## v0.2.2
[full changelog](http://github.com/sue445/rubicure/compare/v0.2.2.1...v0.2.3)

* Add Go! Princess Precure
* https://github.com/sue445/rubicure/pull/66

## v0.2.2.1
[full changelog](http://github.com/sue445/rubicure/compare/v0.2.2...v0.2.2.1)
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ Precure.all_stars.select(&:pink?).map(&:precure_name)

Precure.all_stars.select(&:yellow?).map(&:precure_name)
#=> ["シャイニールミナス", "キュアレモネード", "キュアパイン", "キュアサンシャイン", "キュアミューズ", "キュアピース", "キュアロゼッタ", "キュアハニー"]

Precure.all_stars.group_by{ |girl| girl.color }.map{ |color, girls| [color, girls.count] }.sort_by{ |color, girl_count| girl_count }.reverse
#=> [["pink", 9], ["yellow", 9], ["blue", 8], ["purple", 4], ["red", 4], ["white", 3], ["green", 2], ["black", 1]]
```

## More reference
Expand Down
59 changes: 59 additions & 0 deletions config/girls/012_go_princess.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
cure_flora: &cure_flora
human_name: 春野はるか
precure_name: キュアフローラ
cast_name: 嶋村侑
color: pink
created_date: 2015-02-01 # episode 1
transform_message: |-
プリキュア!プリンセスエンゲージ!
咲き誇る花のプリンセス!キュアフローラ!
extra_names:
attack_messages:
- |
エクスチェンジ!モードエレガント!
舞え、花よ!プリキュア・フローラル・トルビヨン!
(ドリーミング)
ごきげんよう
transform_calls:
cure_mermaid: &cure_mermaid
human_name: 海藤みなみ
precure_name: キュアマーメイド
cast_name: 浅野真澄
color: blue
created_date: 2015-02-08 # episode 2
transform_message: |-
プリキュア!プリンセスエンゲージ!
澄み渡る海のプリンセス!キュアマーメイド!
extra_names:
attack_messages:
- |
エクスチェンジ!モードエレガント!
高鳴れ、海よ!プリンセス・マーメイド・リップル!
(ドリーミング)
ごきげんよう
transform_calls:
- princess_engage
cure_twinkle: &cure_twinkle
human_name: 天ノ川きらら
precure_name: キュアトゥインクル
cast_name: 山村響
color: yellow
created_date: 2015-02-22 # episode 4
transform_message: |-
プリキュア!プリンセスエンゲージ!
きらめく星のプリンセス!キュアトゥインクル!
extra_names:
attack_messages:
- |
エクスチェンジ!モードエレガント!
キラキラ、星よ!プリンセス・トゥインクル・ハミング!
(ドリーミング)
ごきげんよう
transform_calls:
- princess_engage
flora:
<<: *cure_flora
mermaid:
<<: *cure_mermaid
twinkle:
<<: *cure_twinkle
6 changes: 6 additions & 0 deletions config/movies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ ns3: &ns3
started_date: 2014-03-15
new_stage3:
<<: *ns3
#######################################################
sc: &sc
title: 映画 プリキュアオールスターズ 春のカーニバル
started_date: 2015-03-14
spring_carnival:
<<: *sc
11 changes: 11 additions & 0 deletions config/series.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,14 @@ happiness_charge: &happiness_charge
- cure_fortune
happiness_charge_precure:
<<: *happiness_charge
#######################################################
go_princess: &go_princess
title: Go!プリンセスプリキュア
started_date: 2015-02-01
# ended_date: 2016-01-
girls:
- cure_flora
- cure_mermaid
- cure_twinkle
go_princess_precure:
<<: *go_princess
39 changes: 21 additions & 18 deletions spec/core_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
context "Without arg" do
subject { instance.all_stars }

let(:precure_count){ 37 }
let(:precure_count){ 40 }

its(:count) { should == precure_count }
end
Expand All @@ -72,23 +72,26 @@

where(:arg, :expected_count) do
[
["2009-03-20" , 14],
[Date.parse("2010-03-20"), 17],
[Time.parse("2011-03-19"), 21],

[:dx , 14],
[:dx1 , 14],
[:dx2 , 17],
[:dx3 , 21],

[:ns , 28],
[:ns1 , 28],
[:new_stage , 28],
[:new_stage1, 28],
[:ns2 , 32],
[:new_stage2, 32],
[:ns3 , 36],
[:new_stage3, 36],
["2009-03-20", 14],
[Date.parse("2010-03-20"), 17],
[Time.parse("2011-03-19"), 21],

[:dx, 14],
[:dx1, 14],
[:dx2, 17],
[:dx3, 21],

[:ns, 28],
[:ns1, 28],
[:new_stage, 28],
[:new_stage1, 28],
[:ns2, 32],
[:new_stage2, 32],
[:ns3, 36],
[:new_stage3, 36],

[:sc, 40],
[:spring_carnival, 40],
]
end

Expand Down
1 change: 1 addition & 0 deletions spec/movie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:ns1,
:ns2,
:ns3,
:sc,
]
end

Expand Down
1 change: 1 addition & 0 deletions spec/series_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
:smile,
:dokidoki,
:happiness_charge,
:go_princess,
]
end

Expand Down

0 comments on commit 163d38c

Please sign in to comment.