rubicure 2.1.3 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f982b720c002c29f3b9d207bf633e001b45e358785cc25b29475ee2c0d0e38ce
4
- data.tar.gz: 37a75b1663e79c9526ea1289caa3fed3ef9963fd676240a9936f1c258e6ee124
3
+ metadata.gz: 2c3737d8910f3c70c7585874c07348835b64305a12684524dd03f4f5c6391206
4
+ data.tar.gz: ede1db907ee2349ea1266ffd09c6fa34b91939b3b822716f337dd902da752aaa
5
5
  SHA512:
6
- metadata.gz: ff61bd10c70f6a6101a5d9aa4036ada09d7e0fcc5a4c449c9926bfa6bfde33f95225e77bb95dcb8f3d112d3ab5c87304c6bfe5b47eb4ba70aa6ea9a530717fa8
7
- data.tar.gz: e226e849aa9f122ef74243e349d49c27f74406f56ae8aeb95f7b6aabbc414991dba7ce1e79eff086cbfa8a6f88efbd142d1897c4d790a1ebf0942ca190940e6c
6
+ metadata.gz: 45e62b6affb30bb1099ed6d1d2e618e0ae30262b6b814f842e9b9cdab450b6a9a611e99a9f374211f4fc7eea72d343602683d446e37241f69d9158977328403a
7
+ data.tar.gz: 5a1d7b8623792c4db4fd8ede8f2458445abc8cbdb6999208cd3fb89d926fb737b004b7574d4d88344804685b5faedfbf0b0c504a4d6ca241a1278f5283919c9b
@@ -27,11 +27,10 @@ jobs:
27
27
 
28
28
  matrix:
29
29
  ruby:
30
- - ruby:2.4
31
- - ruby:2.5
32
30
  - ruby:2.6
33
31
  - ruby:2.7
34
32
  - ruby:3.0
33
+ - ruby:3.1
35
34
  - rubylang/ruby:master-nightly-bionic
36
35
  include:
37
36
  - ruby: rubylang/ruby:master-nightly-bionic
data/.rubocop.yml CHANGED
@@ -9,7 +9,7 @@ inherit_gem:
9
9
  - "config/performance.yml"
10
10
 
11
11
  AllCops:
12
- TargetRubyVersion: 2.4
12
+ TargetRubyVersion: 2.6
13
13
  NewCops: enable
14
14
 
15
15
  Layout/HashAlignment:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v2.1.3...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
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
@@ -2,8 +2,3 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in rubicure.gemspec
4
4
  gemspec
5
-
6
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
7
- # activesupport v6.0.0+ requires Ruby 2.5.0+
8
- gem "activesupport", "< 6.0.0"
9
- end
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
- - 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
@@ -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
- 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
@@ -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
@@ -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 = YAML.load_file(config_file).deep_symbolize_keys
29
+ @config = load_yaml_file(config_file).deep_symbolize_keys
28
30
  end
29
31
  @config
30
32
  end
@@ -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 = YAML.load_file(config_file).deep_symbolize_keys
110
+ @config = load_yaml_file(config_file).deep_symbolize_keys
109
111
  end
110
112
  @config
111
113
  end
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "2.1.3".freeze
2
+ VERSION = "3.0.1".freeze
3
3
  end
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.4"
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
- "public gem pushes."
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.2"
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.7.0"
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 = YAML.load_file(config_file)
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 = YAML.load_file("#{spec_dir}/../config/series.yml")
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
@@ -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: 2.1.3
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-06-27 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
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.2
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.2
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.7.0
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.7.0
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.4'
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.3
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)".