rubicure 4.2.1 → 4.2.3

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: f7bfa49a5867e66c6a472c8c7a9126257e139e8861c0ab9893cf0a9dacd3f263
4
- data.tar.gz: 33916515925e7985a26cde910e3a3b47d27ec823b202b5b238a1f27aa9b3a545
3
+ metadata.gz: 5f2dd3eb748ce6cbb25d296cfd4f14b68946c305b33c9a8d83aead11a9292381
4
+ data.tar.gz: a216a1fa2592a86d59ffdd2b96a9568451b19bd5b2d41cc906829c90aa90dd09
5
5
  SHA512:
6
- metadata.gz: 1445b146878f4ec5fe72d0984ad20e5228988eff8ee597e5d9cd87c6fb2bcce0f3244879b6fd88f9c3f2501a2c175b31063c7e9f8d130f03bedeb16fdb9b6433
7
- data.tar.gz: f2002d894372388acc5d41f12148b090fd47d0594ac2ac293bf4d9f70f8e947bf0be2f0bc3d13b428326f3ce4bc7679ddbc789fc750ac30cb8ecada6f5f82525
6
+ metadata.gz: 552943577e395b00f0f551e82938bf71d0306dc867b49308d642b7d28f8afef92c34996ae4ed8c034d390e2b699707210d23ba4e0ae1ba2c9a4413d16b3daec3
7
+ data.tar.gz: a3e10f2a6f56484109c7dafbe13645b0c1f33a4f48f788d194b8b1e72b0fe3ba9ed4fc510ac61096d48b67681d3ab3d75512947fbd3bcdc620f477cfaaa7ba4c
@@ -0,0 +1,35 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/dependabot-manager.yml': []
7
+ '.github/workflows/pages.yml': []
8
+ '.github/workflows/release_gem.yml': []
9
+ '.github/workflows/test.yml':
10
+ - 'act10ns/slack@v2.2.0'
11
+ - 'actions/checkout@v7.0.1'
12
+ - 're-actors/alls-green@v1.3.0'
13
+ - 'ruby/setup-ruby@v1.336.0'
14
+ '.github/workflows/verify-actions-lockfile.yml': []
15
+ dependencies:
16
+ 'act10ns/slack@v2.2.0':
17
+ ref: 'v2.2.0'
18
+ commit: 'sha1-d96404edccc6d6467fc7f8134a420c851b1e9054'
19
+ owner_id: 65077766
20
+ repo_id: 262583918
21
+ 'actions/checkout@v7.0.1':
22
+ ref: 'v7.0.1'
23
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
24
+ owner_id: 44036562
25
+ repo_id: 197814629
26
+ 're-actors/alls-green@v1.3.0':
27
+ ref: 'v1.3.0'
28
+ commit: 'sha1-b5b5b37504aa4183270bd3d855c52a67f212be35'
29
+ owner_id: 46427759
30
+ repo_id: 434447646
31
+ 'ruby/setup-ruby@v1.336.0':
32
+ ref: 'v1.336.0'
33
+ commit: 'sha1-de492cf36cbab201753d720ce4f4e336cd688c94'
34
+ owner_id: 210414
35
+ repo_id: 231208785
@@ -67,9 +67,9 @@ jobs:
67
67
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
68
68
 
69
69
  steps:
70
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
70
+ - uses: actions/checkout@v7.0.1
71
71
 
72
- - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
72
+ - uses: ruby/setup-ruby@v1.336.0
73
73
  with:
74
74
  ruby-version: ${{ matrix.ruby }}
75
75
  bundler-cache: true
@@ -92,7 +92,7 @@ jobs:
92
92
  if: matrix.ruby >= '3.4' && matrix.gemfile >= 'activesupport_7_1'
93
93
 
94
94
  - name: Slack Notification (not success)
95
- uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
95
+ uses: act10ns/slack@v2.2.0
96
96
  if: "! success()"
97
97
  continue-on-error: true
98
98
  with:
@@ -104,9 +104,9 @@ jobs:
104
104
  runs-on: ubuntu-latest
105
105
 
106
106
  steps:
107
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
107
+ - uses: actions/checkout@v7.0.1
108
108
 
109
- - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
109
+ - uses: ruby/setup-ruby@v1.336.0
110
110
  with:
111
111
  ruby-version: ruby
112
112
  bundler-cache: true
@@ -121,7 +121,7 @@ jobs:
121
121
  timeout-minutes: 1
122
122
 
123
123
  - name: Slack Notification (not success)
124
- uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
124
+ uses: act10ns/slack@v2.2.0
125
125
  if: "! success()"
126
126
  continue-on-error: true
127
127
  with:
@@ -132,9 +132,9 @@ jobs:
132
132
  runs-on: ubuntu-latest
133
133
 
134
134
  steps:
135
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
135
+ - uses: actions/checkout@v7.0.1
136
136
 
137
- - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
137
+ - uses: ruby/setup-ruby@v1.336.0
138
138
  with:
139
139
  ruby-version: ruby
140
140
  bundler-cache: true
@@ -152,7 +152,7 @@ jobs:
152
152
  ls -ld doc/
153
153
 
154
154
  - name: Slack Notification (not success)
155
- uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
155
+ uses: act10ns/slack@v2.2.0
156
156
  if: "! success()"
157
157
  continue-on-error: true
158
158
  with:
@@ -171,6 +171,6 @@ jobs:
171
171
 
172
172
  steps:
173
173
  - name: check dependent jobs
174
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
174
+ uses: re-actors/alls-green@v1.3.0
175
175
  with:
176
176
  jobs: ${{ toJSON(needs) }}
@@ -0,0 +1,17 @@
1
+ name: Verify Actions Lockfile
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - ".github/workflows/*.yml"
7
+ - ".github/workflows/actions.lock"
8
+ push:
9
+ branches:
10
+ - master
11
+ paths:
12
+ - ".github/workflows/*.yml"
13
+ - ".github/workflows/actions.lock"
14
+
15
+ jobs:
16
+ verify:
17
+ uses: sue445/workflows/.github/workflows/verify-actions-lockfile.yml@main
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubicure/compare/v4.2.1...master)
2
+ [full changelog](http://github.com/sue445/rubicure/compare/v4.2.3...master)
3
+
4
+ ## [v4.2.3](https://github.com/sue445/rubicure/releases/tag/v4.2.3)
5
+ [full changelog](http://github.com/sue445/rubicure/compare/v4.2.2...v4.2.3)
6
+
7
+ * Impl `real_name` and add `human_real_name` to `Cure.mystique`
8
+ * https://github.com/sue445/rubicure/pull/394
9
+
10
+ ## [v4.2.2](https://github.com/sue445/rubicure/releases/tag/v4.2.2)
11
+ [full changelog](http://github.com/sue445/rubicure/compare/v4.2.1...v4.2.2)
12
+
13
+ * キュアアルカナに girl_name がなかったのを修正
14
+ * https://github.com/sue445/rubicure/pull/387
3
15
 
4
16
  ## [v4.2.1](https://github.com/sue445/rubicure/releases/tag/v4.2.1)
5
17
  [full changelog](http://github.com/sue445/rubicure/compare/v4.2.0...v4.2.1)
data/README.md CHANGED
@@ -453,6 +453,25 @@ When `Rubicure::Girl` has `human_full_name` (i.e. another `human_name`), she ret
453
453
  => "朝日奈みらい"
454
454
  ```
455
455
 
456
+ ### real_name
457
+ When `Rubicure::Girl` has `human_real_name` (i.e. another `human_name`), she returns as `#real_name`
458
+
459
+ ```ruby
460
+ >> Cure.mystique.human_name
461
+ => "小林みくる"
462
+ >> Cure.mystique.real_name
463
+ => "花崎来未"
464
+ ```
465
+
466
+ `#real_name` returns `#human_name` when she does not have `human_real_name`
467
+
468
+ ```ruby
469
+ >> Cure.answer.human_name
470
+ => "明智あんな"
471
+ >> Cure.answer.real_name
472
+ => "明智あんな"
473
+ ```
474
+
456
475
  ### Precure allstars
457
476
  ```ruby
458
477
  >> Precure.all_stars.count
@@ -32,13 +32,14 @@ answer:
32
32
  <<: *cure_answer
33
33
 
34
34
  cure_mystique: &cure_mystique
35
- girl_name: cure_mystique
36
- human_name: 小林みくる
37
- precure_name: キュアミスティック
38
- cast_name: 本渡楓
39
- color: pink
40
- created_date: 2026-02-01 # episode 1
41
- birthday: 4/22
35
+ girl_name: cure_mystique
36
+ human_name: 小林みくる
37
+ human_real_name: 花崎来未
38
+ precure_name: キュアミスティック
39
+ cast_name: 本渡楓
40
+ color: pink
41
+ created_date: 2026-02-01 # episode 1
42
+ birthday: 4/22
42
43
  transform_message: |-
43
44
  オープン!ジュエルキュアウォッチ!
44
45
  プリキュア!ウェイクアップタイム!
@@ -97,6 +98,7 @@ eclair:
97
98
 
98
99
 
99
100
  cure_arcana: &cure_arcana
101
+ girl_name: cure_arcana
100
102
  human_name: 森亜るるか
101
103
  precure_name: キュアアルカナ
102
104
  cast_name: 東山奈央
data/lib/rubicure/girl.rb CHANGED
@@ -13,6 +13,7 @@ module Rubicure
13
13
  :girl_name,
14
14
  :human_name,
15
15
  :human_full_name,
16
+ :human_real_name,
16
17
  :precure_name,
17
18
  :cast_name,
18
19
  :color,
@@ -170,6 +171,13 @@ module Rubicure
170
171
  human_full_name.presence || human_name
171
172
  end
172
173
 
174
+ # returns `human_real_name` or `human_name`
175
+ #
176
+ # @return [String]
177
+ def real_name
178
+ human_real_name.presence || human_name
179
+ end
180
+
173
181
  # Whether Heisei precure
174
182
  def heisei?
175
183
  created_date.heisei?
@@ -1,3 +1,3 @@
1
1
  module Rubicure
2
- VERSION = "4.2.1".freeze
2
+ VERSION = "4.2.3".freeze
3
3
  end
@@ -7,6 +7,36 @@ describe "girls_checker" do # rubocop:disable RSpec/DescribeClass
7
7
 
8
8
  girls.each do |girl_name, girl|
9
9
  describe girl_name do
10
+ describe "#girl_name" do
11
+ subject { girl["girl_name"] }
12
+
13
+ it { should_not be_blank }
14
+ end
15
+
16
+ describe "#human_name" do
17
+ subject { girl["human_name"] }
18
+
19
+ it { should_not be_blank }
20
+ end
21
+
22
+ describe "#precure_name" do
23
+ subject { girl["precure_name"] }
24
+
25
+ it { should_not be_blank }
26
+ end
27
+
28
+ describe "#cast_name" do
29
+ subject { girl["cast_name"] }
30
+
31
+ it { should_not be_blank }
32
+ end
33
+
34
+ describe "#color" do
35
+ subject { girl["color"] }
36
+
37
+ it { should_not be_blank }
38
+ end
39
+
10
40
  describe "#transform_message" do
11
41
  subject { girl["transform_message"] }
12
42
 
@@ -364,6 +364,20 @@ describe Rubicure::Girl do
364
364
  end
365
365
  end
366
366
 
367
+ describe "#real_name" do
368
+ subject { girl.real_name }
369
+
370
+ context "has human_real_name" do
371
+ let(:girl) { Cure.mystique }
372
+
373
+ it { should eq "花崎来未" }
374
+ end
375
+
376
+ context "don't have human_real_name" do
377
+ it { should eq "黄瀬やよい" }
378
+ end
379
+ end
380
+
367
381
  describe "#heisei?" do
368
382
  subject { girl.heisei? }
369
383
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubicure
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -341,10 +341,12 @@ files:
341
341
  - ".coveralls.yml"
342
342
  - ".github/dependabot.yml"
343
343
  - ".github/release.yml"
344
+ - ".github/workflows/actions.lock"
344
345
  - ".github/workflows/dependabot-manager.yml"
345
346
  - ".github/workflows/pages.yml"
346
347
  - ".github/workflows/release_gem.yml"
347
348
  - ".github/workflows/test.yml"
349
+ - ".github/workflows/verify-actions-lockfile.yml"
348
350
  - ".gitignore"
349
351
  - ".rspec"
350
352
  - ".rubocop.yml"
@@ -447,7 +449,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
447
449
  - !ruby/object:Gem::Version
448
450
  version: '0'
449
451
  requirements: []
450
- rubygems_version: 4.0.16
452
+ rubygems_version: 4.0.20
451
453
  specification_version: 4
452
454
  summary: All about Japanese battle heroine "Pretty Cure (Precure)".
453
455
  test_files: []