shirobai-performance 2026.0713.1900 → 2026.0820.0300

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: 408a360394e06dcf618c0061d84cf1ef5fc881df2d29f9c9e15497d959f7861e
4
- data.tar.gz: e5634cd8ed4983ffd5c9efcd606758d67de9f5abe6d07c39bf38e0925a2c88a8
3
+ metadata.gz: febde5c2e1d97433e4d69a03261286ac5b082b1a3f816ae2f7338ad50ca0f298
4
+ data.tar.gz: 9fa7ae802207353f817c8e00712a910431c116f594eea4c9e02a7bc618102616
5
5
  SHA512:
6
- metadata.gz: e9b7fd9002fab1a7772aa49aec6d0f1f8a49e9c9e00b3aacb15c547eb957ef8ccf7caf3f5fc3bd7a5c004922810d98a7612f93a0e5c0f562fd1d61d5a4ae450f
7
- data.tar.gz: aca5948f3a4d482e67d3ae3b554f75874e8b0146643638dcad174fa0d6a180087496ef36aee6e1dfe29352958cd80a616157386c363f37efd2aff6ce19eb7930
6
+ metadata.gz: b6d10991984578c1bf54acfacaaf122e2b9961afbadf65ab57ba838da5b876bd4b35626b146a4efc505703777a0bbc13391fb4f7c854fe697fcb12e87c87f134
7
+ data.tar.gz: c2708f6affce1dea82d7028e56d977dd5b0c71929c72ec231f54a95da7520f562935ab26b08fb84058c32d239bd2bd0494f6d048ae518f509520ea0e8e8f4a3e
@@ -4,6 +4,6 @@ module Shirobai
4
4
  module Performance
5
5
  # Locked to the shirobai core gem version (release train: both gems
6
6
  # ship together and the gemspec pins `shirobai` to this exact version).
7
- VERSION = "2026.0713.1900"
7
+ VERSION = "2026.0820.0300"
8
8
  end
9
9
  end
@@ -5,15 +5,16 @@
5
5
  # 1. `shirobai` first. The core gem loads the native extension, replaces
6
6
  # the core cops, and defines `Shirobai::Dispatch` — the registration
7
7
  # point for this gem's packed-config segment.
8
- # 2. `rubocop-performance` second. Stock Performance cop classes must be
9
- # enlisted in RuboCop's registry BEFORE the wrappers below:
10
- # `Registry#clear_enrollment_queue` resolves same-badge collisions by
11
- # last-write-wins, so whoever is defined later owns the badge.
12
- # Requiring it here (the gemspec pins the exact version) makes the
13
- # replacement order independent of `.rubocop.yml` require order.
8
+ # 2. `rubocop-performance` second. Since 1.27 (with RuboCop 1.89) it
9
+ # registers its cops lazily; requiring it here (the gemspec pins the
10
+ # exact version) still makes the replacement order independent of
11
+ # `.rubocop.yml` require order.
14
12
  # 3. Wrapper cop classes last. Defining each class auto-enlists it
15
- # (`RuboCop::Cop::Base.inherited`) and replaces the stock cop under
16
- # the same badge.
13
+ # (`RuboCop::Cop::Base.inherited`); `Shirobai::Inject.activate!` at the
14
+ # bottom then claims the badges — it loads every replaced stock
15
+ # counterpart first (consuming its lazy registration, so it can never
16
+ # be enlisted again later) and re-enlists the wrappers, which
17
+ # `Registry#clear_enrollment_queue`'s last-write-wins hands the badge.
17
18
  #
18
19
  # Requiring rubocop-performance here does NOT merge its config/default.yml
19
20
  # into RuboCop's default configuration — that is the plugin system's job.
@@ -43,9 +44,10 @@ Shirobai::Dispatch.register_plugin_packer(:performance) do |config|
43
44
  [[1, end_with[0], start_with[0]], [[detect[0]]]]
44
45
  end
45
46
 
46
- # Re-run the autocorrect-incompatibility alignment now that this gem's stock
47
- # department and wrappers are enlisted: the core run happened before they
48
- # existed, so lists like `Rails/SafeNavigation -> Style::RedundantSelf` or
47
+ # Claim the badges and re-run the autocorrect-incompatibility alignment now
48
+ # that this gem's stock department and wrappers are loaded: the core run
49
+ # happened before they existed, so lists like
50
+ # `Rails/SafeNavigation -> Style::RedundantSelf` or
49
51
  # `RSpec/AlignLeftLetBrace -> Layout::ExtraSpacing` still name dismissed
50
52
  # stock classes until this call (see Shirobai::Inject).
51
- Shirobai::Inject.align_autocorrect_incompatibilities!
53
+ Shirobai::Inject.activate!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shirobai-performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 2026.0713.1900
4
+ version: 2026.0820.0300
5
5
  platform: ruby
6
6
  authors:
7
7
  - fusagiko / takayamaki
@@ -15,28 +15,28 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 2026.0713.1900
18
+ version: 2026.0820.0300
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 2026.0713.1900
25
+ version: 2026.0820.0300
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rubocop-performance
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - '='
31
31
  - !ruby/object:Gem::Version
32
- version: 1.26.1
32
+ version: 1.27.0
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 1.26.1
39
+ version: 1.27.0
40
40
  executables: []
41
41
  extensions: []
42
42
  extra_rdoc_files: []