rubicure 1.3.5 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +2 -4
- data/.rubocop.yml +14 -5
- data/CHANGELOG.md +36 -1
- data/Gemfile +0 -18
- data/README.md +39 -23
- data/config/girls/018_tropical_rouge.yml +145 -0
- data/config/series.yml +15 -1
- data/lib/rubicure.rb +10 -7
- data/lib/rubicure/core.rb +4 -4
- data/lib/rubicure/cure_peace.rb +8 -5
- data/lib/rubicure/movie.rb +1 -1
- data/lib/rubicure/series.rb +1 -1
- data/lib/rubicure/version.rb +1 -1
- data/rubicure.gemspec +7 -4
- data/spec/rubicure/core_spec.rb +1 -1
- data/spec/rubicure/girl_spec.rb +10 -10
- data/spec/rubicure/rubicure_spec.rb +47 -45
- data/spec/rubicure/series_spec.rb +8 -5
- data/spec/spec_helper.rb +2 -1
- metadata +53 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e876905265c2be67f43569f92acb97365296ca732f0a640ae7ad37d814e0bc3
|
4
|
+
data.tar.gz: 3e3929915de0493ef96c6bd1a431d955d9471dac03d3a02e108f1e6d8e9d5c00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63a8e1040322a2863fc06ae7b700bf48b6d682ecd0ab55a2a3138da5c4f499afa0ad2ab47212660b174dadd7c1a30143c56224da3373807da1c31606022fe566
|
7
|
+
data.tar.gz: dbb82a33e27c357943c7056ddf9efdcfce621c5ab111bc328636c6749cd7034b87cd307896198324dc6cd9e8a8b63463a1f88f1a4b5ac425b839350bb1806927
|
data/.github/workflows/test.yml
CHANGED
@@ -27,12 +27,11 @@ jobs:
|
|
27
27
|
|
28
28
|
matrix:
|
29
29
|
ruby:
|
30
|
-
- ruby:2.2
|
31
|
-
- ruby:2.3
|
32
30
|
- ruby:2.4
|
33
31
|
- ruby:2.5
|
34
32
|
- ruby:2.6
|
35
33
|
- ruby:2.7
|
34
|
+
- ruby:3.0
|
36
35
|
- rubylang/ruby:master-nightly-bionic
|
37
36
|
include:
|
38
37
|
- ruby: rubylang/ruby:master-nightly-bionic
|
@@ -63,7 +62,6 @@ jobs:
|
|
63
62
|
with:
|
64
63
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
65
64
|
command: before-build
|
66
|
-
if: matrix.ruby >= 'ruby:2.4'
|
67
65
|
continue-on-error: true
|
68
66
|
|
69
67
|
- run: bundle exec rspec
|
@@ -79,7 +77,7 @@ jobs:
|
|
79
77
|
with:
|
80
78
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
81
79
|
command: after-build
|
82
|
-
if:
|
80
|
+
if: always()
|
83
81
|
continue-on-error: true
|
84
82
|
|
85
83
|
- run: bundle exec rubocop
|
data/.rubocop.yml
CHANGED
@@ -1,17 +1,26 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-performance
|
3
|
+
- rubocop-rake
|
4
|
+
|
1
5
|
inherit_gem:
|
2
6
|
onkcop:
|
3
7
|
- "config/rubocop.yml"
|
4
8
|
- "config/rspec.yml"
|
9
|
+
- "config/performance.yml"
|
5
10
|
|
6
11
|
AllCops:
|
7
|
-
TargetRubyVersion: 2.
|
12
|
+
TargetRubyVersion: 2.4
|
13
|
+
NewCops: enable
|
8
14
|
|
9
|
-
|
15
|
+
Layout/HashAlignment:
|
16
|
+
EnforcedHashRocketStyle: table
|
17
|
+
EnforcedColonStyle: table
|
18
|
+
|
19
|
+
RSpec/MultipleMemoizedHelpers:
|
10
20
|
Enabled: false
|
11
21
|
|
12
|
-
RSpec/
|
22
|
+
RSpec/NestedGroups:
|
13
23
|
Enabled: false
|
14
24
|
|
15
|
-
|
16
|
-
Layout/IndentHeredoc:
|
25
|
+
RSpec/SharedExamples:
|
17
26
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,40 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubicure/compare/
|
2
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v2.1.2...master)
|
3
|
+
|
4
|
+
## v2.1.2
|
5
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v2.1.1...v2.1.2)
|
6
|
+
|
7
|
+
* Add CureLamer
|
8
|
+
* https://github.com/sue445/rubicure/pull/254
|
9
|
+
|
10
|
+
## v2.1.1
|
11
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v2.1.0...v2.1.1)
|
12
|
+
|
13
|
+
* Tweak transform message of TropicalRoute Precure
|
14
|
+
* https://github.com/sue445/rubicure/pull/253
|
15
|
+
|
16
|
+
## v2.1.0
|
17
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v2.0.1...v2.1.0)
|
18
|
+
|
19
|
+
* Add Tropical-Rouge! Precure :ocean:
|
20
|
+
* https://github.com/sue445/rubicure/pull/246
|
21
|
+
|
22
|
+
## v2.0.1
|
23
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v2.0.0...v2.0.1)
|
24
|
+
|
25
|
+
* Add ended_date of Healingood precure
|
26
|
+
* https://github.com/sue445/rubicure/pull/252
|
27
|
+
|
28
|
+
## v2.0.0
|
29
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v1.3.5...v2.0.0)
|
30
|
+
|
31
|
+
### Breaking changes :bomb:
|
32
|
+
* Drop support for ruby 2.2 and 2.3
|
33
|
+
* https://github.com/sue445/rubicure/pull/249
|
34
|
+
|
35
|
+
### Others
|
36
|
+
* update rubocop gems
|
37
|
+
* https://github.com/sue445/rubicure/pull/250
|
3
38
|
|
4
39
|
## v1.3.5
|
5
40
|
[full changelog](http://github.com/sue445/rubicure/compare/v1.3.4...v1.3.5)
|
data/Gemfile
CHANGED
@@ -3,25 +3,7 @@ source "https://rubygems.org"
|
|
3
3
|
# Specify your gem's dependencies in rubicure.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
|
7
|
-
gem "backport_dig"
|
8
|
-
|
9
|
-
# i18n v1.5.1+ requires Ruby 2.3.0+
|
10
|
-
gem "i18n", "< 1.5.1"
|
11
|
-
|
12
|
-
# N0TE: unparser v0.5.0+ requires ruby 2.3.0+
|
13
|
-
gem "unparser", "< 0.5.0"
|
14
|
-
end
|
15
|
-
|
16
6
|
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
|
17
7
|
# activesupport v6.0.0+ requires Ruby 2.5.0+
|
18
8
|
gem "activesupport", "< 6.0.0"
|
19
9
|
end
|
20
|
-
|
21
|
-
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
|
22
|
-
# byebug v11.0.0+ requires Ruby 2.3.0+ and byebug v11.1.0+ requires Ruby 2.4.0+
|
23
|
-
gem "byebug", "< 11.0.0"
|
24
|
-
|
25
|
-
# simplecov-html 0.11.0+ requires Ruby 2.4.0
|
26
|
-
gem "simplecov-html", "< 0.11.0"
|
27
|
-
end
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ see followings
|
|
22
22
|
|
23
23
|
## Requirements
|
24
24
|
|
25
|
-
* ruby >= 2.
|
25
|
+
* ruby >= 2.4
|
26
26
|
* more: [.github/workflows/test.yml](.github/workflows/test.yml)
|
27
27
|
|
28
28
|
## Installation
|
@@ -102,7 +102,7 @@ Or install it yourself as:
|
|
102
102
|
=> "HUGっと!プリキュア"
|
103
103
|
|
104
104
|
>> Precure.dokidoki
|
105
|
-
=> {:series_name=>"dokidoki", :title=>"ドキドキ!プリキュア", :started_date
|
105
|
+
=> {:series_name=>"dokidoki", :title=>"ドキドキ!プリキュア", :started_date=>#<Date: 2013-02-03 ((2456327j,0s,0n),+0s,2299161j)>, :ended_date=>#<Date: 2014-01-26 ((2456684j,0s,0n),+0s,2299161j)>, :girls=>["cure_heart", "cure_diamond", "cure_rosetta", "cure_sword", "cure_ace"]}
|
106
106
|
```
|
107
107
|
|
108
108
|
other pattern
|
@@ -119,7 +119,7 @@ and [more aliases!](config/series.yml)
|
|
119
119
|
|
120
120
|
```ruby
|
121
121
|
>> Precure.now
|
122
|
-
=> {:series_name=>"
|
122
|
+
=> {:series_name=>"tropical_rouge", :title=>"トロピカル~ジュ!プリキュア", :started_date=>#<Date: 2021-02-28 ((2459274j,0s,0n),+0s,2299161j)>, :girls=>["cure_summer", "cure_coral", "cure_papaya", "cure_flamingo", "cure_lamer"]}
|
123
123
|
|
124
124
|
# -2013/1/27 : smile precure
|
125
125
|
# 2013/2/5 - : dokidoki precure
|
@@ -145,7 +145,7 @@ Precure.now
|
|
145
145
|
=> 5
|
146
146
|
|
147
147
|
>> Precure.smile.girls.first
|
148
|
-
=> {:girl_name=>"cure_happy", :human_name=>"星空みゆき", :precure_name=>"キュアハッピー", :cast_name=>"福圓美里", :created_date
|
148
|
+
=> {:girl_name=>"cure_happy", :human_name=>"星空みゆき", :precure_name=>"キュアハッピー", :cast_name=>"福圓美里", :created_date=>#<Date: 2012-02-05 ((2455963j,0s,0n),+0s,2299161j)>, :color=>"pink", :transform_message=>"(レディ?)\nプリキュア・スマイルチャージ!\n(ゴー!ゴー!レッツ・ゴー!ハッピー!!)\nキラキラ輝く未来の光! キュアハッピー!\n5つの光が導く未来!\n輝け!スマイルプリキュア!", :extra_names=>["プリンセスハッピー", "ウルトラハッピー"], :attack_messages=>["プリキュア!ハッピーシャワー!!", "開け、ロイヤルクロック!\n(みんなの力を1つにするクル!)\n届け、希望の光!\nはばたけ!光り輝く未来へ!\nプリキュア!ロイヤルレインボーバースト!", "(みんなの力を1つにするクル!)\nプリキュア!ミラクルレインボーバースト!\n輝けー!!\nスマイルプリキュア!!"], :transform_calls=>["smile_charge"]}
|
149
149
|
|
150
150
|
>> Precure.smile.girls.map(&:human_name)
|
151
151
|
=> ["星空みゆき", "日野あかね", "黄瀬やよい", "緑川なお", "青木れいか"]
|
@@ -160,31 +160,31 @@ Precure.now
|
|
160
160
|
### Select own precure girl
|
161
161
|
```ruby
|
162
162
|
>> Cure.lemonade
|
163
|
-
=> {:girl_name=>"cure_lemonade", :human_name=>"春日野うらら", :precure_name=>"キュアレモネード", :cast_name=>"伊瀬茉莉也", :created_date
|
163
|
+
=> {:girl_name=>"cure_lemonade", :human_name=>"春日野うらら", :precure_name=>"キュアレモネード", :cast_name=>"伊瀬茉莉也", :created_date=>#<Date: 2007-02-18 ((2454150j,0s,0n),+0s,2299161j)>, :color=>"yellow", :transform_message=>"プリキュア!メタモルフォーゼ!\nはじけるレモンの香り、キュアレモネード!\n希望の力と未来の光!\n華麗に羽ばたく5つの心!\nYes!プリキュア5!", :extra_names=>nil, :attack_messages=>["輝く乙女のはじける力、受けてみなさい!\nプリキュア!プリズム・チェーン!"], :transform_calls=>["metamorphose"]}
|
164
164
|
|
165
165
|
>> Cure.pine
|
166
|
-
=> {:girl_name=>"cure_pine", :human_name=>"山吹祈里", :precure_name=>"キュアパイン", :cast_name=>"中川亜紀子", :created_date
|
166
|
+
=> {:girl_name=>"cure_pine", :human_name=>"山吹祈里", :precure_name=>"キュアパイン", :cast_name=>"中川亜紀子", :created_date=>#<Date: 2009-02-15 ((2454878j,0s,0n),+0s,2299161j)>, :color=>"yellow", :transform_message=>"チェインジ!プリキュア・ビートアップ!\nイエローハートは祈りのしるし!\nとれたてフレッシュ、キュアパイン!\nレッツプリキュア!", :extra_names=>["キュアエンジェルパイン"], :attack_messages=>["悪いの悪いの飛んでいけ!\nプリキュア!ヒーリングプレアーフレッシュ!"], :transform_calls=>["change_precure_beat_up", "change", "beat_up"]}
|
167
167
|
|
168
168
|
>> Cure.sunshine
|
169
|
-
=> {:girl_name=>"cure_sunshine", :human_name=>"明堂院いつき", :precure_name=>"キュアサンシャイン", :cast_name=>"桑島法子", :created_date
|
169
|
+
=> {:girl_name=>"cure_sunshine", :human_name=>"明堂院いつき", :precure_name=>"キュアサンシャイン", :cast_name=>"桑島法子", :created_date=>#<Date: 2010-07-18 ((2455396j,0s,0n),+0s,2299161j)>, :color=>"yellow", :transform_message=>"(プリキュアの種、いくですぅ!)\nプリキュア!オープンマイハート!\n陽の光浴びる一輪の花! キュアサンシャイン!\nハートキャッチ、プリキュア!", :extra_names=>["スーパーキュアサンシャイン"], :attack_messages=>["花よ、舞い踊れ!\nプリキュア!ゴールドフォルテバースト!!", "花よ、咲き誇れ!\nプリキュア・ハートキャッチ・オーケストラ!!"], :transform_calls=>["open_my_heart"]}
|
170
170
|
|
171
171
|
>> Cure.muse
|
172
|
-
=> {:girl_name=>"cure_muse", :human_name=>"調辺アコ", :precure_name=>"キュアミューズ", :cast_name=>"大久保瑠美", :created_date
|
172
|
+
=> {:girl_name=>"cure_muse", :human_name=>"調辺アコ", :precure_name=>"キュアミューズ", :cast_name=>"大久保瑠美", :created_date=>#<Date: 2011-10-16 ((2455851j,0s,0n),+0s,2299161j)>, :color=>"yellow", :transform_message=>"レッツプレイ!プリキュアモジュレーション!!\n爪弾くは女神の調べ! キュアミューズ!\n届け4人の組曲!スイートプリキュア!", :extra_names=>["クレッシェンドミューズ"], :attack_messages=>["おいで、シリー!\nシの音符の、シャイニングメロディ!\nプリキュア!スパークリングシャワー!!\n三拍子!1、2、3\nフィナーレ!", "届けましょう、希望のシンフォニー!\nプリキュア!スイートセッションアンサンブル!\nクレッシェンド!!\nフィナーレ!"], :transform_calls=>["lets_play_precure_modulation", "lets_play", "modulation"]}
|
173
173
|
|
174
174
|
>> Cure.peace
|
175
|
-
=> {:girl_name=>"cure_peace", :human_name=>"黄瀬やよい", :precure_name=>"キュアピース", :cast_name=>"金元寿子", :created_date
|
175
|
+
=> {:girl_name=>"cure_peace", :human_name=>"黄瀬やよい", :precure_name=>"キュアピース", :cast_name=>"金元寿子", :created_date=>#<Date: 2012-02-19 ((2455977j,0s,0n),+0s,2299161j)>, :color=>"yellow", :transform_message=>"(レディ?)\nプリキュア・スマイルチャージ!\n(ゴー!ゴー!レッツ・ゴー!ピース!!)\nピカピカピカリンジャンケンポン! キュアピース!\n5つの光が導く未来!\n輝け!スマイルプリキュア!", :extra_names=>["プリンセスピース", "ウルトラピース"], :attack_messages=>["プリキュア!ピースサンダー!!", "開け、ロイヤルクロック!\n(みんなの力を1つにするクル!)\n届け、希望の光!\nはばたけ!光り輝く未来へ!\nプリキュア!ロイヤルレインボーバースト!", "(みんなの力を1つにするクル!)\nプリキュア!ミラクルレインボーバースト!\n輝けー!!\nスマイルプリキュア!!"], :transform_calls=>["smile_charge"]}
|
176
176
|
|
177
177
|
>> Cure.rosetta
|
178
|
-
=>
|
178
|
+
=> {:girl_name=>"cure_rosetta", :human_name=>"四葉ありす", :precure_name=>"キュアロゼッタ", :cast_name=>"渕上舞", :created_date=>#<Date: 2013-02-24 ((2456348j,0s,0n),+0s,2299161j)>, :color=>"yellow", :birthday=>"5/28", :transform_message=>"プリキュアラブリンク!\nL! O! V! E!\nひだまりポカポカ キュアロゼッタ!\n響け愛の鼓動!ドキドキプリキュア!\n世界を制するのは愛だけです、\nさぁ、あなたも私と愛を育んでくださいな", :extra_names=>nil, :attack_messages=>["カッチカチの!ロゼッタウォール!"], :transform_calls=>["love_link"]}
|
179
179
|
|
180
180
|
>> Cure.honey
|
181
|
-
=> {:girl_name=>"cure_honey", :human_name=>"大森ゆうこ", :precure_name=>"キュアハニー", :cast_name=>"北川里奈", :created_date
|
181
|
+
=> {:girl_name=>"cure_honey", :human_name=>"大森ゆうこ", :precure_name=>"キュアハニー", :cast_name=>"北川里奈", :created_date=>#<Date: 2014-03-15 ((2456732j,0s,0n),+0s,2299161j)>, :color=>"yellow", :transform_message=>"(かわルンルン!)\nプリキュアくるりんミラーチェンジ!\n大地に実る命の光!キュアハニー!\nハピネス注入!幸せチャージ!\nハピネスチャージプリキュア!", :extra_names=>["キュアハニー ポップコーンチア"], :attack_messages=>["命の光を聖なる力へ!\nハニーバトン!\nプリキュア!スパークリングバトンアタック!!\nイエイ!\n命よ、天に帰れ!\n(ゴクラ〜ク…)", "(かわルンルン!)\nプリキュアくるりんミラーチェンジ!ポップコーンチア!!\nプリキュア!リボンハートエクスプロージョン!!\nビクトリー!!", "(かわルンルン!)\nプリキュアくるりんミラーチェンジ!ココナッツサンバ!!\nプリキュア!マラカスリズムスパーク!!\nマンボ!!"], :transform_calls=>["kururin_mirror_change"]}
|
182
182
|
|
183
183
|
>> Shiny.luminous
|
184
|
-
=> {:girl_name=>"shiny_luminous", :human_name=>"九条ひかり", :precure_name=>"シャイニールミナス", :cast_name=>"田中理恵", :created_date
|
184
|
+
=> {:girl_name=>"shiny_luminous", :human_name=>"九条ひかり", :precure_name=>"シャイニールミナス", :cast_name=>"田中理恵", :created_date=>#<Date: 2005-03-06 ((2453436j,0s,0n),+0s,2299161j)>, :color=>"yellow", :birthday=>"9/9", :transform_message=>"ルミナス・シャイニングストリーム!\n輝く命、シャイニールミナス!\n光の心と光の意志、すべてを一つにするために!", :extra_names=>nil, :attack_messages=>["光の意志よ!私に勇気を!希望と力を!!\nルミナス・ハーティエル・アンクション!"], :transform_calls=>["shining_stream"]}
|
185
185
|
|
186
186
|
>> Milky.rose
|
187
|
-
=> {:girl_name=>"milky_rose", :human_name=>"美々野くるみ", :precure_name=>"ミルキィローズ", :cast_name=>"仙台エリ", :created_date
|
187
|
+
=> {:girl_name=>"milky_rose", :human_name=>"美々野くるみ", :precure_name=>"ミルキィローズ", :cast_name=>"仙台エリ", :created_date=>#<Date: 2008-04-06 ((2454563j,0s,0n),+0s,2299161j)>, :color=>"purple", :transform_message=>"スカイローズ・トランスレイト!\n青いバラは秘密のしるし! ミルキィローズ!", :extra_names=>nil, :attack_messages=>["邪悪な力を包み込む\nバラの吹雪を咲かせましょう!\nミルキィローズ・ブリザード!"], :transform_calls=>["sky_rose_translate", "translate"]}
|
188
188
|
```
|
189
189
|
|
190
190
|
and [more aliases!](config/girls/)
|
@@ -605,19 +605,22 @@ Go!プリンセスプリキュア
|
|
605
605
|
魔法つかいプリキュア!
|
606
606
|
キラキラ☆プリキュアアラモード
|
607
607
|
HUGっと!プリキュア
|
608
|
-
|
608
|
+
スター☆トゥインクルプリキュア
|
609
|
+
ヒーリングっど♥プリキュア
|
610
|
+
トロピカル~ジュ!プリキュア
|
611
|
+
=> [:unmarked, :max_heart, :splash_star, :yes, :yes_gogo, :fresh, :heart_catch, :suite, :smile, :dokidoki, :happiness_charge, :go_princess, :maho_girls, :a_la_mode, :hugtto, :star_twinkle, :healingood, :tropical_rouge]
|
609
612
|
|
610
613
|
>> Precure.inject([]){|girl_count_of_series, series| girl_count_of_series << series.girls.count; girl_count_of_series }
|
611
|
-
=> [2, 3, 2, 5, 6, 4, 4, 4, 5, 5, 4, 4, 3, 6, 5, 5, 4]
|
614
|
+
=> [2, 3, 2, 5, 6, 4, 4, 4, 5, 5, 4, 4, 3, 6, 5, 5, 4, 5]
|
612
615
|
|
613
616
|
>> Precure.map(&:title)
|
614
|
-
=> ["ふたりはプリキュア", "ふたりはプリキュア Max Heart", "ふたりはプリキュア Splash☆Star", "Yes! プリキュア5", "Yes! プリキュア5 Go Go!", "フレッシュプリキュア!", "ハートキャッチプリキュア!", "スイートプリキュア♪", "スマイルプリキュア!", "ドキドキ!プリキュア", "ハピネスチャージプリキュア!", "Go!プリンセスプリキュア", "魔法つかいプリキュア!", "キラキラ☆プリキュアアラモード", "HUGっと!プリキュア", "スター☆トゥインクルプリキュア", "ヒーリングっど♥プリキュア"]
|
617
|
+
=> ["ふたりはプリキュア", "ふたりはプリキュア Max Heart", "ふたりはプリキュア Splash☆Star", "Yes! プリキュア5", "Yes! プリキュア5 Go Go!", "フレッシュプリキュア!", "ハートキャッチプリキュア!", "スイートプリキュア♪", "スマイルプリキュア!", "ドキドキ!プリキュア", "ハピネスチャージプリキュア!", "Go!プリンセスプリキュア", "魔法つかいプリキュア!", "キラキラ☆プリキュアアラモード", "HUGっと!プリキュア", "スター☆トゥインクルプリキュア", "ヒーリングっど♥プリキュア", "トロピカル~ジュ!プリキュア"]
|
615
618
|
|
616
619
|
>> Precure.happiness_charge.map(&:precure_name)
|
617
620
|
=> ["キュアラブリー", "キュアプリンセス", "キュアハニー", "キュアフォーチュン"]
|
618
621
|
|
619
622
|
>> Precure.map{|series| series.map(&:precure_name) }
|
620
|
-
=> [["キュアブラック", "キュアホワイト"], ["キュアブラック", "キュアホワイト", "シャイニールミナス"], ["キュアブルーム", "キュアイーグレット"], ["キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア"], ["キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア", "ミルキィローズ"], ["キュアピーチ", "キュアベリー", "キュアパイン", "キュアパッション"], ["キュアブロッサム", "キュアマリン", "キュアサンシャイン", "キュアムーンライト"], ["キュアメロディ", "キュアリズム", "キュアビート", "キュアミューズ"], ["キュアハッピー", "キュアサニー", "キュアピース", "キュアマーチ", "キュアビューティ"], ["キュアハート", "キュアダイヤモンド", "キュアロゼッタ", "キュアソード", "キュアエース"], ["キュアラブリー", "キュアプリンセス", "キュアハニー", "キュアフォーチュン"], ["キュアフローラ", "キュアマーメイド", "キュアトゥインクル", "キュアスカーレット"], ["キュアミラクル", "キュアマジカル", "キュアフェリーチェ"], ["キュアホイップ", "キュアカスタード", "キュアジェラート", "キュアマカロン", "キュアショコラ", "キュアパルフェ"], ["キュアエール", "キュアアンジュ", "キュアエトワール", "キュアマシェリ", "キュアアムール"], ["キュアスター", "キュアミルキー", "キュアソレイユ", "キュアセレーネ", "キュアコスモ"], ["キュアグレース", "キュアフォンテーヌ", "キュアスパークル", "キュアアース"]]
|
623
|
+
=> [["キュアブラック", "キュアホワイト"], ["キュアブラック", "キュアホワイト", "シャイニールミナス"], ["キュアブルーム", "キュアイーグレット"], ["キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア"], ["キュアドリーム", "キュアルージュ", "キュアレモネード", "キュアミント", "キュアアクア", "ミルキィローズ"], ["キュアピーチ", "キュアベリー", "キュアパイン", "キュアパッション"], ["キュアブロッサム", "キュアマリン", "キュアサンシャイン", "キュアムーンライト"], ["キュアメロディ", "キュアリズム", "キュアビート", "キュアミューズ"], ["キュアハッピー", "キュアサニー", "キュアピース", "キュアマーチ", "キュアビューティ"], ["キュアハート", "キュアダイヤモンド", "キュアロゼッタ", "キュアソード", "キュアエース"], ["キュアラブリー", "キュアプリンセス", "キュアハニー", "キュアフォーチュン"], ["キュアフローラ", "キュアマーメイド", "キュアトゥインクル", "キュアスカーレット"], ["キュアミラクル", "キュアマジカル", "キュアフェリーチェ"], ["キュアホイップ", "キュアカスタード", "キュアジェラート", "キュアマカロン", "キュアショコラ", "キュアパルフェ"], ["キュアエール", "キュアアンジュ", "キュアエトワール", "キュアマシェリ", "キュアアムール"], ["キュアスター", "キュアミルキー", "キュアソレイユ", "キュアセレーネ", "キュアコスモ"], ["キュアグレース", "キュアフォンテーヌ", "キュアスパークル", "キュアアース"], ["キュアサマー", "キュアコーラル", "キュアパパイア", "キュアフラミンゴ", "キュアラメール"]]
|
621
624
|
```
|
622
625
|
|
623
626
|
### Not operator
|
@@ -688,10 +691,10 @@ Cure.cosmo.name
|
|
688
691
|
=> ["キュアブルーム", "キュアドリーム", "キュアピーチ", "キュアブロッサム", "キュアメロディ", "キュアハッピー", "キュアハート", "キュアラブリー", "キュアフローラ", "キュアミラクル", "キュアホイップ", "キュアエール", "キュアスター", "キュアグレース"]
|
689
692
|
|
690
693
|
>> Precure.all_girls.select(&:yellow?).map(&:precure_name)
|
691
|
-
=> ["シャイニールミナス", "キュアレモネード", "キュアパイン", "キュアサンシャイン", "キュアミューズ", "キュアピース", "キュアロゼッタ", "キュアハニー", "キュアトゥインクル", "キュアカスタード", "キュアエトワール", "キュアソレイユ", "キュアスパークル"]
|
694
|
+
=> ["シャイニールミナス", "キュアレモネード", "キュアパイン", "キュアサンシャイン", "キュアミューズ", "キュアピース", "キュアロゼッタ", "キュアハニー", "キュアトゥインクル", "キュアカスタード", "キュアエトワール", "キュアソレイユ", "キュアスパークル", "キュアパパイア"]
|
692
695
|
|
693
696
|
>> Precure.all_girls.group_by{ |girl| girl.color }.map{ |color, girls| [color, girls.count] }.sort_by{ |color, girl_count| [girl_count, color] }.reverse
|
694
|
-
=> [["
|
697
|
+
=> [["yellow", 14], ["pink", 14], ["blue", 12], ["purple", 10], ["red", 8], ["white", 5], ["green", 4], ["rainbow", 2], ["black", 1]]
|
695
698
|
```
|
696
699
|
|
697
700
|
### birthday methods
|
@@ -707,7 +710,7 @@ Cure.cosmo.name
|
|
707
710
|
>> require "delorean"
|
708
711
|
>> Delorean.time_travel_to "2015-11-24"
|
709
712
|
>> Date.today
|
710
|
-
=>
|
713
|
+
=> #<Date: 2015-11-24 ((2457351j,0s,0n),+0s,2299161j)>
|
711
714
|
>> Cure.twinkle.birthday?
|
712
715
|
=> false
|
713
716
|
|
@@ -717,12 +720,12 @@ Cure.cosmo.name
|
|
717
720
|
=> true
|
718
721
|
|
719
722
|
>> Precure.all_girls.select(&:have_birthday?).map(&:human_name)
|
720
|
-
=> ["美墨なぎさ", "雪城ほのか", "九条ひかり", "日向咲", "美翔舞", "相田マナ", "菱川六花", "四葉ありす", "剣崎真琴", "春野はるか", "海藤みなみ", "天ノ川きらら", "紅城トワ", "朝日奈みらい", "十六夜リコ", "宇佐美いちか", "有栖川ひまり", "立神あおい", "琴爪ゆかり", "剣城あきら", "キラ星シエル", "野乃はな", "薬師寺さあや", "輝木ほまれ", "愛崎えみる", "ルールー・アムール", "星奈ひかる", "羽衣ララ", "天宮えれな", "香久矢まどか", "ユニ", "花寺のどか", "沢泉ちゆ", "平光ひなた", "風鈴アスミ"]
|
723
|
+
=> ["美墨なぎさ", "雪城ほのか", "九条ひかり", "日向咲", "美翔舞", "相田マナ", "菱川六花", "四葉ありす", "剣崎真琴", "春野はるか", "海藤みなみ", "天ノ川きらら", "紅城トワ", "朝日奈みらい", "十六夜リコ", "宇佐美いちか", "有栖川ひまり", "立神あおい", "琴爪ゆかり", "剣城あきら", "キラ星シエル", "野乃はな", "薬師寺さあや", "輝木ほまれ", "愛崎えみる", "ルールー・アムール", "星奈ひかる", "羽衣ララ", "天宮えれな", "香久矢まどか", "ユニ", "花寺のどか", "沢泉ちゆ", "平光ひなた", "風鈴アスミ", "夏海まなつ", "涼村さんご", "一ノ瀬みのり", "滝沢あすか", "ローラ"]
|
721
724
|
>> Precure.all_girls.select(&:have_birthday?).sort_by { |girl| Date.parse(girl.birthday) }.map{ |girl| [girl.birthday, girl.human_name] }
|
722
|
-
=> [["1/7", "宇佐美いちか"], ["1/20", "野乃はな"], ["3/9", "花寺のどか"], ["4/4", "雪城ほのか"], ["4/8", "輝木ほまれ"], ["4/10", "春野はるか"], ["4/12", "星奈ひかる"], ["4/16", "有栖川ひまり"], ["5/28", "四葉ありす"], ["6/10", "薬師寺さあや"], ["6/11", "琴爪ゆかり"], ["6/12", "朝日奈みらい"], ["7/7", "羽衣ララ"], ["7/15", "愛崎えみる"], ["7/20", "海藤みなみ"], ["7/30", "キラ星シエル"], ["8/4", "相田マナ"], ["8/7", "日向咲"], ["8/16", "風鈴アスミ"], ["8/21", "沢泉ちゆ"], ["8/27", "立神あおい"], ["9/8", "天宮えれな"], ["9/9", "九条ひかり"], ["9/12", "天ノ川きらら"], ["9/17", "菱川六花"], ["9/23", "ルールー・アムール"], ["9/24", "剣城あきら"], ["10/4", "平光ひなた"], ["10/10", "美墨なぎさ"], ["10/11", "ユニ"], ["11/4", "剣崎真琴"], ["11/12", "十六夜リコ"], ["11/20", "美翔舞"], ["11/23", "香久矢まどか"], ["12/15", "紅城トワ"]]
|
725
|
+
=> [["1/7", "宇佐美いちか"], ["1/20", "野乃はな"], ["3/9", "花寺のどか"], ["4/4", "雪城ほのか"], ["4/8", "輝木ほまれ"], ["4/10", "春野はるか"], ["4/12", "星奈ひかる"], ["4/16", "有栖川ひまり"], ["5/9", "涼村さんご"], ["5/28", "四葉ありす"], ["6/10", "薬師寺さあや"], ["6/11", "琴爪ゆかり"], ["6/12", "朝日奈みらい"], ["6/30", "ローラ"], ["7/7", "羽衣ララ"], ["7/15", "愛崎えみる"], ["7/20", "海藤みなみ"], ["7/30", "キラ星シエル"], ["8/1", "夏海まなつ"], ["8/4", "相田マナ"], ["8/7", "日向咲"], ["8/16", "風鈴アスミ"], ["8/21", "沢泉ちゆ"], ["8/27", "立神あおい"], ["9/8", "天宮えれな"], ["9/9", "九条ひかり"], ["9/12", "天ノ川きらら"], ["9/17", "菱川六花"], ["9/23", "ルールー・アムール"], ["9/24", "剣城あきら"], ["10/4", "平光ひなた"], ["10/10", "美墨なぎさ"], ["10/11", "ユニ"], ["10/15", "滝沢あすか"], ["11/4", "剣崎真琴"], ["11/12", "十六夜リコ"], ["11/20", "美翔舞"], ["11/21", "一ノ瀬みのり"], ["11/23", "香久矢まどか"], ["12/15", "紅城トワ"]]
|
723
726
|
|
724
727
|
>> Precure.all_girls.select(&:have_birthday?).map(&:human_name).count
|
725
|
-
=>
|
728
|
+
=> 40
|
726
729
|
```
|
727
730
|
|
728
731
|
* `has_birthday?` is alias to `have_birthday?`
|
@@ -792,6 +795,19 @@ $ curl -s https://rubicure.herokuapp.com/girls/cure_twinkle.json | jq .
|
|
792
795
|
}
|
793
796
|
```
|
794
797
|
|
798
|
+
## Versioning Policy
|
799
|
+
`rubicure` uses **Semantic Cure Versioning** :heart:
|
800
|
+
|
801
|
+
* Patch version up
|
802
|
+
* e.g. `1.1.1` -> `1.1.2`
|
803
|
+
* Containing bugfix
|
804
|
+
* Minor version up
|
805
|
+
* e.g. `1.1.1` -> `1.2.0`
|
806
|
+
* **Addition of Precure series**
|
807
|
+
* Not containing only addition features :kissing_heart:
|
808
|
+
* Major version up
|
809
|
+
* e.g. `1.1.1` -> `2.0.0`
|
810
|
+
* Containing breaking changes
|
795
811
|
|
796
812
|
## Contributing
|
797
813
|
|
@@ -0,0 +1,145 @@
|
|
1
|
+
cure_summer: &cure_summer
|
2
|
+
girl_name: cure_summer
|
3
|
+
human_name: 夏海まなつ
|
4
|
+
precure_name: キュアサマー
|
5
|
+
cast_name: ファイルーズあい
|
6
|
+
color: white
|
7
|
+
created_date: 2021-02-28 # episode 1
|
8
|
+
birthday: 8/1
|
9
|
+
transform_message: |-
|
10
|
+
プリキュア!トロピカルチェンジ!
|
11
|
+
レッツメイク!キャッチ!
|
12
|
+
チーク!
|
13
|
+
アイズ!
|
14
|
+
ヘアー!
|
15
|
+
リップ!
|
16
|
+
ドレス!
|
17
|
+
ときめく常夏!キュアサマー!
|
18
|
+
はぁー!
|
19
|
+
4人揃って!トロピカル~ジュ!プリキュア!
|
20
|
+
# extra_names:
|
21
|
+
attack_messages:
|
22
|
+
- |-
|
23
|
+
ハートルージュロッド!
|
24
|
+
プリキュア!おてんとサマーストライク!
|
25
|
+
ビクトリー!
|
26
|
+
transform_calls:
|
27
|
+
- precure_tropical_change
|
28
|
+
summer:
|
29
|
+
<<: *cure_summer
|
30
|
+
|
31
|
+
cure_coral: &cure_coral
|
32
|
+
girl_name: cure_coral
|
33
|
+
human_name: 涼村さんご
|
34
|
+
precure_name: キュアコーラル
|
35
|
+
cast_name: 花守ゆみり
|
36
|
+
color: purple
|
37
|
+
created_date: 2021-03-14 # episode 3
|
38
|
+
birthday: 5/9
|
39
|
+
transform_message: |-
|
40
|
+
プリキュア!トロピカルチェンジ!
|
41
|
+
レッツメイク!キャッチ!
|
42
|
+
リップ!
|
43
|
+
アイズ!
|
44
|
+
ヘアー!
|
45
|
+
チーク!
|
46
|
+
ドレス!
|
47
|
+
きらめく宝石!キュアコーラル!
|
48
|
+
はぁー!
|
49
|
+
4人揃って!トロピカル~ジュ!プリキュア!
|
50
|
+
# extra_names:
|
51
|
+
attack_messages:
|
52
|
+
- |-
|
53
|
+
ハートルージュロッド!
|
54
|
+
プリキュア!もこもこコーラルディフュージョン!
|
55
|
+
ビクトリー!
|
56
|
+
transform_calls:
|
57
|
+
- precure_tropical_change
|
58
|
+
coral:
|
59
|
+
<<: *cure_coral
|
60
|
+
|
61
|
+
cure_papaya: &cure_papaya
|
62
|
+
girl_name: cure_papaya
|
63
|
+
human_name: 一ノ瀬みのり
|
64
|
+
precure_name: キュアパパイア
|
65
|
+
cast_name: 石川由依
|
66
|
+
color: yellow
|
67
|
+
created_date: 2021-03-21 # episode 4
|
68
|
+
birthday: 11/21
|
69
|
+
transform_message: |-
|
70
|
+
プリキュア!トロピカルチェンジ!
|
71
|
+
レッツメイク!キャッチ!
|
72
|
+
チーク!
|
73
|
+
リップ!
|
74
|
+
ヘアー!
|
75
|
+
アイズ!
|
76
|
+
ドレス!
|
77
|
+
ひらめく果実!キュアパパイア!
|
78
|
+
はぁー!
|
79
|
+
4人揃って!トロピカル~ジュ!プリキュア!
|
80
|
+
# extra_names:
|
81
|
+
attack_messages:
|
82
|
+
- |-
|
83
|
+
ハートルージュロッド!
|
84
|
+
プリキュア!ぱんぱかパパイアショット!
|
85
|
+
ビクトリー!
|
86
|
+
transform_calls:
|
87
|
+
- precure_tropical_change
|
88
|
+
papaya:
|
89
|
+
<<: *cure_papaya
|
90
|
+
|
91
|
+
cure_flamingo: &cure_flamingo
|
92
|
+
girl_name: cure_flamingo
|
93
|
+
human_name: 滝沢あすか
|
94
|
+
precure_name: キュアフラミンゴ
|
95
|
+
cast_name: 瀬戸麻沙美
|
96
|
+
color: red
|
97
|
+
created_date: 2021-03-28 # episode 5
|
98
|
+
birthday: 10/15
|
99
|
+
transform_message: |-
|
100
|
+
プリキュア!トロピカルチェンジ!
|
101
|
+
レッツメイク!キャッチ!
|
102
|
+
チーク!
|
103
|
+
アイズ!
|
104
|
+
リップ!
|
105
|
+
ヘアー!
|
106
|
+
ドレス!
|
107
|
+
はためく翼!キュアフラミンゴ!
|
108
|
+
はぁー!
|
109
|
+
4人揃って!トロピカル~ジュ!プリキュア!
|
110
|
+
# extra_names:
|
111
|
+
attack_messages:
|
112
|
+
- |-
|
113
|
+
ハートルージュロッド!
|
114
|
+
プリキュア!ぶっとびフラミンゴスマッシュ!
|
115
|
+
ビクトリー!
|
116
|
+
transform_calls:
|
117
|
+
- precure_tropical_change
|
118
|
+
flamingo:
|
119
|
+
<<: *cure_flamingo
|
120
|
+
|
121
|
+
cure_lamer: &cure_lamer
|
122
|
+
girl_name: cure_lamer
|
123
|
+
human_name: ローラ
|
124
|
+
human_full_name: ローラ・アポロドーロス・ヒュギーヌス・ラメール
|
125
|
+
precure_name: キュアラメール
|
126
|
+
cast_name: 日高里菜
|
127
|
+
color: blue
|
128
|
+
created_date: 2021-06-20 # episode 17
|
129
|
+
birthday: 6/30
|
130
|
+
transform_message: |-
|
131
|
+
プリキュア!トロピカルチェンジ!
|
132
|
+
レッツメイク!キャッチ!
|
133
|
+
フェイス!
|
134
|
+
ネイル!
|
135
|
+
ドレス!
|
136
|
+
ゆらめく大海原!キュアラメール!
|
137
|
+
# extra_names:
|
138
|
+
attack_messages:
|
139
|
+
- |-
|
140
|
+
プリキュア!くるくるラメールストリーム!
|
141
|
+
ビクトリー!
|
142
|
+
transform_calls:
|
143
|
+
- precure_tropical_change
|
144
|
+
lamer:
|
145
|
+
<<: *cure_lamer
|
data/config/series.yml
CHANGED
@@ -222,7 +222,7 @@ healingood: &healingood
|
|
222
222
|
series_name: healingood
|
223
223
|
title: ヒーリングっど♥プリキュア
|
224
224
|
started_date: 2020-02-02
|
225
|
-
|
225
|
+
ended_date: 2021-02-21
|
226
226
|
girls:
|
227
227
|
- cure_grace
|
228
228
|
- cure_fontaine
|
@@ -230,3 +230,17 @@ healingood: &healingood
|
|
230
230
|
- cure_earth
|
231
231
|
healingood_precure:
|
232
232
|
<<: *healingood
|
233
|
+
#######################################################
|
234
|
+
tropical_rouge: &tropical_rouge
|
235
|
+
series_name: tropical_rouge
|
236
|
+
title: トロピカル~ジュ!プリキュア
|
237
|
+
started_date: 2021-02-28
|
238
|
+
# ended_date: 2021-01-
|
239
|
+
girls:
|
240
|
+
- cure_summer
|
241
|
+
- cure_coral
|
242
|
+
- cure_papaya
|
243
|
+
- cure_flamingo
|
244
|
+
- cure_lamer
|
245
|
+
tropical_rouge_precure:
|
246
|
+
<<: *tropical_rouge
|
data/lib/rubicure.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
require "active_support/
|
1
|
+
require "active_support/core_ext/array/wrap"
|
2
|
+
require "active_support/core_ext/hash/keys"
|
3
|
+
require "active_support/core_ext/time/calculations"
|
2
4
|
require "yaml"
|
3
5
|
require "hashie"
|
6
|
+
require "date"
|
7
|
+
require "json"
|
4
8
|
require "rubicure/version"
|
5
9
|
require "rubicure/concerns/util"
|
6
10
|
require "rubicure/concerns/gengou"
|
@@ -16,15 +20,14 @@ require "rubicure/cure_passion"
|
|
16
20
|
require "rubicure/cure_beat"
|
17
21
|
require "rubicure/cure_scarlet"
|
18
22
|
|
19
|
-
begin
|
20
|
-
require "backport_dig"
|
21
|
-
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
22
|
-
end
|
23
|
-
|
24
23
|
module Precure
|
25
|
-
def self.method_missing(name, *args, &block)
|
24
|
+
def self.method_missing(name, *args, &block)
|
26
25
|
Rubicure::Core.instance.send(name, *args, &block)
|
27
26
|
end
|
27
|
+
|
28
|
+
def self.respond_to_missing?(name, include_private)
|
29
|
+
Rubicure::Core.instance.respond_to_missing?(name, include_private)
|
30
|
+
end
|
28
31
|
end
|
29
32
|
|
30
33
|
module Shiny
|
data/lib/rubicure/core.rb
CHANGED
@@ -28,7 +28,7 @@ module Rubicure
|
|
28
28
|
unmarked_precure.respond_to?(name)
|
29
29
|
end
|
30
30
|
|
31
|
-
# rubocop:disable
|
31
|
+
# rubocop:disable Layout/LineLength
|
32
32
|
|
33
33
|
# get current precure series
|
34
34
|
# @return [Rubicure::Series] current precure
|
@@ -45,7 +45,7 @@ module Rubicure
|
|
45
45
|
end
|
46
46
|
raise NotOnAirError, "Not on air precure!"
|
47
47
|
end
|
48
|
-
# rubocop:enable
|
48
|
+
# rubocop:enable Layout/LineLength
|
49
49
|
|
50
50
|
alias_method :current, :now
|
51
51
|
|
@@ -195,7 +195,7 @@ module Rubicure
|
|
195
195
|
end
|
196
196
|
alias_method :superstars, :super_stars
|
197
197
|
|
198
|
-
# rubocop:disable
|
198
|
+
# rubocop:disable Layout/LineLength
|
199
199
|
|
200
200
|
# Get precure miracle universe
|
201
201
|
#
|
@@ -240,7 +240,7 @@ module Rubicure
|
|
240
240
|
@miracle_leap
|
241
241
|
end
|
242
242
|
|
243
|
-
# rubocop:enable
|
243
|
+
# rubocop:enable Layout/LineLength
|
244
244
|
|
245
245
|
# iterate with :unmarked, :max_heart, ...
|
246
246
|
#
|
data/lib/rubicure/cure_peace.rb
CHANGED
@@ -1,15 +1,18 @@
|
|
1
1
|
[Cure.peace, Cure.cure_peace].each do |peace|
|
2
2
|
class << peace
|
3
|
+
# rubocop:disable Performance/CollectionLiteralInLoop
|
3
4
|
HANDS =
|
4
5
|
(["グー"] * 13) +
|
5
6
|
(["チョキ"] * 14) +
|
6
7
|
(["パー"] * 15) +
|
7
8
|
["グッチョッパー"]
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
# rubocop:enable Performance/CollectionLiteralInLoop
|
10
|
+
|
11
|
+
MESSAGE = <<~JANKEN.freeze
|
12
|
+
ピカピカピカリン
|
13
|
+
ジャンケンポン!
|
14
|
+
(%s)
|
15
|
+
JANKEN
|
13
16
|
def pikarin_janken
|
14
17
|
print_by_line(MESSAGE % HANDS.sample)
|
15
18
|
end
|
data/lib/rubicure/movie.rb
CHANGED
data/lib/rubicure/series.rb
CHANGED
data/lib/rubicure/version.rb
CHANGED
data/rubicure.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://github.com/sue445/rubicure"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
|
-
spec.required_ruby_version = ">= 2.
|
15
|
+
spec.required_ruby_version = ">= 2.4"
|
16
16
|
|
17
17
|
if spec.respond_to?(:metadata)
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
@@ -40,14 +40,17 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_development_dependency "bundler", ">= 1.3.5"
|
41
41
|
spec.add_development_dependency "coveralls"
|
42
42
|
spec.add_development_dependency "delorean"
|
43
|
-
spec.add_development_dependency "onkcop", "0.
|
43
|
+
spec.add_development_dependency "onkcop", "1.0.0.0"
|
44
44
|
spec.add_development_dependency "rake"
|
45
45
|
spec.add_development_dependency "rspec", ">= 3.8.0"
|
46
46
|
spec.add_development_dependency "rspec-collection_matchers"
|
47
47
|
spec.add_development_dependency "rspec-its"
|
48
48
|
spec.add_development_dependency "rspec-parameterized", ">= 0.3.2"
|
49
|
-
spec.add_development_dependency "rubocop", "
|
50
|
-
spec.add_development_dependency "
|
49
|
+
spec.add_development_dependency "rubocop", "1.7.0"
|
50
|
+
spec.add_development_dependency "rubocop_auto_corrector"
|
51
|
+
spec.add_development_dependency "rubocop-performance", "1.9.2"
|
52
|
+
spec.add_development_dependency "rubocop-rake", "0.5.1"
|
53
|
+
spec.add_development_dependency "rubocop-rspec", "2.1.0"
|
51
54
|
spec.add_development_dependency "rubydoctest"
|
52
55
|
spec.add_development_dependency "simplecov"
|
53
56
|
spec.add_development_dependency "unparser", ">= 0.4.5"
|
data/spec/rubicure/core_spec.rb
CHANGED
data/spec/rubicure/girl_spec.rb
CHANGED
@@ -25,11 +25,11 @@ describe Rubicure::Girl do
|
|
25
25
|
let(:extra_names) { %w[プリンセスピース ウルトラピース] }
|
26
26
|
let(:color) { "yellow" }
|
27
27
|
let(:transform_message) do
|
28
|
-
|
29
|
-
プリキュアスマイルチャージ!
|
30
|
-
GO! GO! Let's GO ピース!
|
31
|
-
ピカピカピカリンジャンケンポン! キュアピース!
|
32
|
-
JANKEN
|
28
|
+
<<~JANKEN
|
29
|
+
プリキュアスマイルチャージ!
|
30
|
+
GO! GO! Let's GO ピース!
|
31
|
+
ピカピカピカリンジャンケンポン! キュアピース!
|
32
|
+
JANKEN
|
33
33
|
end
|
34
34
|
let(:attack_messages) do
|
35
35
|
[
|
@@ -100,13 +100,13 @@ JANKEN
|
|
100
100
|
transform_calls: ["cure_up_rapapa"],
|
101
101
|
color: "pink",
|
102
102
|
birthday: "6/12",
|
103
|
-
transform_styles:
|
103
|
+
transform_styles: {
|
104
104
|
diamond: {
|
105
|
-
precure_name:
|
105
|
+
precure_name: "キュアミラクル(ダイヤスタイル)",
|
106
106
|
transform_message: "",
|
107
107
|
},
|
108
|
-
ruby:
|
109
|
-
precure_name:
|
108
|
+
ruby: {
|
109
|
+
precure_name: "キュアミラクル(ルビースタイル)",
|
110
110
|
transform_message: "",
|
111
111
|
},
|
112
112
|
},
|
@@ -258,7 +258,7 @@ JANKEN
|
|
258
258
|
girl.transform!
|
259
259
|
end
|
260
260
|
|
261
|
-
subject! { humanize! }
|
261
|
+
subject! { humanize! } # rubocop:disable RSpec/LeadingSubject
|
262
262
|
|
263
263
|
it_behaves_like :a_humanize_method
|
264
264
|
end
|
@@ -61,52 +61,54 @@ describe Rubicure do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
describe "Cure." do
|
64
|
-
|
65
|
-
|
66
|
-
[
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
64
|
+
context "When precure who starting 'cure'" do
|
65
|
+
where(:name) do
|
66
|
+
[
|
67
|
+
[:black],
|
68
|
+
[:white],
|
69
|
+
|
70
|
+
[:bloom],
|
71
|
+
[:egret],
|
72
|
+
|
73
|
+
[:dream],
|
74
|
+
[:rouge],
|
75
|
+
[:lemonade],
|
76
|
+
[:mint],
|
77
|
+
[:aqua],
|
78
|
+
|
79
|
+
[:peach],
|
80
|
+
[:berry],
|
81
|
+
[:pine],
|
82
|
+
[:passion],
|
83
|
+
|
84
|
+
[:melody],
|
85
|
+
[:rhythm],
|
86
|
+
[:beat],
|
87
|
+
[:muse],
|
88
|
+
|
89
|
+
[:happy],
|
90
|
+
[:sunny],
|
91
|
+
[:peace],
|
92
|
+
[:march],
|
93
|
+
[:beauty],
|
94
|
+
|
95
|
+
[:heart],
|
96
|
+
[:diamond],
|
97
|
+
[:rosetta],
|
98
|
+
[:sword],
|
99
|
+
[:ace],
|
100
|
+
|
101
|
+
[:lovely],
|
102
|
+
[:princess],
|
103
|
+
[:honey],
|
104
|
+
[:fortune],
|
105
|
+
]
|
106
|
+
end
|
106
107
|
|
107
|
-
|
108
|
-
|
109
|
-
|
108
|
+
with_them do
|
109
|
+
it { expect(Cure.send(name)).to be_an_instance_of Rubicure::Girl }
|
110
|
+
it { expect(Cure.send(name).precure_name).to be_start_with "キュア" }
|
111
|
+
end
|
110
112
|
end
|
111
113
|
|
112
114
|
context "When precure who not starting 'cure'" do
|
@@ -18,6 +18,7 @@ describe Rubicure::Series do
|
|
18
18
|
:hugtto,
|
19
19
|
:star_twinkle,
|
20
20
|
:healingood,
|
21
|
+
:tropical_rouge,
|
21
22
|
]
|
22
23
|
end
|
23
24
|
|
@@ -71,7 +72,7 @@ describe Rubicure::Series do
|
|
71
72
|
it { should all(be_instance_of Rubicure::Girl) }
|
72
73
|
end
|
73
74
|
|
74
|
-
# rubocop:disable Style/CaseEquality,
|
75
|
+
# rubocop:disable Style/CaseEquality, Style/NilComparison
|
75
76
|
describe "#===" do
|
76
77
|
let(:series) { Rubicure::Series.find(series_name) }
|
77
78
|
let(:series_name) { :smile }
|
@@ -79,7 +80,9 @@ describe Rubicure::Series do
|
|
79
80
|
let(:girl_name) { :peace }
|
80
81
|
|
81
82
|
context "same series" do
|
82
|
-
|
83
|
+
let(:same_series) { Rubicure::Series.find(series_name) }
|
84
|
+
|
85
|
+
it { expect(series === same_series).to be true }
|
83
86
|
it { expect(series === girl).to be true }
|
84
87
|
end
|
85
88
|
|
@@ -99,7 +102,7 @@ describe Rubicure::Series do
|
|
99
102
|
it { expect(series === nil).to be false }
|
100
103
|
end
|
101
104
|
end
|
102
|
-
# rubocop:enable Style/CaseEquality,
|
105
|
+
# rubocop:enable Style/CaseEquality, Style/NilComparison
|
103
106
|
|
104
107
|
describe "#names" do
|
105
108
|
subject { Rubicure::Series.names }
|
@@ -148,8 +151,8 @@ describe Rubicure::Series do
|
|
148
151
|
let(:series_name) { :splash_star }
|
149
152
|
|
150
153
|
let(:json) do
|
151
|
-
|
152
|
-
{\"series_name\":\"splash_star\",\"title\":\"ふたりはプリキュア Splash☆Star\",\"started_date\":\"2006-02-05\",\"ended_date\":\"2007-01-28\",\"girls\":[\"cure_bloom\",\"cure_egret\"]}
|
154
|
+
<<~JSON
|
155
|
+
{\"series_name\":\"splash_star\",\"title\":\"ふたりはプリキュア Splash☆Star\",\"started_date\":\"2006-02-05\",\"ended_date\":\"2007-01-28\",\"girls\":[\"cure_bloom\",\"cure_egret\"]}
|
153
156
|
JSON
|
154
157
|
end
|
155
158
|
|
data/spec/spec_helper.rb
CHANGED
@@ -35,10 +35,11 @@ require "rspec/its"
|
|
35
35
|
require "rspec/collection_matchers"
|
36
36
|
require "delorean"
|
37
37
|
require "tempfile"
|
38
|
+
require "active_support/core_ext/time/zones"
|
38
39
|
|
39
40
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
40
41
|
# in spec/support/ and its subdirectories.
|
41
|
-
Dir["#{__dir__}/support/**/*.rb"].each {|f| require f }
|
42
|
+
Dir["#{__dir__}/support/**/*.rb"].sort.each {|f| require f }
|
42
43
|
|
43
44
|
Time.zone = "Tokyo"
|
44
45
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubicure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 1.0.0.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 1.0.0.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,28 +184,70 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - '='
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 1.7.0
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - '='
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 1.7.0
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rubocop_auto_corrector
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: rubocop-performance
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - '='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 1.9.2
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - '='
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 1.9.2
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: rubocop-rake
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - '='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 0.5.1
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - '='
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 0.5.1
|
195
237
|
- !ruby/object:Gem::Dependency
|
196
238
|
name: rubocop-rspec
|
197
239
|
requirement: !ruby/object:Gem::Requirement
|
198
240
|
requirements:
|
199
241
|
- - '='
|
200
242
|
- !ruby/object:Gem::Version
|
201
|
-
version: 1.
|
243
|
+
version: 2.1.0
|
202
244
|
type: :development
|
203
245
|
prerelease: false
|
204
246
|
version_requirements: !ruby/object:Gem::Requirement
|
205
247
|
requirements:
|
206
248
|
- - '='
|
207
249
|
- !ruby/object:Gem::Version
|
208
|
-
version: 1.
|
250
|
+
version: 2.1.0
|
209
251
|
- !ruby/object:Gem::Dependency
|
210
252
|
name: rubydoctest
|
211
253
|
requirement: !ruby/object:Gem::Requirement
|
@@ -297,6 +339,7 @@ files:
|
|
297
339
|
- config/girls/015_hugtto.yml
|
298
340
|
- config/girls/016_star_twinkle.yml
|
299
341
|
- config/girls/017_healingood.yml
|
342
|
+
- config/girls/018_tropical_rouge.yml
|
300
343
|
- config/girls/movie.yml
|
301
344
|
- config/movies.yml
|
302
345
|
- config/series.yml
|
@@ -347,14 +390,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
347
390
|
requirements:
|
348
391
|
- - ">="
|
349
392
|
- !ruby/object:Gem::Version
|
350
|
-
version: 2.
|
393
|
+
version: '2.4'
|
351
394
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
352
395
|
requirements:
|
353
396
|
- - ">="
|
354
397
|
- !ruby/object:Gem::Version
|
355
398
|
version: '0'
|
356
399
|
requirements: []
|
357
|
-
rubygems_version: 3.
|
400
|
+
rubygems_version: 3.2.3
|
358
401
|
signing_key:
|
359
402
|
specification_version: 4
|
360
403
|
summary: All about Japanese battle heroine "Pretty Cure (Precure)".
|