chanko 2.1.1 → 2.2.0
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/.travis.yml +3 -5
- data/CHANGELOG.md +4 -0
- data/chanko.gemspec +1 -1
- data/lib/chanko/loader.rb +4 -2
- data/lib/chanko/railtie.rb +6 -0
- data/lib/chanko/test.rb +2 -1
- data/lib/chanko/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd0d4fc859f9ec500c831edd710cfbcc587b6cc7577b0bebe427e92e954609d6
|
|
4
|
+
data.tar.gz: fd65d01e82c60cd769ecadff13957a59a1b994bfe08bbe959aa1985d5fefcb6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 603a7e536446a313a9200c07b4d55275524dc5737919e51e9fa1ea6f64897b7807fe5395f515d7087f7a26cd7003a6e1f4890b02b8df8ba70ade256dc13f5314
|
|
7
|
+
data.tar.gz: 1f7180cabfc7f7454828a567882ad80b983f8a8e7f1a7071772e4d33bacad7915f4e490b6ad47ec37581245af6de343430e17334f636eb352506fb72055bafa1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/chanko.gemspec
CHANGED
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
|
15
15
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
16
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
17
17
|
gem.require_paths = ["lib"]
|
|
18
|
-
gem.required_ruby_version = '>= 2.
|
|
18
|
+
gem.required_ruby_version = '>= 2.6.0'
|
|
19
19
|
|
|
20
20
|
gem.add_dependency "rails", ">= 4.0.0"
|
|
21
21
|
gem.add_development_dependency "coffee-rails", ">= 3.0.10"
|
data/lib/chanko/loader.rb
CHANGED
|
@@ -48,8 +48,10 @@ module Chanko
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def add_autoload_path
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
unless Rails.respond_to?(:autoloaders) && Rails.autoloaders.zeitwerk_enabled?
|
|
52
|
+
ActiveSupport::Dependencies.autoload_paths << autoload_path
|
|
53
|
+
ActiveSupport::Dependencies.autoload_paths.uniq!
|
|
54
|
+
end
|
|
53
55
|
end
|
|
54
56
|
|
|
55
57
|
def autoload_path
|
data/lib/chanko/railtie.rb
CHANGED
|
@@ -14,6 +14,12 @@ module Chanko
|
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
initializer("chanko.support_zeitwerk") do |app|
|
|
18
|
+
if Rails.respond_to?(:autoloaders) && Rails.autoloaders.zeitwerk_enabled?
|
|
19
|
+
Rails.autoloaders.main.collapse(Rails.root.join(Chanko::Config.units_directory_path, '*'))
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
17
23
|
initializer("chanko.prevent_units_directory_from_eager_loading", before: :set_autoload_paths) do |app|
|
|
18
24
|
if Chanko::Config.eager_load
|
|
19
25
|
Rails.configuration.eager_load_paths.delete(Rails.root.join(Chanko::Config.units_directory_path).to_s)
|
data/lib/chanko/test.rb
CHANGED
data/lib/chanko/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chanko
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MORITA shingo
|
|
8
8
|
- Ryo Nakamura
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2021-08-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -286,7 +286,7 @@ files:
|
|
|
286
286
|
homepage: https://github.com/cookpad/chanko
|
|
287
287
|
licenses: []
|
|
288
288
|
metadata: {}
|
|
289
|
-
post_install_message:
|
|
289
|
+
post_install_message:
|
|
290
290
|
rdoc_options: []
|
|
291
291
|
require_paths:
|
|
292
292
|
- lib
|
|
@@ -294,16 +294,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
294
294
|
requirements:
|
|
295
295
|
- - ">="
|
|
296
296
|
- !ruby/object:Gem::Version
|
|
297
|
-
version: 2.
|
|
297
|
+
version: 2.6.0
|
|
298
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
299
|
requirements:
|
|
300
300
|
- - ">="
|
|
301
301
|
- !ruby/object:Gem::Version
|
|
302
302
|
version: '0'
|
|
303
303
|
requirements: []
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
signing_key:
|
|
304
|
+
rubygems_version: 3.1.4
|
|
305
|
+
signing_key:
|
|
307
306
|
specification_version: 4
|
|
308
307
|
summary: Rails extension tool
|
|
309
308
|
test_files:
|