sidekiq 3.2.0 → 3.2.1

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: fdef31a4d431682169e826c2f7e1817f4392ca5b
4
- data.tar.gz: 93a6c396de18207948950ee7d8e1a52a7c81b18f
3
+ metadata.gz: 39626a2f12ce1c55fc3b6aec763a780fbbf3afe3
4
+ data.tar.gz: d4edda55a00c8ee2fa5f67a102b71b3ee24cac18
5
5
  SHA512:
6
- metadata.gz: 681bee80c219bf1bdac44797c4353ae1bead8495cec2dc0f4055b150e751007e1805eda4aabcd83fe3b273df4d7f403d0b244b4f37b374895c9d42ed24cb6c5e
7
- data.tar.gz: c85781ce1ce3549d57640b50fe54c5ca0e5433122dfcb1793a8a31db5c06baa6dd10b31bebf2d355156c574b1481937cf68f826c30af6e13eba741d4161dd489
6
+ metadata.gz: f4ca3aea1d5c28672337e784d9f34531f8d495f210e6a3f6c6aef56a34a91546f4bc77e8d89fedf655514b18bafff9209a3e0cc959a533ebc3c696f78a46c132
7
+ data.tar.gz: b64813b493d5672027cdeeac9ff981d1aa6f2a2faab92a08b6e08a318205e1ec857c9abb500f8ce3a9b8908378988e10de147a8a43402f10071af5b0c528509b
data/Changes.md CHANGED
@@ -1,3 +1,9 @@
1
+ 3.2.1
2
+ -----------
3
+
4
+ - Revert eager loading change for Rails 3.x apps, as it broke a few edge
5
+ cases.
6
+
1
7
  3.2.0
2
8
  -----------
3
9
 
@@ -221,13 +221,20 @@ module Sidekiq
221
221
  raise ArgumentError, "#{options[:require]} does not exist" unless File.exist?(options[:require])
222
222
 
223
223
  if File.directory?(options[:require])
224
- # Painful contortions, see 1791 for discussion
225
- require File.expand_path("#{options[:require]}/config/application.rb")
226
- ::Rails::Application.initializer "sidekiq.eager_load" do
227
- ::Rails.application.config.eager_load = true
224
+ require 'rails'
225
+ if ::Rails::VERSION::MAJOR < 4
226
+ require 'sidekiq/rails'
227
+ require File.expand_path("#{options[:require]}/config/environment.rb")
228
+ ::Rails.application.eager_load!
229
+ else
230
+ # Painful contortions, see 1791 for discussion
231
+ require File.expand_path("#{options[:require]}/config/application.rb")
232
+ ::Rails::Application.initializer "sidekiq.eager_load" do
233
+ ::Rails.application.config.eager_load = true
234
+ end
235
+ require 'sidekiq/rails'
236
+ require File.expand_path("#{options[:require]}/config/environment.rb")
228
237
  end
229
- require 'sidekiq/rails'
230
- require File.expand_path("#{options[:require]}/config/environment.rb")
231
238
  options[:tag] ||= default_tag
232
239
  else
233
240
  require options[:require]
@@ -1,3 +1,3 @@
1
1
  module Sidekiq
2
- VERSION = "3.2.0"
2
+ VERSION = "3.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-03 00:00:00.000000000 Z
11
+ date: 2014-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis