a-nti_manner_kick_course 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4dc6a3d6c4947ef0ed61f061101a08fbce40cb114e6a8e27f10445d3c3d77ba9
4
- data.tar.gz: ad23ea7057ba5e40f4a4830c363aab4b73c18678292e83dd06894c049c803da1
3
+ metadata.gz: bfb8543c773a2fbd4fcda38f7474bfcb2f22529871ddefae8ba27b05ecb3c698
4
+ data.tar.gz: 862a04da71a7e1fd6fcf7d430050296c11b8bea1fc442206cf89cec7ea51ebe6
5
5
  SHA512:
6
- metadata.gz: 5e43b59506830ae8320db2ea37c5a87d28967f43399982492196b14bc4fc10b51aa23058875c04b269769a9d96048071ef2d6d79d86c43904234256d12e8662b
7
- data.tar.gz: aa4d12b64c793bf21480abd45364f54ad2d2c881846cd4493ca23d2617f35f84844a8109b8d78d95980c3d5746025bedeba7493dc0c2e0df0b47134e098dc02d
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]((https://api.rubyonrails.org/classes/ActiveSupport/LazyLoadHooks.html).
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).
@@ -1,5 +1,5 @@
1
1
  module A
2
2
  module NtiMannerKickCourse
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -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(#{framework}) was executed.
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(#{framework}) was executed.
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.0
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-16 00:00:00.000000000 Z
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.5.22
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.