rubicure 1.3.4 → 1.3.5

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: 4b535dadc86c791e8e1b6cc0a49d74a0f5038b952719c77a9ce0e5794cb275d4
4
- data.tar.gz: fcdcf15055c33f48c339b93bddae49bfe02404d40ce9aff0a4286e8497877ba9
3
+ metadata.gz: 0baca8f7e279a7256178e6409ed1b3af2e5651dc552937a1dd78c065e8536a8f
4
+ data.tar.gz: dbcfe229cca84c51fb024efb6f4ff2f09a3a444f2091deab87c42edcecf6651c
5
5
  SHA512:
6
- metadata.gz: da8b11c1f8570a8cc14b47d184d5b45653f29753c0dbd71943e50d8eb6131808e031542491ef6451afdbafa716aab7fb11b806994a1bcd059f7bff8747471ed9
7
- data.tar.gz: 02f4f4933621cb14bd7d3421638b3db223b85b3b258379a84a6f2f5fad0fa3009d3ae7d18f312e0e8d9c3adde20637188beebe04c7d73ba6897e7378c9581385
6
+ metadata.gz: f7b4426b60fc7e02f3eea3e29952ce7af81acd4e7023c409b98b1510bce182f9b1f64ace6c93956f537e9db67b100f0d10c81c569753b8355a5cfc90c5b586d6
7
+ data.tar.gz: f78e4ea0c8128fc172caf9d672337c10b44a22e57a9380069843bfa7e656203fd518a45ad7071bbaffa1c137ed27ab08a68a132ca52d270d232d1fc11cf3fcda
@@ -91,7 +91,7 @@ jobs:
91
91
  continue-on-error: ${{ matrix.allow_failures == 'true' }}
92
92
 
93
93
  - name: Slack Notification (not success)
94
- uses: homoluctus/slatify@master
94
+ uses: lazy-actions/slatify@master
95
95
  if: "! success()"
96
96
  continue-on-error: true
97
97
  with:
@@ -109,7 +109,7 @@ jobs:
109
109
 
110
110
  steps:
111
111
  - name: Slack Notification (success)
112
- uses: homoluctus/slatify@master
112
+ uses: lazy-actions/slatify@master
113
113
  if: always()
114
114
  continue-on-error: true
115
115
  with:
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v1.3.4...master)
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v1.3.5...master)
3
+
4
+ ## v1.3.5
5
+ [full changelog](http://github.com/sue445/rubicure/compare/v1.3.4...v1.3.5)
6
+
7
+ * Impl `Precure.miracle_leap`
8
+ * https://github.com/sue445/rubicure/pull/243
3
9
 
4
10
  ## v1.3.4
5
11
  [full changelog](http://github.com/sue445/rubicure/compare/v1.3.3...v1.3.4)
data/Gemfile CHANGED
@@ -8,6 +8,9 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
8
8
 
9
9
  # i18n v1.5.1+ requires Ruby 2.3.0+
10
10
  gem "i18n", "< 1.5.1"
11
+
12
+ # N0TE: unparser v0.5.0+ requires ruby 2.3.0+
13
+ gem "unparser", "< 0.5.0"
11
14
  end
12
15
 
13
16
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
data/README.md CHANGED
@@ -535,6 +535,15 @@ and [more aliases!](config/movies.yml)
535
535
  => ["キュアホイップ", "キュアカスタード", "キュアジェラート", "キュアマカロン", "キュアショコラ", "キュアパルフェ", "キュアエール", "キュアアンジュ", "キュアエトワール", "キュアマシェリ", "キュアアムール", "キュアスター", "キュアミルキー", "キュアソレイユ", "キュアセレーネ"]
536
536
  ```
537
537
 
538
+ ### `Precure.miracle_leap`
539
+ ```ruby
540
+ >> Precure.miracle_leap.count
541
+ => 13
542
+
543
+ >> Precure.miracle_leap.map(&:precure_name)
544
+ => ["キュアエール", "キュアアンジュ", "キュアエトワール", "キュアマシェリ", "キュアアムール", "キュアスター", "キュアミルキー", "キュアソレイユ", "キュアセレーネ", "キュアコスモ", "キュアグレース", "キュアフォンテーヌ", "キュアスパークル"]
545
+ ```
546
+
538
547
  ### Equivalence
539
548
  ```ruby
540
549
  >> yayoi = Cure.peace.dup
@@ -72,3 +72,7 @@ memories: &memories
72
72
  miracle_universe: &miracle_universe
73
73
  title: 映画プリキュアミラクルユニバース
74
74
  started_date: 2019-03-16
75
+ #######################################################
76
+ miracle_leap: &miracle_leap
77
+ title: 映画プリキュアミラクルリープ
78
+ started_date: 2020-10-31
@@ -217,6 +217,29 @@ module Rubicure
217
217
 
218
218
  @miracle_universe
219
219
  end
220
+
221
+ # Get precure miracle leap
222
+ #
223
+ # @return [Array<Rubicure::Girl>] precure miracle leap
224
+ #
225
+ # @example
226
+ # Precure.miracle_leap.count
227
+ # #=> 13
228
+ #
229
+ # Precure.miracle_leap.map(&:precure_name)
230
+ # #=> ["キュアエール", "キュアアンジュ", "キュアエトワール", "キュアマシェリ", "キュアアムール", "キュアスター", "キュアミルキー", "キュアソレイユ", "キュアセレーネ", "キュアグレース", "キュアフォンテーヌ", "キュアスパークル"]
231
+ def miracle_leap
232
+ return @miracle_leap if @miracle_leap
233
+
234
+ girls = Precure.hugtto.girls + Precure.star_twinkle.girls + Precure.healingood.girls
235
+
236
+ miracle_leap_date = Rubicure::Movie.find(:miracle_leap).started_date
237
+ @miracle_leap = girls.select {|girl| girl.created_date && girl.created_date <= miracle_leap_date }
238
+ @miracle_leap.reject! {|girl| girl == Cure.earth }
239
+
240
+ @miracle_leap
241
+ end
242
+
220
243
  # rubocop:enable Metrics/LineLength
221
244
 
222
245
  # iterate with :unmarked, :max_heart, ...
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "1.3.4".freeze
2
+ VERSION = "1.3.5".freeze
3
3
  end
@@ -182,4 +182,28 @@ describe Rubicure::Core do
182
182
 
183
183
  it { should contain_exactly(*miracle_universe_girl_names) }
184
184
  end
185
+
186
+ describe "#miracle_leap" do
187
+ subject { Precure.miracle_leap.map(&:girl_name) }
188
+
189
+ let(:miracle_leap_girl_names) do
190
+ [
191
+ Cure.yell,
192
+ Cure.ange,
193
+ Cure.etoile,
194
+ Cure.macherie,
195
+ Cure.amour,
196
+ Cure.star,
197
+ Cure.milky,
198
+ Cure.soleil,
199
+ Cure.selene,
200
+ Cure.cosmo,
201
+ Cure.grace,
202
+ Cure.fontaine,
203
+ Cure.sparkle,
204
+ ].map(&:girl_name)
205
+ end
206
+
207
+ it { should contain_exactly(*miracle_leap_girl_names) }
208
+ end
185
209
  end
@@ -13,6 +13,7 @@ describe Rubicure::Movie do
13
13
  :super_stars,
14
14
  :memories,
15
15
  :miracle_universe,
16
+ :miracle_leap,
16
17
  ]
17
18
  end
18
19
 
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.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-16 00:00:00.000000000 Z
11
+ date: 2020-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -339,7 +339,7 @@ metadata:
339
339
  homepage_uri: https://github.com/sue445/rubicure
340
340
  source_code_uri: https://github.com/sue445/rubicure
341
341
  changelog_uri: https://github.com/sue445/rubicure/blob/master/CHANGELOG.md
342
- post_install_message:
342
+ post_install_message:
343
343
  rdoc_options: []
344
344
  require_paths:
345
345
  - lib
@@ -354,8 +354,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
354
  - !ruby/object:Gem::Version
355
355
  version: '0'
356
356
  requirements: []
357
- rubygems_version: 3.0.6
358
- signing_key:
357
+ rubygems_version: 3.1.4
358
+ signing_key:
359
359
  specification_version: 4
360
360
  summary: All about Japanese battle heroine "Pretty Cure (Precure)".
361
361
  test_files: