redis-kit 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 0.0.4 (May 17th, 2013)
2
+ ----------------------
3
+
4
+ * Add support for Resque 1.24.x. This change is fully backwards-compatible
5
+ with Resque 1.23.x and below.
6
+
1
7
  0.0.3 (March 8th, 2013)
2
8
  -----------------------
3
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redis-kit (0.0.2)
4
+ redis-kit (0.0.4)
5
5
  hiredis (~> 0.4.0)
6
6
  mock_redis (~> 0.6.0)
7
7
  redis (~> 3.0.0)
@@ -22,7 +22,7 @@ GEM
22
22
  listen (0.7.3)
23
23
  lumberjack (1.0.2)
24
24
  method_source (0.8.1)
25
- mock_redis (0.6.4)
25
+ mock_redis (0.6.6)
26
26
  pry (0.9.12)
27
27
  coderay (~> 1.0.5)
28
28
  method_source (~> 0.8)
@@ -34,7 +34,7 @@ GEM
34
34
  spoon (~> 0.0)
35
35
  rake (10.0.3)
36
36
  rb-fsevent (0.9.3)
37
- redis (3.0.3)
37
+ redis (3.0.4)
38
38
  slop (3.4.3)
39
39
  spoon (0.0.1)
40
40
  terminal-table (1.4.5)
data/README.md CHANGED
@@ -187,6 +187,8 @@ Set up and run tests with:
187
187
  TODO
188
188
  ====
189
189
 
190
+ * Add block support to RedisKit::Cache's cache_namespace: `cache_namespace {
191
+ |instance_or_class| ... }`
190
192
  * Add generators for common files
191
193
  * Resque initializer
192
194
  * Unicorn config (after fork hook)
@@ -5,15 +5,20 @@
5
5
 
6
6
  module RedisKit
7
7
  module Resque
8
+ # Don't clobber any existing hooks. Resque 1.24 changed the way hooks are
9
+ # stored, so we have to branch for that.
8
10
  def self.setup
9
- # Don't clobber any existing hooks.
10
- if existing_hook = ::Resque.after_fork
11
+ existing_hook = ::Resque.after_fork
12
+
13
+ if existing_hook == nil || existing_hook.is_a?(Array)
14
+ # resque >= 1.24 (or <= 1.23 with no existing hook)
11
15
  ::Resque.after_fork do |job|
12
- existing_hook.call( job )
13
16
  check_redis
14
17
  end
15
- else
18
+ elsif existing_hook.is_a?(Proc)
19
+ # resque <= 1.23
16
20
  ::Resque.after_fork do |job|
21
+ existing_hook.call( job )
17
22
  check_redis
18
23
  end
19
24
  end
@@ -1,4 +1,4 @@
1
1
  module RedisKit
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
4
4
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- redis-kit (0.0.1)
4
+ redis-kit (0.0.4)
5
5
  hiredis (~> 0.4.0)
6
6
  mock_redis (~> 0.6.0)
7
7
  redis (~> 3.0.0)
@@ -42,7 +42,6 @@ GEM
42
42
  erubis (2.7.0)
43
43
  hike (1.2.1)
44
44
  hiredis (0.4.5)
45
- hiredis (0.4.5-java)
46
45
  i18n (0.6.4)
47
46
  journey (1.0.4)
48
47
  json (1.7.7)
@@ -54,7 +53,7 @@ GEM
54
53
  method_source (0.8.1)
55
54
  mime-types (1.21)
56
55
  minitest (4.6.2)
57
- mock_redis (0.6.4)
56
+ mock_redis (0.6.6)
58
57
  multi_json (1.6.1)
59
58
  polyglot (0.3.3)
60
59
  pry (0.9.12)
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gem "rails", git: "git://github.com/rails/rails.git"
4
4
  gem "rails-api", "~> 0.0.3"
5
5
  gem "rake", "~> 0.9.0"
6
- gem "resque", "~> 1.23.0"
6
+ gem "resque", "~> 1.24.0"
7
7
 
8
8
  gem "redis-kit", path: "../../"
9
9
 
@@ -43,7 +43,7 @@ GIT
43
43
  PATH
44
44
  remote: ../../
45
45
  specs:
46
- redis-kit (0.0.1)
46
+ redis-kit (0.0.4)
47
47
  hiredis (~> 0.4.0)
48
48
  mock_redis (~> 0.6.0)
49
49
  redis (~> 3.0.0)
@@ -60,7 +60,6 @@ GEM
60
60
  erubis (2.7.0)
61
61
  hike (1.2.1)
62
62
  hiredis (0.4.5)
63
- hiredis (0.4.5-java)
64
63
  i18n (0.6.4)
65
64
  json (1.7.7)
66
65
  json (1.7.7-java)
@@ -71,8 +70,9 @@ GEM
71
70
  method_source (0.8.1)
72
71
  mime-types (1.21)
73
72
  minitest (4.6.2)
74
- mock_redis (0.6.4)
75
- multi_json (1.6.1)
73
+ mock_redis (0.6.6)
74
+ mono_logger (1.0.1)
75
+ multi_json (1.7.3)
76
76
  polyglot (0.3.3)
77
77
  pry (0.9.12)
78
78
  coderay (~> 1.0.5)
@@ -84,7 +84,7 @@ GEM
84
84
  slop (~> 3.4)
85
85
  spoon (~> 0.0)
86
86
  rack (1.5.2)
87
- rack-protection (1.4.0)
87
+ rack-protection (1.5.0)
88
88
  rack
89
89
  rack-test (0.6.2)
90
90
  rack (>= 1.0)
@@ -95,18 +95,19 @@ GEM
95
95
  rake (0.9.6)
96
96
  rdoc (3.12.2)
97
97
  json (~> 1.4)
98
- redis (3.0.3)
99
- redis-namespace (1.2.1)
98
+ redis (3.0.4)
99
+ redis-namespace (1.3.0)
100
100
  redis (~> 3.0.0)
101
- resque (1.23.0)
101
+ resque (1.24.1)
102
+ mono_logger (~> 1.0)
102
103
  multi_json (~> 1.0)
103
- redis-namespace (~> 1.0)
104
+ redis-namespace (~> 1.2)
104
105
  sinatra (>= 0.9.2)
105
106
  vegas (~> 0.1.2)
106
- sinatra (1.3.5)
107
- rack (~> 1.4)
108
- rack-protection (~> 1.3)
109
- tilt (~> 1.3, >= 1.3.3)
107
+ sinatra (1.4.2)
108
+ rack (~> 1.5, >= 1.5.2)
109
+ rack-protection (~> 1.4)
110
+ tilt (~> 1.3, >= 1.3.4)
110
111
  slop (3.4.3)
111
112
  spoon (0.0.1)
112
113
  sprockets (2.9.0)
@@ -121,7 +122,7 @@ GEM
121
122
  thor (0.17.0)
122
123
  thread_safe (0.1.0)
123
124
  atomic
124
- tilt (1.3.4)
125
+ tilt (1.4.1)
125
126
  treetop (1.4.12)
126
127
  polyglot
127
128
  polyglot (>= 0.3.1)
@@ -140,4 +141,4 @@ DEPENDENCIES
140
141
  rails-api (~> 0.0.3)
141
142
  rake (~> 0.9.0)
142
143
  redis-kit!
143
- resque (~> 1.23.0)
144
+ resque (~> 1.24.0)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
12
+ date: 2013-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis