chanko 2.1.0 → 2.2.1

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
- SHA1:
3
- metadata.gz: 331332f35e77547816ea87fa17c5c24b1ab79d1a
4
- data.tar.gz: 18f69a1c9bb5378ebc67d008b2a16c674cdb5ad1
2
+ SHA256:
3
+ metadata.gz: 12298afeff1eced18d28a06531c8a34469c97da44a93f988a6caa7835fca337b
4
+ data.tar.gz: 3eb396ab691ec4d7c84fa58bdb23d43c017f6ca1eb2da29902ee2ed9adc5e542
5
5
  SHA512:
6
- metadata.gz: b43dafa1cf2506a457488cb29a509bc0f40e1dce94f27c00616889084d3886e0fe2d411abaf580e6bc24e44296321908989c1eb1d731cf58b8c5d9d299ee9f15
7
- data.tar.gz: 7340a278f25287ff31366c599c4866b1aee3d5e01447e2b19e4f963d965dbc0a152face464bfe24d4319e8cfbbf26e03aa62770217a5ecb1689ccec9087fae60
6
+ metadata.gz: ddd983d0d75d909378694f3d752d8f2b07fc8166c018de5ba1667f7309e94da09d98fdf186f746c96fc74bd1f45180b017341f999d6cb717ef18bb97269dff06
7
+ data.tar.gz: b92cac319cbb13c2c381c40159a784550fec5714e9b83ea867cc59605e70929c601c247d8f003d39b2f58935caeafb9d96d3e8e65b82784e1cd13abf1c22c93e
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  rvm:
2
- - 2.1
3
- - 2.2
2
+ - 2.6
3
+ - 2.7
4
+ - 3.0
4
5
  branches:
5
6
  only:
6
7
  - master
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## Unreleased
2
+
3
+ ## 2.2.1
4
+ * Support Rails 7.0.
5
+
6
+ ## 2.2.0
7
+ * Drop support for old Ruby versions.
8
+ * Support Rails 5.1.
9
+
10
+ ## 2.1.1
11
+ * Delete circular symlink in gem package
12
+ * No changes in library code
13
+
1
14
  ## 2.1.0
2
15
  * Support Rails 5.
3
16
  * Drop support of ruby 1.9.x and 2.0.0.
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.1.0'
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/config.rb CHANGED
@@ -24,7 +24,7 @@ module Chanko
24
24
  self.propagated_errors = []
25
25
  self.proxy_method_name = :unit
26
26
  self.raise_error = Rails.env.development?
27
- self.resolver = ActionView::OptimizedFileSystemResolver
27
+ self.resolver = Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new('7') ? ActionView::FileSystemResolver : ActionView::OptimizedFileSystemResolver
28
28
  self.units_directory_path = "app/units"
29
29
  end
30
30
  end
data/lib/chanko/loader.rb CHANGED
@@ -48,8 +48,10 @@ module Chanko
48
48
  end
49
49
 
50
50
  def add_autoload_path
51
- ActiveSupport::Dependencies.autoload_paths << autoload_path
52
- ActiveSupport::Dependencies.autoload_paths.uniq!
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
@@ -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
@@ -33,7 +33,8 @@ module Chanko
33
33
  active_without_activations?(*args)
34
34
  end
35
35
  end
36
- alias_method_chain :active?, :activations
36
+ alias_method :active_without_activations?, :active?
37
+ alias_method :active?, :active_with_activations?
37
38
  end
38
39
  end
39
40
  end
@@ -1,3 +1,3 @@
1
1
  module Chanko
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.1"
3
3
  end
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.1.0
4
+ version: 2.2.1
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: 2017-07-14 00:00:00.000000000 Z
12
+ date: 2022-05-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -276,7 +276,6 @@ files:
276
276
  - spec/dummy/public/500.html
277
277
  - spec/dummy/public/favicon.ico
278
278
  - spec/dummy/script/rails
279
- - spec/dummy/spec
280
279
  - spec/fixtures/units/example_unit/example_unit.rb
281
280
  - spec/fixtures/units/example_unit/views/_test.html.erb
282
281
  - spec/fixtures/units/inactive_unit/inactive_unit.rb
@@ -287,7 +286,7 @@ files:
287
286
  homepage: https://github.com/cookpad/chanko
288
287
  licenses: []
289
288
  metadata: {}
290
- post_install_message:
289
+ post_install_message:
291
290
  rdoc_options: []
292
291
  require_paths:
293
292
  - lib
@@ -295,16 +294,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
295
294
  requirements:
296
295
  - - ">="
297
296
  - !ruby/object:Gem::Version
298
- version: 2.1.0
297
+ version: 2.6.0
299
298
  required_rubygems_version: !ruby/object:Gem::Requirement
300
299
  requirements:
301
300
  - - ">="
302
301
  - !ruby/object:Gem::Version
303
302
  version: '0'
304
303
  requirements: []
305
- rubyforge_project:
306
- rubygems_version: 2.6.11
307
- signing_key:
304
+ rubygems_version: 3.3.7
305
+ signing_key:
308
306
  specification_version: 4
309
307
  summary: Rails extension tool
310
308
  test_files:
@@ -366,7 +364,6 @@ test_files:
366
364
  - spec/dummy/public/500.html
367
365
  - spec/dummy/public/favicon.ico
368
366
  - spec/dummy/script/rails
369
- - spec/dummy/spec
370
367
  - spec/fixtures/units/example_unit/example_unit.rb
371
368
  - spec/fixtures/units/example_unit/views/_test.html.erb
372
369
  - spec/fixtures/units/inactive_unit/inactive_unit.rb
data/spec/dummy/spec DELETED
@@ -1 +0,0 @@
1
- spec/dummy/../../spec