rubicure 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f469d7af84146fdffb852be483d6b6ddd54dc5a72d10451edccf18651b1c378
4
- data.tar.gz: 2aecfe3678a1ff025565e3f4df232bfd748a3547a08f34e471d1b7ceac567f65
3
+ metadata.gz: 2c3737d8910f3c70c7585874c07348835b64305a12684524dd03f4f5c6391206
4
+ data.tar.gz: ede1db907ee2349ea1266ffd09c6fa34b91939b3b822716f337dd902da752aaa
5
5
  SHA512:
6
- metadata.gz: bf4361cdb9203eedf8367513422b224456538573a2fc1eb4c5b8203205829cc8b11e3bbcc671780ec0ca5965c2da454226a6e60422cd74b1708fe7c5728e8761
7
- data.tar.gz: 5afb770053cc077e8c725b9ecfc420b147990c1b170c0cd63f0e7ab1d80cd4e8ba7b2c940a2507a31c55ead02afff7f2415f13f4233ae4c927683cb4f8784c81
6
+ metadata.gz: 45e62b6affb30bb1099ed6d1d2e618e0ae30262b6b814f842e9b9cdab450b6a9a611e99a9f374211f4fc7eea72d343602683d446e37241f69d9158977328403a
7
+ data.tar.gz: 5a1d7b8623792c4db4fd8ede8f2458445abc8cbdb6999208cd3fb89d926fb737b004b7574d4d88344804685b5faedfbf0b0c504a4d6ca241a1278f5283919c9b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v3.0.0...master)
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v3.0.1...master)
3
+
4
+ ## v3.0.1
5
+ [full changelog](http://github.com/sue445/rubicure/compare/v3.0.0...v3.0.1)
6
+
7
+ * Add `ended_date` of Tropical-Rouge! Precure
8
+ * https://github.com/sue445/rubicure/pull/260
9
+ * Fixed. Couldn't call `#precure_operation!` and `#precure_tropical_change!`
10
+ * https://github.com/sue445/rubicure/pull/264
11
+ * Randomized Tropical-Rouge! Precure's `#transform!` (a.k.a. `#precure_tropical_change!`) transformation message
12
+ * https://github.com/sue445/rubicure/pull/263
3
13
 
4
14
  ## v3.0.0
5
15
  [full changelog](http://github.com/sue445/rubicure/compare/v2.1.5...v3.0.0)
data/README.md CHANGED
@@ -118,7 +118,7 @@ and [more aliases!](config/series.yml)
118
118
 
119
119
  ```ruby
120
120
  >> Precure.now
121
- => {: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"]}
121
+ => {:series_name=>"tropical_rouge", :title=>"トロピカル~ジュ!プリキュア", :started_date=>#<Date: 2021-02-28 ((2459274j,0s,0n),+0s,2299161j)>, :ended_date=>#<Date: 2022-01-30 ((2459610j,0s,0n),+0s,2299161j)>, :girls=>["cure_summer", "cure_coral", "cure_papaya", "cure_flamingo", "cure_lamer"]}
122
122
 
123
123
  # -2013/1/27 : smile precure
124
124
  # 2013/2/5 - : dokidoki precure
@@ -418,6 +418,15 @@ Go!プリンセスプリキュア!
418
418
  プリキュア!ルビーパッショナーレ!
419
419
  ```
420
420
 
421
+ ### When [Tropical-Rouge! Precure](https://en.wikipedia.org/wiki/Tropical-Rouge!_Pretty_Cure)
422
+ In Tropical Rouge Precure's `#transform!` (a.k.a. `#precure_tropical_change!`), the transformation message will be randomized as in the original work.
423
+
424
+ Example
425
+
426
+ ![tropical_rouge](examples/tropical_rouge.gif)
427
+
428
+ [examples/tropical_rouge.rb](examples/tropical_rouge.rb)
429
+
421
430
  ### full_name
422
431
  When `Rubicure::Girl` has `human_full_name` (i.e. another `human_name`), she returns as `#full_name`
423
432
 
@@ -25,7 +25,7 @@ cure_grace: &cure_grace
25
25
  プリキュア!ヒーリングフラワー!
26
26
  お大事に
27
27
  transform_calls:
28
- - precure_operation
28
+ - operation
29
29
  grace:
30
30
  <<: *cure_grace
31
31
 
@@ -56,7 +56,7 @@ cure_fontaine: &cure_fontaine
56
56
  プリキュア!ヒーリングストリーム!
57
57
  お大事に
58
58
  transform_calls:
59
- - precure_operation
59
+ - operation
60
60
  fontaine:
61
61
  <<: *cure_fontaine
62
62
 
@@ -87,7 +87,7 @@ cure_sparkle: &cure_sparkle
87
87
  プリキュア!ヒーリングフラッシュ!
88
88
  お大事に
89
89
  transform_calls:
90
- - precure_operation
90
+ - operation
91
91
  sparkle:
92
92
  <<: *cure_sparkle
93
93
 
@@ -118,6 +118,6 @@ cure_earth: &cure_earth
118
118
  プリキュア・ヒーリングハリケーン!
119
119
  お大事に
120
120
  transform_calls:
121
- - precure_operation
121
+ - operation
122
122
  earth:
123
123
  <<: *cure_earth
@@ -16,7 +16,40 @@ cure_summer: &cure_summer
16
16
  ドレス!
17
17
  ときめく常夏!キュアサマー!
18
18
  はぁー!
19
- 4人揃って!トロピカル~ジュ!プリキュア!
19
+ ${random_transform_word}
20
+ トロピカル~ジュ!プリキュア!
21
+ random_transform_words: &random_transform_words
22
+ - 4人揃って!
23
+ - 今日も元気だ!
24
+ - よく食べよく寝る!
25
+ - エキストラだよ!
26
+ - 笑顔は100点!
27
+ - 雨にも負けない!
28
+ - 噂も吹き飛ぶ!
29
+ - 悩みも吹き飛ぶ!
30
+ - よいこの友達!
31
+ - 今日も元気だ!
32
+ - 5人揃って!
33
+ - 年中無休だ!
34
+ - 一人迷子だ!
35
+ - お祭り大好き!
36
+ - 転んで泣かない!
37
+ - いいとこ見せたい!
38
+ - 光る5つ星!
39
+ - 今日も元気だ!
40
+ - メイクは気合だ!
41
+ - 6人揃って!
42
+ - 雪の国でも!
43
+ - 子どももなれるよ!
44
+ - 今日も元気だ!
45
+ - 仮装じゃないよ!
46
+ - 今日も元気だ!
47
+ - 今日も本気だ!
48
+ - 燃えるど根性!
49
+ - 今日も元気だ!
50
+ - 全速前進!
51
+ - 絶対負けない!
52
+ - あっという間に!
20
53
  # extra_names:
21
54
  attack_messages:
22
55
  - |-
@@ -24,7 +57,7 @@ cure_summer: &cure_summer
24
57
  プリキュア!おてんとサマーストライク!
25
58
  ビクトリー!
26
59
  transform_calls:
27
- - precure_tropical_change
60
+ - tropical_change
28
61
  summer:
29
62
  <<: *cure_summer
30
63
 
@@ -46,7 +79,9 @@ cure_coral: &cure_coral
46
79
  ドレス!
47
80
  きらめく宝石!キュアコーラル!
48
81
  はぁー!
49
- 4人揃って!トロピカル~ジュ!プリキュア!
82
+ ${random_transform_word}
83
+ トロピカル~ジュ!プリキュア!
84
+ random_transform_words: *random_transform_words
50
85
  # extra_names:
51
86
  attack_messages:
52
87
  - |-
@@ -54,7 +89,7 @@ cure_coral: &cure_coral
54
89
  プリキュア!もこもこコーラルディフュージョン!
55
90
  ビクトリー!
56
91
  transform_calls:
57
- - precure_tropical_change
92
+ - tropical_change
58
93
  coral:
59
94
  <<: *cure_coral
60
95
 
@@ -76,7 +111,9 @@ cure_papaya: &cure_papaya
76
111
  ドレス!
77
112
  ひらめく果実!キュアパパイア!
78
113
  はぁー!
79
- 4人揃って!トロピカル~ジュ!プリキュア!
114
+ ${random_transform_word}
115
+ トロピカル~ジュ!プリキュア!
116
+ random_transform_words: *random_transform_words
80
117
  # extra_names:
81
118
  attack_messages:
82
119
  - |-
@@ -84,7 +121,7 @@ cure_papaya: &cure_papaya
84
121
  プリキュア!ぱんぱかパパイアショット!
85
122
  ビクトリー!
86
123
  transform_calls:
87
- - precure_tropical_change
124
+ - tropical_change
88
125
  papaya:
89
126
  <<: *cure_papaya
90
127
 
@@ -106,7 +143,9 @@ cure_flamingo: &cure_flamingo
106
143
  ドレス!
107
144
  はためく翼!キュアフラミンゴ!
108
145
  はぁー!
109
- 4人揃って!トロピカル~ジュ!プリキュア!
146
+ ${random_transform_word}
147
+ トロピカル~ジュ!プリキュア!
148
+ random_transform_words: *random_transform_words
110
149
  # extra_names:
111
150
  attack_messages:
112
151
  - |-
@@ -114,7 +153,7 @@ cure_flamingo: &cure_flamingo
114
153
  プリキュア!ぶっとびフラミンゴスマッシュ!
115
154
  ビクトリー!
116
155
  transform_calls:
117
- - precure_tropical_change
156
+ - tropical_change
118
157
  flamingo:
119
158
  <<: *cure_flamingo
120
159
 
@@ -134,12 +173,16 @@ cure_lamer: &cure_lamer
134
173
  ネイル!
135
174
  ドレス!
136
175
  ゆらめく大海原!キュアラメール!
176
+ はぁー!
177
+ ${random_transform_word}
178
+ トロピカル~ジュ!プリキュア!
179
+ random_transform_words: *random_transform_words
137
180
  # extra_names:
138
181
  attack_messages:
139
182
  - |-
140
183
  プリキュア!くるくるラメールストリーム!
141
184
  ビクトリー!
142
185
  transform_calls:
143
- - precure_tropical_change
186
+ - tropical_change
144
187
  lamer:
145
188
  <<: *cure_lamer
data/config/series.yml CHANGED
@@ -235,7 +235,7 @@ tropical_rouge: &tropical_rouge
235
235
  series_name: tropical_rouge
236
236
  title: トロピカル~ジュ!プリキュア
237
237
  started_date: 2021-02-28
238
- # ended_date: 2021-01-
238
+ ended_date: 2022-01-30
239
239
  girls:
240
240
  - cure_summer
241
241
  - cure_coral
data/lib/rubicure/girl.rb CHANGED
@@ -22,6 +22,7 @@ module Rubicure
22
22
  :extra_names,
23
23
  :attack_messages,
24
24
  :transform_calls,
25
+ :random_transform_words,
25
26
  ].freeze
26
27
 
27
28
  attr_accessor :io
@@ -80,7 +81,15 @@ module Rubicure
80
81
  end
81
82
 
82
83
  state = inc_current_state
83
- print_by_line transform_message if state == 1
84
+
85
+ message =
86
+ if random_transform_words && !random_transform_words.empty?
87
+ random_transform_word = random_transform_words.sample
88
+ transform_message.gsub("${random_transform_word}", random_transform_word)
89
+ else
90
+ transform_message
91
+ end
92
+ print_by_line message if state == 1
84
93
 
85
94
  self
86
95
  end
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "3.0.0".freeze
2
+ VERSION = "3.0.1".freeze
3
3
  end
@@ -36,6 +36,20 @@ describe "girls_checker" do # rubocop:disable RSpec/DescribeClass
36
36
  end
37
37
  end
38
38
  end
39
+
40
+ transform_calls = Array(girl["transform_calls"])
41
+
42
+ describe "#transform_calls", unless: transform_calls.empty? do
43
+ subject { transform_calls }
44
+
45
+ transform_calls.count.times do |n|
46
+ # rubocop:disable RSpec/RepeatedDescription `expect().not_to all( matcher )` is not supported.
47
+ its([n]) { should_not be_start_with "precure_" }
48
+ its([n]) { should_not be_end_with "_precure" }
49
+ its([n]) { should_not be_end_with "!" }
50
+ # rubocop:enable RSpec/RepeatedDescription
51
+ end
52
+ end
39
53
  end
40
54
  end
41
55
  end
@@ -1,16 +1,17 @@
1
1
  describe Rubicure::Girl do
2
2
  let(:girl) do
3
3
  girl = Rubicure::Girl[
4
- girl_name: girl_name,
5
- human_name: human_name,
6
- precure_name: precure_name,
7
- cast_name: cast_name,
8
- created_date: created_date,
9
- extra_names: extra_names,
10
- transform_message: transform_message,
11
- attack_messages: attack_messages,
12
- transform_calls: transform_calls,
13
- color: color,
4
+ girl_name: girl_name,
5
+ human_name: human_name,
6
+ precure_name: precure_name,
7
+ cast_name: cast_name,
8
+ created_date: created_date,
9
+ extra_names: extra_names,
10
+ transform_message: transform_message,
11
+ attack_messages: attack_messages,
12
+ transform_calls: transform_calls,
13
+ color: color,
14
+ random_transform_words: random_transform_words,
14
15
  ]
15
16
  girl.io = mock_io
16
17
  girl
@@ -38,6 +39,7 @@ describe Rubicure::Girl do
38
39
  ]
39
40
  end
40
41
  let(:transform_calls) { %w[smile_charge] }
42
+ let(:random_transform_words) { nil }
41
43
 
42
44
  describe "#name" do
43
45
  context "when before transform" do
@@ -143,6 +145,45 @@ describe Rubicure::Girl do
143
145
  it { expect(girl.state_names).to eq ["朝日奈みらい", "キュアミラクル(ダイヤスタイル)"] }
144
146
  end
145
147
  end
148
+
149
+ context "when Cure summer" do
150
+ let(:girl_name) { "cure_summer" }
151
+ let(:human_name) { "夏海まなつ" }
152
+ let(:precure_name) { "キュアサマー" }
153
+ let(:cast_name) { "ファイルーズあい" }
154
+ let(:created_date) { date("2021-02-28") }
155
+ let(:transform_calls) { %w[precure_tropical_change] }
156
+ let(:color) { "white" }
157
+
158
+ let(:transform_message) do
159
+ <<~MSG
160
+ プリキュア!トロピカルチェンジ!
161
+ レッツメイク!キャッチ!
162
+ チーク!
163
+ アイズ!
164
+ ヘアー!
165
+ リップ!
166
+ ドレス!
167
+ ときめく常夏!キュアサマー!
168
+ はぁー!
169
+ ${random_transform_word}
170
+ トロピカル~ジュ!プリキュア!
171
+ MSG
172
+ end
173
+
174
+ let(:random_transform_words) do
175
+ %w[
176
+ 4人揃って!
177
+ 今日も元気だ!
178
+ ]
179
+ end
180
+
181
+ it "stdout includes one of random_transform_words" do
182
+ girl.transform!
183
+
184
+ expect(mock_io.string).to include("4人揃って!").or include("今日も元気だ!")
185
+ end
186
+ end
146
187
  end
147
188
 
148
189
  describe "#==" do
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: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-31 00:00:00.000000000 Z
11
+ date: 2022-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
398
  - !ruby/object:Gem::Version
399
399
  version: '0'
400
400
  requirements: []
401
- rubygems_version: 3.3.3
401
+ rubygems_version: 3.2.32
402
402
  signing_key:
403
403
  specification_version: 4
404
404
  summary: All about Japanese battle heroine "Pretty Cure (Precure)".