a-nti_manner_kick_course 0.1.0 → 0.1.2
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/README.md +3 -1
- data/lib/a/nti_manner_kick_course/version.rb +1 -1
- data/lib/a/nti_manner_kick_course.rb +3 -3
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfb8543c773a2fbd4fcda38f7474bfcb2f22529871ddefae8ba27b05ecb3c698
|
4
|
+
data.tar.gz: 862a04da71a7e1fd6fcf7d430050296c11b8bea1fc442206cf89cec7ea51ebe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15b1750140075df7bdd839695ab8db3abd49f3688c63c495cfa2e70ee22e30fd455bc2af312efd924872fa87e58a79cdf6991841c52611b8cfb358eef8bd94d
|
7
|
+
data.tar.gz: 8aedee9707e2670ad977d5583303d98ed6f6e7ff86656c18c3296bba42de09ac1e8a921eec82a8a5839ac246690d9b46f89d52649536e1e0e6a58b2da751cd79
|
data/README.md
CHANGED
@@ -112,10 +112,12 @@ If any code fails to lazy loading, the process will exit with status code 1. Thi
|
|
112
112
|
|
113
113
|
You can fix the issue by wrapping the relevant code in an `ActiveSupport.on_load` block.
|
114
114
|
|
115
|
-
For more details about ActiveSupport.on_load, check [the official Rails documentation](
|
115
|
+
For more details about ActiveSupport.on_load, check [the official Rails documentation](https://api.rubyonrails.org/classes/ActiveSupport/LazyLoadHooks.html).
|
116
116
|
|
117
117
|
If the ANTI_MANNER environment variable is not set, this gem does nothing.
|
118
118
|
|
119
|
+
> [!CAUTION]
|
120
|
+
> If you are using Spring, this gem will not work correctly. In that case, add DISABLE_SPRING=1 to your command before running it.
|
119
121
|
|
120
122
|
## License
|
121
123
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -33,7 +33,7 @@ module A
|
|
33
33
|
A::NtiMannerKickCourse.already_checked
|
34
34
|
message = if A::NtiMannerKickCourse.debug?
|
35
35
|
<<~"MESSAGE"
|
36
|
-
During Rails startup, the block inside ActiveSupport.on_load(
|
36
|
+
During Rails startup, the block inside ActiveSupport.on_load(:#{framework}) was executed.
|
37
37
|
There is code that is not being deferred as expected.
|
38
38
|
|
39
39
|
Currently, debug mode is enabled, so the full stack trace is being displayed.
|
@@ -44,7 +44,7 @@ module A
|
|
44
44
|
else
|
45
45
|
suspect = caller.find { |c| !A::NtiMannerKickCourse.filtering.match?(c) }
|
46
46
|
<<~"MESSAGE"
|
47
|
-
During Rails startup, the block inside ActiveSupport.on_load(
|
47
|
+
During Rails startup, the block inside ActiveSupport.on_load(:#{framework}) was executed.
|
48
48
|
There is code that is not being deferred as expected. The suspicious part is here.
|
49
49
|
|
50
50
|
#{suspect}
|
@@ -69,7 +69,7 @@ module A
|
|
69
69
|
|
70
70
|
# TODO: We need to make this list more comprehensive.
|
71
71
|
def filtering
|
72
|
-
%r{<internal:|/bundled_gems.rb|/(activesupport|actionpack|activerecord|bootsnap|bundler|zeitwerk)-[0-9a-z
|
72
|
+
%r{<internal:|/bundled_gems.rb|/(a-nti_manner_kick_course|activesupport|actionpack|activerecord|bootsnap|bundler|zeitwerk)-([0-9\.]+|[0-9a-z]{12})/}
|
73
73
|
end
|
74
74
|
|
75
75
|
def already_checked?
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a-nti_manner_kick_course
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shinichi Maeshima
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-30 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rails
|
@@ -46,7 +45,6 @@ metadata:
|
|
46
45
|
homepage_uri: https://github.com/willnet/a-nti_manner_kick_course
|
47
46
|
source_code_uri: https://github.com/willnet/a-nti_manner_kick_course
|
48
47
|
changelog_uri: https://github.com/willnet/a-nti_manner_kick_course/releases
|
49
|
-
post_install_message:
|
50
48
|
rdoc_options: []
|
51
49
|
require_paths:
|
52
50
|
- lib
|
@@ -61,8 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
59
|
- !ruby/object:Gem::Version
|
62
60
|
version: '0'
|
63
61
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
65
|
-
signing_key:
|
62
|
+
rubygems_version: 3.6.2
|
66
63
|
specification_version: 4
|
67
64
|
summary: This library detects code or gems that violate lazy loading conventions during
|
68
65
|
Rails initialization.
|