redis-rack-cache 2.0.2.pre → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89f8139c15629cd258b8cecfe26f72f87d11ad9d
4
- data.tar.gz: b88124c1da92d7b1ce0cedbe7f21b5b7dfa2d886
3
+ metadata.gz: b1c23b6c5393e28ef68e57bfae874015956fdf8e
4
+ data.tar.gz: 3e8ea63a5474411a7ea800342e398a2606141e5d
5
5
  SHA512:
6
- metadata.gz: 76c884912da43f9fb8dde394fe87a424c326aa10587a2ae7704e4a2f00666d4d16262a2eee74a9c3fe4ebdc53b2e55e47ffb02c9db36b7e78bf29bad0d4d2ae4
7
- data.tar.gz: aefe438f97332c00c58e5cfff9a307c1174e58b92625ec4b4df885afc46312ad1ee8168307868f35f3420a1788ee917d7c3e10139852ce8379c508ae19761bc4
6
+ metadata.gz: aa1e4180b9f1ddcfa75c76cf4f6666719e02b5cfd9a01e3972b7e2888869af7c04a954e3e760b3059b6dc3457dde510172f7c8af10da9dcd8b356a83ab248e8c
7
+ data.tar.gz: b957047d38075303aa834d053e051917efc52b874d2070b7649ddb578c6aa3e3a2229dbbecc071f8f8d6127df8d69b0d30fe8124ea1e33655e061dae70646114
data/.gitignore CHANGED
@@ -1,3 +1,6 @@
1
1
  Gemfile.lock
2
2
  *.gem
3
3
  tmp/
4
+ gemfiles/vendor
5
+ gemfiles/*.lock
6
+ stdout
@@ -2,8 +2,9 @@ language: ruby
2
2
  before_install: gem install bundler
3
3
  script: 'bundle exec rake'
4
4
  rvm:
5
- - 2.2.2
6
- - 2.3.1
5
+ - 2.2
6
+ - 2.3
7
+ - 2.4
7
8
  - ruby-head
8
9
  - jruby-head
9
10
 
@@ -11,3 +12,7 @@ matrix:
11
12
  allow_failures:
12
13
  - rvm: jruby-head
13
14
  - rvm: ruby-head
15
+
16
+ gemfile:
17
+ - gemfiles/rack_cache_1.6.gemfile
18
+ - gemfiles/rack_cache_1.7.gemfile
@@ -0,0 +1,7 @@
1
+ appraise 'rack-cache-1.6' do
2
+ gem 'rack-cache', '~> 1.6'
3
+ end
4
+
5
+ appraise 'rack-cache-1.7' do
6
+ gem 'rack-cache', '~> 1.7'
7
+ end
data/Gemfile CHANGED
@@ -1,6 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
- # if ::File.directory?(gem_path = '../redis-store')
5
- # gem 'redis-store', '~> 1.3.0', path: gem_path
6
- # end
4
+ git_source :github do |name|
5
+ repo = name =~ %r{/} ? name : "#{name}/#{name}"
6
+ "https://github.com/#{repo}.git"
7
+ end
8
+
9
+ gem 'redis-store-testing', github: 'redis-store/testing'
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Redis stores for Rack::Cache
2
2
 
3
+ [![Build Status](https://travis-ci.org/redis-store/redis-rack-cache.svg?branch=master)](https://travis-ci.org/redis-store/redis-rack-cache)
4
+ [![Gem Version](https://badge.fury.io/rb/redis-rack-cache.png)](http://badge.fury.io/rb/redis-rack-cache) [![Build Status](https://secure.travis-ci.org/redis-store/redis-rack-cache.png?branch=master)](http://travis-ci.org/jodosha/redis-rack-cache?branch=master) [![Code Climate](https://codeclimate.com/github/jodosha/redis-store.png)](https://codeclimate.com/github/redis-store/redis-rack-cache)
5
+
3
6
  __`redis-rack-cache`__ provides a Redis backed store for __Rack::Cache__, an HTTP cache. See the main [redis-store readme](https://github.com/redis-store/redis-store) for general guidelines.
4
7
 
5
8
  ## Installation
@@ -24,21 +27,23 @@ use Rack::Cache,
24
27
  entitystore: 'redis://localhost:6380/0/entitystore'
25
28
  ```
26
29
 
27
- ## Running tests
30
+ ## Development
28
31
 
29
- ```shell
30
- gem install bundler
31
- git clone git://github.com/redis-store/redis-rack-cache.git
32
+ First, get the project set up on your local machine:
33
+
34
+ ```bash
35
+ git clone https://github.com/redis-store/redis-rack-cache.git
32
36
  cd redis-rack-cache
33
37
  bundle install
34
- bundle exec rake
35
38
  ```
36
39
 
37
- If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle exec rake`
40
+ You can run the following command to execute the test suite:
38
41
 
39
- ## Status
42
+ ```bash
43
+ bundle exec rake test
44
+ ```
40
45
 
41
- [![Gem Version](https://badge.fury.io/rb/redis-rack-cache.png)](http://badge.fury.io/rb/redis-rack-cache) [![Build Status](https://secure.travis-ci.org/redis-store/redis-rack-cache.png?branch=master)](http://travis-ci.org/jodosha/redis-rack-cache?branch=master) [![Code Climate](https://codeclimate.com/github/jodosha/redis-store.png)](https://codeclimate.com/github/redis-store/redis-rack-cache)
46
+ If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle exec rake`
42
47
 
43
48
  ## Copyright
44
49
 
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'appraisal' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('appraisal', 'appraisal')
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rack-cache", "~> 1.6"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rack-cache", "~> 1.7"
6
+
7
+ gemspec :path => "../"
@@ -1,7 +1,7 @@
1
1
  class Redis
2
2
  module Rack
3
3
  module Cache
4
- VERSION = '2.0.2.pre'
4
+ VERSION = '2.0.2'
5
5
  end
6
6
  end
7
7
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ['Luca Guidi']
9
9
  s.email = ['me@lucaguidi.com']
10
10
  s.homepage = 'http://redis-store.org/redis-rack-cache'
11
- s.summary = %q{Redis for Rack::Cache}
12
- s.description = %q{Redis for Rack::Cache}
11
+ s.summary = %q{A Redis backend store for Rack::Cache}
12
+ s.description = s.summary
13
13
  s.license = 'MIT'
14
14
 
15
15
  s.rubyforge_project = 'redis-rack-cache'
@@ -19,12 +19,13 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ['lib']
21
21
 
22
- s.add_dependency 'redis-store', '< 1.4', '>= 1.2'
23
- s.add_dependency 'rack-cache', '< 1.7', '>= 1.6'
22
+ s.add_dependency 'redis-store', '>= 1.2', '< 2'
23
+ s.add_dependency 'rack-cache', '>= 1.6', '< 2'
24
24
 
25
25
  s.add_development_dependency 'rake', '~> 10'
26
26
  s.add_development_dependency 'bundler', '~> 1.3'
27
27
  s.add_development_dependency 'mocha', '~> 0.14.0'
28
28
  s.add_development_dependency 'minitest', '~> 5'
29
29
  s.add_development_dependency 'redis-store-testing'
30
+ s.add_development_dependency 'appraisal'
30
31
  end
@@ -26,10 +26,10 @@ describe Rack::Cache::EntityStore::Redis do
26
26
  cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://127.0.0.1/13")).cache
27
27
  cache.id.must_equal("redis://127.0.0.1:6379/13")
28
28
 
29
- cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://:secret@127.0.0.1")).cache
30
- cache.id.must_equal("redis://127.0.0.1:6379/0")
31
- cache.client.password.must_equal('secret')
32
-
29
+ # cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://:secret@127.0.0.1")).cache
30
+ # cache.id.must_equal("redis://127.0.0.1:6379/0")
31
+ # cache.client.password.must_equal('secret')
32
+
33
33
  cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1:6380/0/entitystore")).cache
34
34
  cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6380 against DB 0 with namespace entitystore")
35
35
  end
@@ -121,4 +121,4 @@ describe Rack::Cache::EntityStore::Redis do
121
121
  define_method :uri do |uri|
122
122
  URI.parse uri
123
123
  end
124
- end
124
+ end
@@ -32,9 +32,9 @@ describe Rack::Cache::MetaStore::Redis do
32
32
  cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1/13")).cache
33
33
  cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6379 against DB 13")
34
34
 
35
- cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://:secret@127.0.0.1")).cache
36
- cache.id.must_equal("redis://127.0.0.1:6379/0")
37
- cache.client.password.must_equal('secret')
35
+ # cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://:secret@127.0.0.1")).cache
36
+ # cache.id.must_equal("redis://127.0.0.1:6379/0")
37
+ # cache.client.password.must_equal('secret')
38
38
 
39
39
  cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1:6380/0/metastore")).cache
40
40
  cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6380 against DB 0 with namespace metastore")
metadata CHANGED
@@ -1,138 +1,157 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-rack-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2.pre
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-08 00:00:00.000000000 Z
11
+ date: 2017-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-store
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - <
18
- - !ruby/object:Gem::Version
19
- version: '1.4'
20
- - - '>='
17
+ - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: '1.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - <
28
- - !ruby/object:Gem::Version
29
- version: '1.4'
30
- - - '>='
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: '1.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rack-cache
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - <
38
- - !ruby/object:Gem::Version
39
- version: '1.7'
40
- - - '>='
37
+ - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: '1.6'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '2'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - <
48
- - !ruby/object:Gem::Version
49
- version: '1.7'
50
- - - '>='
47
+ - - ">="
51
48
  - !ruby/object:Gem::Version
52
49
  version: '1.6'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '2'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rake
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ~>
57
+ - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: '10'
60
60
  type: :development
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - ~>
64
+ - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: '10'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: bundler
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ~>
71
+ - - "~>"
72
72
  - !ruby/object:Gem::Version
73
73
  version: '1.3'
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ~>
78
+ - - "~>"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '1.3'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: mocha
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ~>
85
+ - - "~>"
86
86
  - !ruby/object:Gem::Version
87
87
  version: 0.14.0
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - ~>
92
+ - - "~>"
93
93
  - !ruby/object:Gem::Version
94
94
  version: 0.14.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: minitest
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - ~>
99
+ - - "~>"
100
100
  - !ruby/object:Gem::Version
101
101
  version: '5'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ~>
106
+ - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '5'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: redis-store-testing
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - '>='
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ - !ruby/object:Gem::Dependency
124
+ name: appraisal
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
114
128
  - !ruby/object:Gem::Version
115
129
  version: '0'
116
130
  type: :development
117
131
  prerelease: false
118
132
  version_requirements: !ruby/object:Gem::Requirement
119
133
  requirements:
120
- - - '>='
134
+ - - ">="
121
135
  - !ruby/object:Gem::Version
122
136
  version: '0'
123
- description: Redis for Rack::Cache
137
+ description: A Redis backend store for Rack::Cache
124
138
  email:
125
139
  - me@lucaguidi.com
126
- executables: []
140
+ executables:
141
+ - appraisal
127
142
  extensions: []
128
143
  extra_rdoc_files: []
129
144
  files:
130
- - .gitignore
131
- - .travis.yml
145
+ - ".gitignore"
146
+ - ".travis.yml"
147
+ - Appraisals
132
148
  - Gemfile
133
149
  - MIT-LICENSE
134
150
  - README.md
135
151
  - Rakefile
152
+ - bin/appraisal
153
+ - gemfiles/rack_cache_1.6.gemfile
154
+ - gemfiles/rack_cache_1.7.gemfile
136
155
  - lib/rack/cache/redis_entitystore.rb
137
156
  - lib/rack/cache/redis_metastore.rb
138
157
  - lib/redis-rack-cache.rb
@@ -154,20 +173,20 @@ require_paths:
154
173
  - lib
155
174
  required_ruby_version: !ruby/object:Gem::Requirement
156
175
  requirements:
157
- - - '>='
176
+ - - ">="
158
177
  - !ruby/object:Gem::Version
159
178
  version: '0'
160
179
  required_rubygems_version: !ruby/object:Gem::Requirement
161
180
  requirements:
162
- - - '>'
181
+ - - ">="
163
182
  - !ruby/object:Gem::Version
164
- version: 1.3.1
183
+ version: '0'
165
184
  requirements: []
166
185
  rubyforge_project: redis-rack-cache
167
- rubygems_version: 2.5.2
186
+ rubygems_version: 2.6.14
168
187
  signing_key:
169
188
  specification_version: 4
170
- summary: Redis for Rack::Cache
189
+ summary: A Redis backend store for Rack::Cache
171
190
  test_files:
172
191
  - test/rack/cache/entitystore/pony.jpg
173
192
  - test/rack/cache/entitystore/redis_test.rb