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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3b0c9c08812e36f2dffac848245c0bcc15d7dc7
4
- data.tar.gz: 402843532853000850b53950016066539773c629
3
+ metadata.gz: 1a846eea37c0ff4100e7d31590cf05e621192ae2
4
+ data.tar.gz: b02058a9fc69299ec9306796df202d64e1c6f4d7
5
5
  SHA512:
6
- metadata.gz: a5c72abe5df437b209a58f190decd3b06c23e9d47d31d099344dc12bd4b0925e2ea304402fb11e89bb034dfab3d15e21d896e8c08f5818c12f8bfed9f4da49da
7
- data.tar.gz: 4967910fdab2b5042cca028ca56b4cc6435ccb71a32b8566914cf4b85885dbcd0ee02c33e6b3e83028d636fe16e149327058ba8768bcd2c5c7f4d61e60146289
6
+ metadata.gz: ff311cba47a47387cab50b61b6f62f3f01428828e0c1a446040e752fdebc9e3494317413e52d7058805d162fbeccc5c4c6c7d5b2fbd2d632efaf8720266a72e4
7
+ data.tar.gz: 9f6b6d1a4c639ded371d22afeee967896a0917644cf4e42cc321c39e6ac071ffd0b1dc0b958d0a0db6311f81e00818d1fe7e9a1dafbc7bc5f350ed614edd4a4c
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ Gemfile.lock
3
3
  tmp/
4
4
  gemfiles/*.lock
5
5
  stdout
6
+ gemfiles/vendor
@@ -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
@@ -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
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "i18n"
6
+ gem "activesupport", "~> 3"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "i18n"
6
+ gem "activesupport", "~> 4"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "i18n"
6
+ gem "activesupport", "~> 5.0.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "i18n"
6
+ gem "activesupport", "~> 5.1.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "i18n"
6
+ gem "activesupport", "~> 5.2.0"
7
+
8
+ gemspec path: "../"
@@ -8,8 +8,9 @@ module ActiveSupport
8
8
  ERRORS_TO_RESCUE = [
9
9
  Errno::ECONNREFUSED,
10
10
  Errno::EHOSTUNREACH,
11
- Redis::CannotConnectError,
12
- Redis::ConnectionError
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
- if entry
267
- entry.is_a?(ActiveSupport::Cache::Entry) ? entry : ActiveSupport::Cache::Entry.new(entry)
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
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module ActiveSupport
3
- VERSION = '5.0.5'
3
+ VERSION = '5.0.7'
4
4
  end
5
5
  end
@@ -29,4 +29,5 @@ Gem::Specification.new do |s|
29
29
  s.add_development_dependency 'minitest', '>= 4.2', '< 6'
30
30
  s.add_development_dependency 'connection_pool', '~> 2.2.0'
31
31
  s.add_development_dependency 'redis-store-testing'
32
+ s.add_development_dependency 'appraisal', '~> 2.0'
32
33
  end
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.5
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-06-14 00:00:00.000000000 Z
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/Gemfile.activesupport-3.x
159
- - gemfiles/Gemfile.activesupport-4.x
160
- - gemfiles/Gemfile.activesupport-5.x
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