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 +4 -4
- data/Changes.md +6 -0
- data/lib/sidekiq/cli.rb +13 -6
- data/lib/sidekiq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39626a2f12ce1c55fc3b6aec763a780fbbf3afe3
|
|
4
|
+
data.tar.gz: d4edda55a00c8ee2fa5f67a102b71b3ee24cac18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4ca3aea1d5c28672337e784d9f34531f8d495f210e6a3f6c6aef56a34a91546f4bc77e8d89fedf655514b18bafff9209a3e0cc959a533ebc3c696f78a46c132
|
|
7
|
+
data.tar.gz: b64813b493d5672027cdeeac9ff981d1aa6f2a2faab92a08b6e08a318205e1ec857c9abb500f8ce3a9b8908378988e10de147a8a43402f10071af5b0c528509b
|
data/Changes.md
CHANGED
data/lib/sidekiq/cli.rb
CHANGED
|
@@ -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
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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]
|
data/lib/sidekiq/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2014-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: redis
|