redis-rack-cache 1.2 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/lib/rack/cache/redis_entitystore.rb +1 -1
- data/lib/redis-rack-cache/version.rb +1 -1
- data/redis-rack-cache.gemspec +2 -2
- data/test/rack/cache/entitystore/redis_test.rb +3 -0
- data/test/rack/cache/metastore/redis_test.rb +3 -0
- data/test/redis-rack-cache/version_test.rb +2 -2
- metadata +125 -78
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -14,9 +14,9 @@ MacOS X users should use [Homebrew](https://github.com/mxcl/homebrew) to install
|
|
14
14
|
|
15
15
|
Download and install Redis from [http://redis.io](http://redis.io/)
|
16
16
|
|
17
|
-
wget http://redis.googlecode.com/files/redis-2.4.
|
18
|
-
tar -zxf redis-2.4.
|
19
|
-
mv redis-2.4.
|
17
|
+
wget http://redis.googlecode.com/files/redis-2.4.15.tar.gz
|
18
|
+
tar -zxf redis-2.4.15.tar.gz
|
19
|
+
mv redis-2.4.15 redis
|
20
20
|
cd redis
|
21
21
|
make
|
22
22
|
|
@@ -44,7 +44,7 @@ For advanced configuration options, please check the [Redis Store Wiki](https://
|
|
44
44
|
|
45
45
|
git clone git://github.com/jodosha/redis-store.git
|
46
46
|
cd redis-store/redis-rack-cache
|
47
|
-
gem install bundler
|
47
|
+
gem install bundler
|
48
48
|
bundle exec rake
|
49
49
|
|
50
50
|
If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle exec rake`
|
data/redis-rack-cache.gemspec
CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_dependency 'redis-store', '~> 1.1.0'
|
22
22
|
s.add_dependency 'rack-cache', '~> 1.2'
|
23
23
|
|
24
|
-
s.add_development_dependency 'rake', '~> 0.9.2
|
25
|
-
s.add_development_dependency 'bundler', '~> 1.1
|
24
|
+
s.add_development_dependency 'rake', '~> 0.9.2'
|
25
|
+
s.add_development_dependency 'bundler', '~> 1.1'
|
26
26
|
s.add_development_dependency 'mocha', '~> 0.10.0'
|
27
27
|
s.add_development_dependency 'minitest', '~> 2.8.0'
|
28
28
|
s.add_development_dependency 'purdytest', '~> 1.0.0'
|
@@ -29,6 +29,9 @@ describe Rack::Cache::EntityStore::Redis do
|
|
29
29
|
cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://:secret@127.0.0.1")).cache
|
30
30
|
cache.id.must_equal("redis://127.0.0.1:6379/0")
|
31
31
|
cache.client.password.must_equal('secret')
|
32
|
+
|
33
|
+
cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1:6380/0/entitystore")).cache
|
34
|
+
cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6380 against DB 0 with namespace entitystore")
|
32
35
|
end
|
33
36
|
|
34
37
|
it 'responds to all required messages' do
|
@@ -35,6 +35,9 @@ describe Rack::Cache::MetaStore::Redis do
|
|
35
35
|
cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://:secret@127.0.0.1")).cache
|
36
36
|
cache.id.must_equal("redis://127.0.0.1:6379/0")
|
37
37
|
cache.client.password.must_equal('secret')
|
38
|
+
|
39
|
+
cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1:6380/0/metastore")).cache
|
40
|
+
cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6380 against DB 0 with namespace metastore")
|
38
41
|
end
|
39
42
|
|
40
43
|
# Low-level implementation methods ===========================================
|
metadata
CHANGED
@@ -1,101 +1,143 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-rack-cache
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Luca Guidi
|
9
14
|
- Matt Horan
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
+
|
19
|
+
date: 2012-08-09 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
type: :runtime
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
25
|
none: false
|
19
|
-
requirements:
|
26
|
+
requirements:
|
20
27
|
- - ~>
|
21
|
-
- !ruby/object:Gem::Version
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 19
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 1
|
33
|
+
- 0
|
22
34
|
version: 1.1.0
|
23
|
-
|
35
|
+
name: redis-store
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
24
38
|
prerelease: false
|
25
|
-
|
26
|
-
|
27
|
-
name: rack-cache
|
28
|
-
requirement: &70101085829360 !ruby/object:Gem::Requirement
|
39
|
+
type: :runtime
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
41
|
none: false
|
30
|
-
requirements:
|
42
|
+
requirements:
|
31
43
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 11
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 2
|
49
|
+
version: "1.2"
|
50
|
+
name: rack-cache
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
35
53
|
prerelease: false
|
36
|
-
|
37
|
-
|
38
|
-
name: rake
|
39
|
-
requirement: &70101085828660 !ruby/object:Gem::Requirement
|
54
|
+
type: :development
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
56
|
none: false
|
41
|
-
requirements:
|
57
|
+
requirements:
|
42
58
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 63
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
- 9
|
64
|
+
- 2
|
65
|
+
version: 0.9.2
|
66
|
+
name: rake
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
46
69
|
prerelease: false
|
47
|
-
|
48
|
-
|
49
|
-
name: bundler
|
50
|
-
requirement: &70101085827960 !ruby/object:Gem::Requirement
|
70
|
+
type: :development
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
72
|
none: false
|
52
|
-
requirements:
|
73
|
+
requirements:
|
53
74
|
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
56
|
-
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 13
|
77
|
+
segments:
|
78
|
+
- 1
|
79
|
+
- 1
|
80
|
+
version: "1.1"
|
81
|
+
name: bundler
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
57
84
|
prerelease: false
|
58
|
-
|
59
|
-
|
60
|
-
name: mocha
|
61
|
-
requirement: &70101085827240 !ruby/object:Gem::Requirement
|
85
|
+
type: :development
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
87
|
none: false
|
63
|
-
requirements:
|
88
|
+
requirements:
|
64
89
|
- - ~>
|
65
|
-
- !ruby/object:Gem::Version
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 55
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
- 10
|
95
|
+
- 0
|
66
96
|
version: 0.10.0
|
67
|
-
|
97
|
+
name: mocha
|
98
|
+
version_requirements: *id005
|
99
|
+
- !ruby/object:Gem::Dependency
|
68
100
|
prerelease: false
|
69
|
-
|
70
|
-
|
71
|
-
name: minitest
|
72
|
-
requirement: &70101085826760 !ruby/object:Gem::Requirement
|
101
|
+
type: :development
|
102
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
103
|
none: false
|
74
|
-
requirements:
|
104
|
+
requirements:
|
75
105
|
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 47
|
108
|
+
segments:
|
109
|
+
- 2
|
110
|
+
- 8
|
111
|
+
- 0
|
77
112
|
version: 2.8.0
|
78
|
-
|
113
|
+
name: minitest
|
114
|
+
version_requirements: *id006
|
115
|
+
- !ruby/object:Gem::Dependency
|
79
116
|
prerelease: false
|
80
|
-
|
81
|
-
|
82
|
-
name: purdytest
|
83
|
-
requirement: &70101085826300 !ruby/object:Gem::Requirement
|
117
|
+
type: :development
|
118
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
84
119
|
none: false
|
85
|
-
requirements:
|
120
|
+
requirements:
|
86
121
|
- - ~>
|
87
|
-
- !ruby/object:Gem::Version
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
hash: 23
|
124
|
+
segments:
|
125
|
+
- 1
|
126
|
+
- 0
|
127
|
+
- 0
|
88
128
|
version: 1.0.0
|
89
|
-
|
90
|
-
|
91
|
-
version_requirements: *70101085826300
|
129
|
+
name: purdytest
|
130
|
+
version_requirements: *id007
|
92
131
|
description: Redis for Rack::Cache
|
93
|
-
email:
|
132
|
+
email:
|
94
133
|
- me@lucaguidi.com
|
95
134
|
executables: []
|
135
|
+
|
96
136
|
extensions: []
|
137
|
+
|
97
138
|
extra_rdoc_files: []
|
98
|
-
|
139
|
+
|
140
|
+
files:
|
99
141
|
- .gitignore
|
100
142
|
- Gemfile
|
101
143
|
- MIT-LICENSE
|
@@ -113,31 +155,36 @@ files:
|
|
113
155
|
- test/test_helper.rb
|
114
156
|
homepage: http://jodosha.github.com/redis-store
|
115
157
|
licenses: []
|
158
|
+
|
116
159
|
post_install_message:
|
117
160
|
rdoc_options: []
|
118
|
-
|
161
|
+
|
162
|
+
require_paths:
|
119
163
|
- lib
|
120
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
165
|
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
|
126
|
-
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
hash: 3
|
170
|
+
segments:
|
171
|
+
- 0
|
172
|
+
version: "0"
|
173
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
174
|
none: false
|
128
|
-
requirements:
|
129
|
-
- -
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
hash: 3
|
179
|
+
segments:
|
180
|
+
- 0
|
181
|
+
version: "0"
|
132
182
|
requirements: []
|
183
|
+
|
133
184
|
rubyforge_project: redis-rack-cache
|
134
185
|
rubygems_version: 1.8.15
|
135
186
|
signing_key:
|
136
187
|
specification_version: 3
|
137
188
|
summary: Redis for Rack::Cache
|
138
|
-
test_files:
|
139
|
-
|
140
|
-
- test/rack/cache/entitystore/redis_test.rb
|
141
|
-
- test/rack/cache/metastore/redis_test.rb
|
142
|
-
- test/redis-rack-cache/version_test.rb
|
143
|
-
- test/test_helper.rb
|
189
|
+
test_files: []
|
190
|
+
|