chanko 2.1.1 → 2.2.0

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: b45f4690865779cd5fd5ab7c4b232ab1d26563db08d2ed1716a959e6a6cd941b
4
- data.tar.gz: 99aace603128bd51a3010032963fe8ccf17ea72e2e1c8797c6895b1fd9c16443
3
+ metadata.gz: dd0d4fc859f9ec500c831edd710cfbcc587b6cc7577b0bebe427e92e954609d6
4
+ data.tar.gz: fd65d01e82c60cd769ecadff13957a59a1b994bfe08bbe959aa1985d5fefcb6d
5
5
  SHA512:
6
- metadata.gz: e31691d407261e152a27fa1d6db9a8e6e50782dea977391323effab14f5aac32de0c0b96643d39cab94d920ba3dbd252d0a2aab0b31479da71e41a925c7a5419
7
- data.tar.gz: 756c73468ccf9831c7312ebc05feba84f7363abadd261e36b8e8e1d9fd117ace9c37c9251be4178df202f3d00a391655fa871af496fa722bd4c0886e0c3c87ef
6
+ metadata.gz: 603a7e536446a313a9200c07b4d55275524dc5737919e51e9fa1ea6f64897b7807fe5395f515d7087f7a26cd7003a6e1f4890b02b8df8ba70ade256dc13f5314
7
+ data.tar.gz: 1f7180cabfc7f7454828a567882ad80b983f8a8e7f1a7071772e4d33bacad7915f4e490b6ad47ec37581245af6de343430e17334f636eb352506fb72055bafa1
data/.travis.yml CHANGED
@@ -1,9 +1,7 @@
1
1
  rvm:
2
- - 2.1
3
- - 2.2
4
- - 2.3
5
- - 2.4
6
- - 2.5
2
+ - 2.6
3
+ - 2.7
4
+ - 3.0
7
5
  branches:
8
6
  only:
9
7
  - master
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.2.0
2
+ * Drop support for old Ruby versions.
3
+ * Support Rails 5.1.
4
+
1
5
  ## 2.1.1
2
6
  * Delete circular symlink in gem package
3
7
  * No changes in library code
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/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.1"
2
+ VERSION = "2.2.0"
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.1
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: 2019-01-10 00:00:00.000000000 Z
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.1.0
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
- rubyforge_project:
305
- rubygems_version: 3.0.0.beta1
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: