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.

Files changed (3) hide show
  1. data/lib/resque.rb +4 -7
  2. data/lib/resque/version.rb +1 -1
  3. metadata +3 -3
@@ -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
- case server
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
- when Redis, Redis::Client, Redis::DistRedis
39
- @redis = Redis::Namespace.new(:resque, :redis => server)
40
- when Redis::Namespace
41
- @redis = server
37
+ elsif server.respond_to? :namespace=
38
+ @redis = server
42
39
  else
43
- raise "I don't know what to do with #{server.inspect}"
40
+ @redis = Redis::Namespace.new(:resque, :redis => server)
44
41
  end
45
42
  end
46
43
 
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = '1.8.4'
2
+ Version = '1.8.5'
3
3
  end
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: 63
4
+ hash: 61
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 8
9
- - 4
10
- version: 1.8.4
9
+ - 5
10
+ version: 1.8.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Wanstrath