rubicure 3.2.3 → 3.2.5

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: 7587ca720da06030b40084bef3c18deb033f674d60e52beee7ae026ccabaeb2d
4
- data.tar.gz: 84c6c68681cc57534090fcc6cc61a6398578b5c48bd3891f14fe6852ca5d97f9
3
+ metadata.gz: 7fbf3073deda314990975a23c4db0b9ee29e5cb5def5a35dc88af3f427e95093
4
+ data.tar.gz: 0b7b6579681014ac9423e879df9901364c456e94aa59f1ae1830fb0b9500701b
5
5
  SHA512:
6
- metadata.gz: 51067953a20dc235ea354fb8c01a63382bbd9c52a8abe10187a57f8c9a4fb6483fb2d9714352671106db4aac15d578d8f4b3cfb1f05ff8ccb491bccb60b93472
7
- data.tar.gz: 229d668c5be8556da5e46904ef91f12d14862f29f77a21a1550b28437d0fd1c5651ebd90ac20f0f96f5255dceb9b7d8d09031efb0422ab2cc62b84d3134145a5
6
+ metadata.gz: ce2e440cabb12b30f918b78b6aaabcebba13731d293e70d772fddbedf2ea016f80ab4523f09d6277b2c6c44754174177963e979dac76cf88df5ec0c2999ad350
7
+ data.tar.gz: 5bf5ce4f5e9f0f537b2b0f7956cb3edee18cf6b5fa77dad7ffadaff0cfb5a3a42743f5b975f5f97ef0ce3c9703df997661ca6039d83b8493ec99699197d10346
@@ -30,7 +30,7 @@ jobs:
30
30
  runs-on: ubuntu-latest
31
31
  steps:
32
32
  - name: Checkout
33
- uses: actions/checkout@v3
33
+ uses: actions/checkout@v4
34
34
 
35
35
  - uses: ruby/setup-ruby@v1
36
36
  with:
@@ -29,14 +29,33 @@ jobs:
29
29
  - "3.0"
30
30
  - "3.1"
31
31
  - "3.2"
32
+ gemfile:
33
+ - activesupport_5_0
34
+ - activesupport_5_1
35
+ - activesupport_5_2
36
+ - activesupport_6_0
37
+ - activesupport_6_1
38
+ - activesupport_7_0
39
+ - activesupport_7_1
40
+ exclude:
41
+ # activesupport 7.0+ requires Ruby 2.7+
42
+ - ruby: "2.6"
43
+ gemfile: activesupport_7_0
44
+ - ruby: "2.6"
45
+ gemfile: activesupport_7_1
46
+
47
+ env:
48
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
32
49
 
33
50
  steps:
34
- - uses: actions/checkout@v3
51
+ - uses: actions/checkout@v4
35
52
 
36
53
  - uses: ruby/setup-ruby@v1
37
54
  with:
38
55
  ruby-version: ${{ matrix.ruby }}
39
56
  bundler-cache: true
57
+ rubygems: latest
58
+ cache-version: 1
40
59
 
41
60
  - name: bundle update
42
61
  run: |
data/.rubocop.yml CHANGED
@@ -12,6 +12,15 @@ AllCops:
12
12
  TargetRubyVersion: 2.6
13
13
  NewCops: enable
14
14
 
15
+ Exclude:
16
+ - 'gemfiles/vendor/**/*'
17
+
18
+ # c.f. https://github.com/rubocop/rubocop/blob/v1.56.4/config/default.yml#L65-L69
19
+ - 'node_modules/**/*'
20
+ - 'tmp/**/*'
21
+ - 'vendor/**/*'
22
+ - '.git/**/*'
23
+
15
24
  Layout/HashAlignment:
16
25
  EnforcedHashRocketStyle: table
17
26
  EnforcedColonStyle: table
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v3.2.2...master)
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v3.2.5...master)
3
+
4
+ ## v3.2.5
5
+ [full changelog](http://github.com/sue445/rubicure/compare/v3.2.4...v3.2.5)
6
+
7
+ * Support activesupport 7.1
8
+ * https://github.com/sue445/rubicure/pull/295
9
+
10
+ ## v3.2.4
11
+ [full changelog](http://github.com/sue445/rubicure/compare/v3.2.3...v3.2.4)
12
+
13
+ * Add `Precure.all_stars(:f)`
14
+ * https://github.com/sue445/rubicure/pull/291
3
15
 
4
16
  ## v3.2.3
5
17
  [full changelog](http://github.com/sue445/rubicure/compare/v3.2.2...v3.2.3)
data/README.md CHANGED
@@ -498,6 +498,11 @@ When `Rubicure::Girl` has `human_full_name` (i.e. another `human_name`), she ret
498
498
 
499
499
  >> Precure.all_stars(:memories).count
500
500
  => 55
501
+
502
+ >> Precure.all_stars(:f).count
503
+ => 78
504
+ >> Precure.all_stars(:f).include?(Cure.echo)
505
+ => false
501
506
  ```
502
507
 
503
508
  and [more aliases!](config/movies.yml)
@@ -809,5 +814,6 @@ http://sue445.github.io/rubicure/
809
814
  1. Fork it
810
815
  2. Create your feature branch (`git checkout -b my-new-feature`)
811
816
  3. Commit your changes (`git commit -am 'Add some feature'`)
812
- 4. Push to the branch (`git push origin my-new-feature`)
813
- 5. Create new Pull Request
817
+ 4. Run test (`bundle exec rake test`)
818
+ 5. Push to the branch (`git push origin my-new-feature`)
819
+ 6. Create new Pull Request
data/config/movies.yml CHANGED
@@ -76,3 +76,7 @@ miracle_universe: &miracle_universe
76
76
  miracle_leap: &miracle_leap
77
77
  title: 映画プリキュアミラクルリープ
78
78
  started_date: 2020-10-31
79
+ #######################################################
80
+ f: &f
81
+ title: 映画プリキュアオールスターズF
82
+ started_date: 2023-09-15
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "~> 5.0.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "~> 5.1.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "~> 5.2.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "~> 6.0.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "~> 6.1.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "~> 7.0.0"
4
+
5
+ gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "~> 7.1.0"
4
+
5
+ gemspec path: "../"
data/lib/rubicure/core.rb CHANGED
@@ -95,6 +95,14 @@ module Rubicure
95
95
  # #=> 44
96
96
  # Precure.all_stars(:sing_together_miracle_magic).include?(Cure.echo)
97
97
  # #=> true
98
+ #
99
+ # Precure.all_stars(:memories).count
100
+ # #=> 55
101
+ #
102
+ # Precure.all_stars(:f).count
103
+ # #=> 78
104
+ # Precure.all_stars(:f).include?(Cure.echo)
105
+ # #=> false
98
106
  def all_stars(arg = Time.current)
99
107
  extra_girls = []
100
108
 
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "3.2.3".freeze
2
+ VERSION = "3.2.5".freeze
3
3
  end
data/lib/rubicure.rb CHANGED
@@ -1,5 +1,8 @@
1
+ require "active_support"
2
+
1
3
  require "active_support/core_ext/array/wrap"
2
4
  require "active_support/core_ext/hash/keys"
5
+ require "active_support/core_ext/object/blank"
3
6
 
4
7
  begin
5
8
  # workaround for activesupport 7.0.0
@@ -73,6 +73,10 @@ describe Rubicure::Core do
73
73
  :sing_together_miracle_magic | 44 | true
74
74
 
75
75
  :memories | 55 | false
76
+
77
+ # NOTE: キュアエコーを含めると79人なのだが、公式や各種メディアが78人と言っているのでキュアエコーは含めていない
78
+ # c.f. https://twitter.com/precure_movie/status/1704691931094384957
79
+ :f | 78 | false
76
80
  end
77
81
 
78
82
  with_them do
@@ -14,6 +14,7 @@ describe Rubicure::Movie do
14
14
  :memories,
15
15
  :miracle_universe,
16
16
  :miracle_leap,
17
+ :f,
17
18
  ]
18
19
  end
19
20
 
data/spec/spec_helper.rb CHANGED
@@ -35,6 +35,9 @@ require "rspec/its"
35
35
  require "rspec/collection_matchers"
36
36
  require "delorean"
37
37
  require "tempfile"
38
+
39
+ # NOTE: requires minimum dependencies
40
+ require "active_support/core_ext/string/filters"
38
41
  require "active_support/core_ext/time/zones"
39
42
 
40
43
  # Requires supporting ruby files with custom matchers and macros, etc,
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.2.3
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-10 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -347,6 +347,13 @@ files:
347
347
  - config/girls/movie.yml
348
348
  - config/movies.yml
349
349
  - config/series.yml
350
+ - gemfiles/activesupport_5_0.gemfile
351
+ - gemfiles/activesupport_5_1.gemfile
352
+ - gemfiles/activesupport_5_2.gemfile
353
+ - gemfiles/activesupport_6_0.gemfile
354
+ - gemfiles/activesupport_6_1.gemfile
355
+ - gemfiles/activesupport_7_0.gemfile
356
+ - gemfiles/activesupport_7_1.gemfile
350
357
  - lib/rubicure.rb
351
358
  - lib/rubicure/concerns/gengou.rb
352
359
  - lib/rubicure/concerns/util.rb