chanko 2.0.3 → 2.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1acab1181dc91fbb5a3d3829b4df7b964936ad7a
4
- data.tar.gz: 1b27553b0df59cac5582f395ba6abdec83aa033b
3
+ metadata.gz: 0e0142b6872b65eae751db25c63dc9d52fe37d46
4
+ data.tar.gz: a84c70d70a9a14027c56c76d9215ee513b0bd93c
5
5
  SHA512:
6
- metadata.gz: 07552d80c80865ed6a7b7a4d028b03f3b0aefd4905fbcd09787b0324b8505b8c07d4001b2a99aacef4b90f188d74f5777d26d7c5d1e582aba95268fa6cac0d20
7
- data.tar.gz: c70e69290aa59126ac9e5d80295b9f2705188671c3377d10e02b30f90c249a95f8879c1335087621abb4f7f5e33296381fa999dc24253f92104c9e75a4617111
6
+ metadata.gz: 3cc42fbf6826ab15cc01493e4cca09ebf187628b933f80a85d20dd577f7a0ada5a701aa1f6a957cfb124893072741dce3f8b3d15fb56fd708910cc99396f5eec
7
+ data.tar.gz: 81d677c15b8b247606a93318f877c57e4ea793e216133ec3ae03b1a6966ebbbb8c019fff711077b9abac9efffef8375bb2d75a36c461b86922d7e64561f9e526
data/CHANGELOG.md CHANGED
@@ -1,2 +1,5 @@
1
+ ## 2.0.4
2
+ * Allow to change Chanko::Config.eager_load after loading chanko
3
+
1
4
  ## 2.0.3
2
5
  * Custom eager-loading support on production env
@@ -14,12 +14,14 @@ module Chanko
14
14
  end
15
15
  end
16
16
 
17
- if Chanko::Config.eager_load
18
- initializer("chanko.prevent_units_directory_from_eager_loading", before: :set_autoload_paths) do |app|
17
+ initializer("chanko.prevent_units_directory_from_eager_loading", before: :set_autoload_paths) do |app|
18
+ if Chanko::Config.eager_load
19
19
  Rails.configuration.eager_load_paths.delete(Rails.root.join(Chanko::Config.units_directory_path).to_s)
20
20
  end
21
+ end
21
22
 
22
- initializer("chanko.eager_load_units") do |app|
23
+ initializer("chanko.eager_load_units") do |app|
24
+ if Chanko::Config.eager_load
23
25
  Chanko::Loader.eager_load_units!
24
26
  end
25
27
  end
@@ -1,3 +1,3 @@
1
1
  module Chanko
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chanko
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-03 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails