resque 1.8.4 → 1.8.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of resque might be problematic. Click here for more details.
- data/lib/resque.rb +4 -7
- data/lib/resque/version.rb +1 -1
- metadata +3 -3
data/lib/resque.rb
CHANGED
@@ -29,18 +29,15 @@ module Resque
|
|
29
29
|
# 3. An instance of `Redis`, `Redis::Client`, `Redis::DistRedis`,
|
30
30
|
# or `Redis::Namespace`.
|
31
31
|
def redis=(server)
|
32
|
-
|
33
|
-
when String
|
32
|
+
if server.respond_to? :split
|
34
33
|
host, port, db = server.split(':')
|
35
34
|
redis = Redis.new(:host => host, :port => port,
|
36
35
|
:thread_safe => true, :db => db)
|
37
36
|
@redis = Redis::Namespace.new(:resque, :redis => redis)
|
38
|
-
|
39
|
-
|
40
|
-
when Redis::Namespace
|
41
|
-
@redis = server
|
37
|
+
elsif server.respond_to? :namespace=
|
38
|
+
@redis = server
|
42
39
|
else
|
43
|
-
|
40
|
+
@redis = Redis::Namespace.new(:resque, :redis => server)
|
44
41
|
end
|
45
42
|
end
|
46
43
|
|
data/lib/resque/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
9
|
+
- 5
|
10
|
+
version: 1.8.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Wanstrath
|