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 +4 -4
- data/.github/workflows/test.yml +2 -2
- data/CHANGELOG.md +7 -1
- data/Gemfile +3 -0
- data/README.md +9 -0
- data/config/movies.yml +4 -0
- data/lib/rubicure/core.rb +23 -0
- data/lib/rubicure/version.rb +1 -1
- data/spec/rubicure/core_spec.rb +24 -0
- data/spec/rubicure/movie_spec.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0baca8f7e279a7256178e6409ed1b3af2e5651dc552937a1dd78c065e8536a8f
|
4
|
+
data.tar.gz: dbcfe229cca84c51fb024efb6f4ff2f09a3a444f2091deab87c42edcecf6651c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7b4426b60fc7e02f3eea3e29952ce7af81acd4e7023c409b98b1510bce182f9b1f64ace6c93956f537e9db67b100f0d10c81c569753b8355a5cfc90c5b586d6
|
7
|
+
data.tar.gz: f78e4ea0c8128fc172caf9d672337c10b44a22e57a9380069843bfa7e656203fd518a45ad7071bbaffa1c137ed27ab08a68a132ca52d270d232d1fc11cf3fcda
|
data/.github/workflows/test.yml
CHANGED
@@ -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:
|
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:
|
112
|
+
uses: lazy-actions/slatify@master
|
113
113
|
if: always()
|
114
114
|
continue-on-error: true
|
115
115
|
with:
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubicure/compare/v1.3.
|
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
|
data/config/movies.yml
CHANGED
data/lib/rubicure/core.rb
CHANGED
@@ -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, ...
|
data/lib/rubicure/version.rb
CHANGED
data/spec/rubicure/core_spec.rb
CHANGED
@@ -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
|
data/spec/rubicure/movie_spec.rb
CHANGED
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
|
+
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-
|
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.
|
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:
|