rubicure 2.1.3 → 3.0.1
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 +1 -2
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +30 -1
- data/Gemfile +0 -5
- data/README.md +10 -2
- data/config/girls/017_healingood.yml +4 -4
- data/config/girls/018_tropical_rouge.yml +52 -9
- data/config/series.yml +1 -1
- data/lib/rubicure/concerns/util.rb +8 -0
- data/lib/rubicure/girl.rb +12 -4
- data/lib/rubicure/movie.rb +3 -1
- data/lib/rubicure/series.rb +3 -1
- data/lib/rubicure/version.rb +1 -1
- data/lib/rubicure.rb +8 -0
- data/rubicure.gemspec +5 -4
- data/spec/config/girls_checker_spec.rb +15 -1
- data/spec/config/series_checker_spec.rb +1 -1
- data/spec/rubicure/girl_spec.rb +51 -10
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c3737d8910f3c70c7585874c07348835b64305a12684524dd03f4f5c6391206
|
4
|
+
data.tar.gz: ede1db907ee2349ea1266ffd09c6fa34b91939b3b822716f337dd902da752aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e62b6affb30bb1099ed6d1d2e618e0ae30262b6b814f842e9b9cdab450b6a9a611e99a9f374211f4fc7eea72d343602683d446e37241f69d9158977328403a
|
7
|
+
data.tar.gz: 5a1d7b8623792c4db4fd8ede8f2458445abc8cbdb6999208cd3fb89d926fb737b004b7574d4d88344804685b5faedfbf0b0c504a4d6ca241a1278f5283919c9b
|
data/.github/workflows/test.yml
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,34 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubicure/compare/
|
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
|
13
|
+
|
14
|
+
## v3.0.0
|
15
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v2.1.5...v3.0.0)
|
16
|
+
|
17
|
+
### Breaking changes :bomb:
|
18
|
+
* Supports ruby 3.1+ and drop ruby < 2.6
|
19
|
+
* https://github.com/sue445/rubicure/pull/259
|
20
|
+
|
21
|
+
## v2.1.5
|
22
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v2.1.4...v2.1.5)
|
23
|
+
|
24
|
+
* Fixed. `NameError: uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState` with activesupport v7.0.0
|
25
|
+
* https://github.com/sue445/rubicure/pull/258
|
26
|
+
|
27
|
+
## v2.1.4
|
28
|
+
[full changelog](http://github.com/sue445/rubicure/compare/v2.1.3...v2.1.4)
|
29
|
+
|
30
|
+
* Enable MFA requirement for gem releasing
|
31
|
+
* https://github.com/sue445/rubicure/pull/256
|
3
32
|
|
4
33
|
## v2.1.3
|
5
34
|
[full changelog](http://github.com/sue445/rubicure/compare/v2.1.2...v2.1.3)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
[![Build Status](https://github.com/sue445/rubicure/workflows/test/badge.svg?branch=master)](https://github.com/sue445/rubicure/actions?query=workflow%3Atest)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sue445/rubicure.png)](https://codeclimate.com/github/sue445/rubicure)
|
6
6
|
[![Coverage Status](https://coveralls.io/repos/sue445/rubicure/badge.png)](https://coveralls.io/r/sue445/rubicure)
|
7
|
-
[![Inline docs](http://inch-ci.org/github/sue445/rubicure.svg?branch=master)](http://inch-ci.org/github/sue445/rubicure)
|
8
7
|
|
9
8
|
All about Japanese battle heroine "Pretty Cure (Precure)".
|
10
9
|
|
@@ -119,7 +118,7 @@ and [more aliases!](config/series.yml)
|
|
119
118
|
|
120
119
|
```ruby
|
121
120
|
>> Precure.now
|
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"]}
|
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"]}
|
123
122
|
|
124
123
|
# -2013/1/27 : smile precure
|
125
124
|
# 2013/2/5 - : dokidoki precure
|
@@ -419,6 +418,15 @@ Go!プリンセスプリキュア!
|
|
419
418
|
プリキュア!ルビーパッショナーレ!
|
420
419
|
```
|
421
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
|
+
|
422
430
|
### full_name
|
423
431
|
When `Rubicure::Girl` has `human_full_name` (i.e. another `human_name`), she returns as `#full_name`
|
424
432
|
|
@@ -25,7 +25,7 @@ cure_grace: &cure_grace
|
|
25
25
|
プリキュア!ヒーリングフラワー!
|
26
26
|
お大事に
|
27
27
|
transform_calls:
|
28
|
-
-
|
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
|
-
-
|
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
|
-
-
|
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
|
-
-
|
121
|
+
- operation
|
122
122
|
earth:
|
123
123
|
<<: *cure_earth
|
@@ -16,7 +16,40 @@ cure_summer: &cure_summer
|
|
16
16
|
ドレス!
|
17
17
|
ときめく常夏!キュアサマー!
|
18
18
|
はぁー!
|
19
|
-
|
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
|
-
-
|
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
|
-
|
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
|
-
-
|
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
|
-
|
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
|
-
-
|
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
|
-
|
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
|
-
-
|
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
|
-
-
|
186
|
+
- tropical_change
|
144
187
|
lamer:
|
145
188
|
<<: *cure_lamer
|
data/config/series.yml
CHANGED
@@ -22,6 +22,14 @@ module Rubicure
|
|
22
22
|
nil
|
23
23
|
end
|
24
24
|
end
|
25
|
+
|
26
|
+
module_function
|
27
|
+
|
28
|
+
# @param yaml_file [String]
|
29
|
+
# @return [Hash]
|
30
|
+
def load_yaml_file(yaml_file)
|
31
|
+
YAML.safe_load(File.read(yaml_file), permitted_classes: [Date], aliases: true)
|
32
|
+
end
|
25
33
|
end
|
26
34
|
end
|
27
35
|
end
|
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
|
-
|
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
|
@@ -215,7 +224,7 @@ module Rubicure
|
|
215
224
|
# @return [Hash] content of config/girls/*.yml
|
216
225
|
def config
|
217
226
|
unless @config
|
218
|
-
@config = SengiriYaml.load_dir("#{File.dirname(__FILE__)}/../../config/girls").deep_symbolize_keys
|
227
|
+
@config = SengiriYaml.load_dir("#{File.dirname(__FILE__)}/../../config/girls", permitted_classes: [Date], aliases: true).deep_symbolize_keys
|
219
228
|
end
|
220
229
|
@config
|
221
230
|
end
|
@@ -293,8 +302,7 @@ module Rubicure
|
|
293
302
|
return false unless has_key?(:transform_calls)
|
294
303
|
|
295
304
|
shortened_name = method_name.to_s.
|
296
|
-
sub(/\Aprecure_|_precure\z/, "").
|
297
|
-
sub(/!\z/, "")
|
305
|
+
sub(/\Aprecure_|_precure\z/, "").delete_suffix("!")
|
298
306
|
|
299
307
|
transform_calls.include?(shortened_name)
|
300
308
|
end
|
data/lib/rubicure/movie.rb
CHANGED
@@ -6,6 +6,8 @@ module Rubicure
|
|
6
6
|
include Hashie::Extensions::MethodAccess
|
7
7
|
|
8
8
|
class << self
|
9
|
+
include Rubicure::Concerns::Util
|
10
|
+
|
9
11
|
# @return [Array<Symbol>]
|
10
12
|
def names
|
11
13
|
config.keys
|
@@ -24,7 +26,7 @@ module Rubicure
|
|
24
26
|
def config
|
25
27
|
unless @config
|
26
28
|
config_file = "#{File.dirname(__FILE__)}/../../config/movies.yml"
|
27
|
-
@config =
|
29
|
+
@config = load_yaml_file(config_file).deep_symbolize_keys
|
28
30
|
end
|
29
31
|
@config
|
30
32
|
end
|
data/lib/rubicure/series.rb
CHANGED
@@ -87,6 +87,8 @@ module Rubicure
|
|
87
87
|
end
|
88
88
|
|
89
89
|
class << self
|
90
|
+
include Rubicure::Concerns::Util
|
91
|
+
|
90
92
|
# @return [Array<Symbol>]
|
91
93
|
def names
|
92
94
|
config.keys
|
@@ -105,7 +107,7 @@ module Rubicure
|
|
105
107
|
def config
|
106
108
|
unless @config
|
107
109
|
config_file = "#{File.dirname(__FILE__)}/../../config/series.yml"
|
108
|
-
@config =
|
110
|
+
@config = load_yaml_file(config_file).deep_symbolize_keys
|
109
111
|
end
|
110
112
|
@config
|
111
113
|
end
|
data/lib/rubicure/version.rb
CHANGED
data/lib/rubicure.rb
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
require "active_support/core_ext/array/wrap"
|
2
2
|
require "active_support/core_ext/hash/keys"
|
3
|
+
|
4
|
+
begin
|
5
|
+
# workaround for activesupport 7.0.0
|
6
|
+
# c.f. https://github.com/rails/rails/issues/43851
|
7
|
+
require "active_support/isolated_execution_state"
|
8
|
+
rescue LoadError # rubocop:disable Lint/SuppressedException
|
9
|
+
end
|
3
10
|
require "active_support/core_ext/time/calculations"
|
11
|
+
|
4
12
|
require "yaml"
|
5
13
|
require "hashie"
|
6
14
|
require "date"
|
data/rubicure.gemspec
CHANGED
@@ -12,15 +12,16 @@ 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.6"
|
16
16
|
|
17
17
|
if spec.respond_to?(:metadata)
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
19
19
|
spec.metadata["source_code_uri"] = spec.homepage
|
20
20
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
21
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
21
22
|
else
|
22
23
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
-
|
24
|
+
"public gem pushes."
|
24
25
|
end
|
25
26
|
|
26
27
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
@@ -35,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
35
36
|
|
36
37
|
spec.add_dependency "activesupport", ">= 5.0.0"
|
37
38
|
spec.add_dependency "hashie", ">= 2.0.5"
|
38
|
-
spec.add_dependency "sengiri_yaml", ">= 0.0
|
39
|
+
spec.add_dependency "sengiri_yaml", ">= 1.0.0"
|
39
40
|
|
40
41
|
spec.add_development_dependency "bundler", ">= 1.3.5"
|
41
42
|
spec.add_development_dependency "coveralls"
|
@@ -46,7 +47,7 @@ Gem::Specification.new do |spec|
|
|
46
47
|
spec.add_development_dependency "rspec-collection_matchers"
|
47
48
|
spec.add_development_dependency "rspec-its"
|
48
49
|
spec.add_development_dependency "rspec-parameterized", ">= 0.3.2"
|
49
|
-
spec.add_development_dependency "rubocop", "1.
|
50
|
+
spec.add_development_dependency "rubocop", "1.24.0"
|
50
51
|
spec.add_development_dependency "rubocop_auto_corrector"
|
51
52
|
spec.add_development_dependency "rubocop-performance", "1.9.2"
|
52
53
|
spec.add_development_dependency "rubocop-rake", "0.5.1"
|
@@ -3,7 +3,7 @@ describe "girls_checker" do # rubocop:disable RSpec/DescribeClass
|
|
3
3
|
|
4
4
|
config_files.each do |config_file|
|
5
5
|
describe "config/girls/#{config_file.basename}" do
|
6
|
-
girls =
|
6
|
+
girls = Rubicure::Concerns::Util.load_yaml_file(config_file)
|
7
7
|
|
8
8
|
girls.each do |girl_name, girl|
|
9
9
|
describe girl_name do
|
@@ -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,5 +1,5 @@
|
|
1
1
|
describe "config/series.yml" do # rubocop:disable RSpec/DescribeClass
|
2
|
-
series =
|
2
|
+
series = Rubicure::Concerns::Util.load_yaml_file("#{spec_dir}/../config/series.yml")
|
3
3
|
|
4
4
|
series.values.uniq {|attributes| attributes["series_name"] }.each do |attributes|
|
5
5
|
context attributes["title"] do
|
data/spec/rubicure/girl_spec.rb
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
describe Rubicure::Girl do
|
2
2
|
let(:girl) do
|
3
3
|
girl = Rubicure::Girl[
|
4
|
-
girl_name:
|
5
|
-
human_name:
|
6
|
-
precure_name:
|
7
|
-
cast_name:
|
8
|
-
created_date:
|
9
|
-
extra_names:
|
10
|
-
transform_message:
|
11
|
-
attack_messages:
|
12
|
-
transform_calls:
|
13
|
-
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:
|
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:
|
11
|
+
date: 2022-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0
|
47
|
+
version: 1.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0
|
54
|
+
version: 1.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - '='
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 1.
|
187
|
+
version: 1.24.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: 1.
|
194
|
+
version: 1.24.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: rubocop_auto_corrector
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -382,6 +382,7 @@ metadata:
|
|
382
382
|
homepage_uri: https://github.com/sue445/rubicure
|
383
383
|
source_code_uri: https://github.com/sue445/rubicure
|
384
384
|
changelog_uri: https://github.com/sue445/rubicure/blob/master/CHANGELOG.md
|
385
|
+
rubygems_mfa_required: 'true'
|
385
386
|
post_install_message:
|
386
387
|
rdoc_options: []
|
387
388
|
require_paths:
|
@@ -390,14 +391,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
390
391
|
requirements:
|
391
392
|
- - ">="
|
392
393
|
- !ruby/object:Gem::Version
|
393
|
-
version: '2.
|
394
|
+
version: '2.6'
|
394
395
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
395
396
|
requirements:
|
396
397
|
- - ">="
|
397
398
|
- !ruby/object:Gem::Version
|
398
399
|
version: '0'
|
399
400
|
requirements: []
|
400
|
-
rubygems_version: 3.2.
|
401
|
+
rubygems_version: 3.2.32
|
401
402
|
signing_key:
|
402
403
|
specification_version: 4
|
403
404
|
summary: All about Japanese battle heroine "Pretty Cure (Precure)".
|