switchman 1.2.5 → 1.2.7

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
  SHA1:
3
- metadata.gz: 9d1efc9779e77e64b0dc951eec46107a6789fb9f
4
- data.tar.gz: ee992e0b09d29bf24fcd70e12bc9c3fa400d6e8a
3
+ metadata.gz: 80227d17c7587ce99df75ee7d181e2ff40cdbeb0
4
+ data.tar.gz: ac327051b373ac44f3a8e01bbfeec23891405bc8
5
5
  SHA512:
6
- metadata.gz: 602d6f1bf4f3efec30d51e5a678a1a3afa61c0af62a65b01d1acee27e96117a8960f0a98bbff0074f17a9349f2dc4481150d5bd74a46a189151261956d80574a
7
- data.tar.gz: 90530d6fef463f8d187f84934f62065393f03132e36b185952f4282bbcc60b19749fa2b8149357d90454e531ca9c7f5f392f06a0081268063e0a3a45276baf99
6
+ metadata.gz: 08f9fb72a1518b792bf7ebbad331b2191a1ed72e41d72850bb17a182dc1690fc31bbc78c8cb98ea2f52308e9ce20b3e13ece5b0bdbf8e727511de482c9fcfc4e
7
+ data.tar.gz: d2d7610a4f11918adcd79c1ab232f76fa01c212c4d9bd86962b039a60bf5f84797907fb3f08814105fd9c8130930d0aadc2c83f1ca541960bc5f1226a876fc75
@@ -134,7 +134,7 @@ module Switchman
134
134
  initializer 'switchman.eager_load' do
135
135
  ::ActiveSupport.on_load(:before_eager_load) do
136
136
  # This needs to be loaded before Switchman::Shard, otherwise it won't autoload it correctly
137
- require_dependency('active_record/base')
137
+ require 'active_record/base'
138
138
  end
139
139
  end
140
140
 
@@ -155,17 +155,9 @@ module Switchman
155
155
  end
156
156
 
157
157
  initializer 'switchman.set_reloader_hooks', :before => "active_record.set_reloader_hooks" do |app|
158
- hook = lambda do
159
- require_dependency 'switchman/default_shard'
160
- end
161
-
162
- if app.config.reload_classes_only_on_change
163
- ::ActiveSupport.on_load(:active_record) do
164
- ActionDispatch::Reloader.to_prepare(&hook)
165
- end
166
- else
167
- ::ActiveSupport.on_load(:active_record) do
168
- ActionDispatch::Reloader.to_cleanup(&hook)
158
+ ::ActiveSupport.on_load(:active_record) do
159
+ ActionDispatch::Reloader.to_prepare do
160
+ require_dependency 'switchman/default_shard'
169
161
  end
170
162
  end
171
163
  end
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.2.5"
2
+ VERSION = "1.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-06-27 00:00:00.000000000 Z
13
+ date: 2014-07-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties