redis-activesupport 5.0.5 → 5.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +7 -4
- data/Appraisals +19 -0
- data/gemfiles/activesupport_3.gemfile +8 -0
- data/gemfiles/activesupport_4.gemfile +8 -0
- data/gemfiles/activesupport_50.gemfile +8 -0
- data/gemfiles/activesupport_51.gemfile +8 -0
- data/gemfiles/activesupport_52.gemfile +8 -0
- data/lib/active_support/cache/redis_store.rb +5 -5
- data/lib/redis/active_support/version.rb +1 -1
- data/redis-activesupport.gemspec +1 -0
- metadata +22 -5
- data/gemfiles/Gemfile.activesupport-3.x +0 -13
- data/gemfiles/Gemfile.activesupport-4.x +0 -13
- data/gemfiles/Gemfile.activesupport-5.x +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a846eea37c0ff4100e7d31590cf05e621192ae2
|
4
|
+
data.tar.gz: b02058a9fc69299ec9306796df202d64e1c6f4d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff311cba47a47387cab50b61b6f62f3f01428828e0c1a446040e752fdebc9e3494317413e52d7058805d162fbeccc5c4c6c7d5b2fbd2d632efaf8720266a72e4
|
7
|
+
data.tar.gz: 9f6b6d1a4c639ded371d22afeee967896a0917644cf4e42cc321c39e6ac071ffd0b1dc0b958d0a0db6311f81e00818d1fe7e9a1dafbc7bc5f350ed614edd4a4c
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
language: ruby
|
2
2
|
script: 'bundle exec rake'
|
3
|
-
gemfile:
|
4
|
-
- gemfiles/Gemfile.activesupport-3.x
|
5
|
-
- gemfiles/Gemfile.activesupport-4.x
|
6
|
-
- gemfiles/Gemfile.activesupport-5.x
|
7
3
|
rvm:
|
8
4
|
- 2.0
|
9
5
|
- 2.1
|
@@ -25,3 +21,10 @@ matrix:
|
|
25
21
|
notifications:
|
26
22
|
webhooks: https://www.travisbuddy.com/
|
27
23
|
on_success: never
|
24
|
+
# Put this in your .travis.yml
|
25
|
+
gemfile:
|
26
|
+
- gemfiles/activesupport_3.gemfile
|
27
|
+
- gemfiles/activesupport_4.gemfile
|
28
|
+
- gemfiles/activesupport_50.gemfile
|
29
|
+
- gemfiles/activesupport_51.gemfile
|
30
|
+
- gemfiles/activesupport_52.gemfile
|
data/Appraisals
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
appraise 'activesupport_3' do
|
2
|
+
gem 'activesupport', '~> 3'
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise 'activesupport_4' do
|
6
|
+
gem 'activesupport', '~> 4'
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise 'activesupport_50' do
|
10
|
+
gem 'activesupport', '~> 5.0.0'
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise 'activesupport_51' do
|
14
|
+
gem 'activesupport', '~> 5.1.0'
|
15
|
+
end
|
16
|
+
|
17
|
+
appraise 'activesupport_52' do
|
18
|
+
gem 'activesupport', '~> 5.2.0'
|
19
|
+
end
|
@@ -8,8 +8,9 @@ module ActiveSupport
|
|
8
8
|
ERRORS_TO_RESCUE = [
|
9
9
|
Errno::ECONNREFUSED,
|
10
10
|
Errno::EHOSTUNREACH,
|
11
|
-
|
12
|
-
|
11
|
+
# This is what rails' redis cache store rescues
|
12
|
+
# https://github.com/rails/rails/blob/5-2-stable/activesupport/lib/active_support/cache/redis_cache_store.rb#L447
|
13
|
+
Redis::BaseConnectionError
|
13
14
|
].freeze
|
14
15
|
|
15
16
|
attr_reader :data
|
@@ -263,9 +264,8 @@ module ActiveSupport
|
|
263
264
|
|
264
265
|
def read_entry(key, options)
|
265
266
|
entry = with { |c| c.get key, options }
|
266
|
-
|
267
|
-
|
268
|
-
end
|
267
|
+
return unless entry
|
268
|
+
entry.is_a?(Entry) ? entry : Entry.new(entry)
|
269
269
|
rescue *ERRORS_TO_RESCUE
|
270
270
|
raise if raise_errors?
|
271
271
|
nil
|
data/redis-activesupport.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis-store
|
@@ -141,6 +141,20 @@ dependencies:
|
|
141
141
|
- - ">="
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
name: appraisal
|
146
|
+
requirement: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "~>"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '2.0'
|
151
|
+
type: :development
|
152
|
+
prerelease: false
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - "~>"
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '2.0'
|
144
158
|
description: Redis store for ActiveSupport
|
145
159
|
email:
|
146
160
|
- me@lucaguidi.com
|
@@ -151,13 +165,16 @@ extra_rdoc_files: []
|
|
151
165
|
files:
|
152
166
|
- ".gitignore"
|
153
167
|
- ".travis.yml"
|
168
|
+
- Appraisals
|
154
169
|
- Gemfile
|
155
170
|
- MIT-LICENSE
|
156
171
|
- README.md
|
157
172
|
- Rakefile
|
158
|
-
- gemfiles/
|
159
|
-
- gemfiles/
|
160
|
-
- gemfiles/
|
173
|
+
- gemfiles/activesupport_3.gemfile
|
174
|
+
- gemfiles/activesupport_4.gemfile
|
175
|
+
- gemfiles/activesupport_50.gemfile
|
176
|
+
- gemfiles/activesupport_51.gemfile
|
177
|
+
- gemfiles/activesupport_52.gemfile
|
161
178
|
- lib/active_support/cache/redis_store.rb
|
162
179
|
- lib/redis-activesupport.rb
|
163
180
|
- lib/redis/active_support/version.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
|
3
|
-
gem 'redis-store', '~> 1.1.0'
|
4
|
-
gem 'activesupport', '~> 3'
|
5
|
-
|
6
|
-
group :development do
|
7
|
-
gem 'rake', '~> 10'
|
8
|
-
gem 'bundler', '~> 1.3'
|
9
|
-
gem 'mocha', '~> 0.14.0'
|
10
|
-
gem 'minitest', '~> 4.2'
|
11
|
-
gem 'connection_pool', '~> 1.2.0'
|
12
|
-
gem 'redis-store-testing'
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
|
3
|
-
gem 'redis-store', '~> 1.1.0'
|
4
|
-
gem 'activesupport', '~> 4'
|
5
|
-
|
6
|
-
group :development do
|
7
|
-
gem 'rake', '~> 10'
|
8
|
-
gem 'bundler', '~> 1.3'
|
9
|
-
gem 'mocha', '~> 0.14.0'
|
10
|
-
gem 'minitest', '~> 4.2'
|
11
|
-
gem 'connection_pool', '~> 1.2.0'
|
12
|
-
gem 'redis-store-testing'
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
|
3
|
-
gem 'redis-store', '~> 1.1.0'
|
4
|
-
gem 'activesupport', '>= 5.0.0.beta1', '< 5.1'
|
5
|
-
|
6
|
-
group :development do
|
7
|
-
gem 'rake', '~> 10'
|
8
|
-
gem 'bundler', '~> 1.3'
|
9
|
-
gem 'mocha', '~> 0.14.0'
|
10
|
-
gem 'minitest', '~> 5.1'
|
11
|
-
gem 'connection_pool', '~> 1.2.0'
|
12
|
-
gem 'redis-store-testing'
|
13
|
-
end
|