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 +4 -4
- data/lib/shirobai/performance/version.rb +1 -1
- data/lib/shirobai-performance.rb +14 -12
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: febde5c2e1d97433e4d69a03261286ac5b082b1a3f816ae2f7338ad50ca0f298
|
|
4
|
+
data.tar.gz: 9fa7ae802207353f817c8e00712a910431c116f594eea4c9e02a7bc618102616
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6d10991984578c1bf54acfacaaf122e2b9961afbadf65ab57ba838da5b876bd4b35626b146a4efc505703777a0bbc13391fb4f7c854fe697fcb12e87c87f134
|
|
7
|
+
data.tar.gz: c2708f6affce1dea82d7028e56d977dd5b0c71929c72ec231f54a95da7520f562935ab26b08fb84058c32d239bd2bd0494f6d048ae518f509520ea0e8e8f4a3e
|
data/lib/shirobai-performance.rb
CHANGED
|
@@ -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.
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
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`)
|
|
16
|
-
# the
|
|
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
|
-
#
|
|
47
|
-
# department and wrappers are
|
|
48
|
-
# existed, so lists like
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
39
|
+
version: 1.27.0
|
|
40
40
|
executables: []
|
|
41
41
|
extensions: []
|
|
42
42
|
extra_rdoc_files: []
|