redis-rack 2.1.3 → 2.1.4

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
  SHA256:
3
- metadata.gz: 5f2e06d541ce7ff62d7050dc3191e5b975209c558de584ad5f9a5d09d3e837c8
4
- data.tar.gz: fe1d5072ca29a096a1e2ee2ea14c6b7cbf1282326c929a499bf90a0e30be51e6
3
+ metadata.gz: e8fe2b21455a3af95982db86314846abed8b97be35712009a6c720b1fe8a0e3f
4
+ data.tar.gz: 99c15862e3d1e7c1d16d460da299fcc0dc551a606ce9731710f153f51f3b6196
5
5
  SHA512:
6
- metadata.gz: c01e59a29fe6c2d589f7650de251facffbf49915bc91cda3bbf9b1cbabd6b03b574e1d509aea580af214e5aa5d9a395bbc8f6e74359768cc22548de403e47621
7
- data.tar.gz: f997ed68a47b214def068eb0ef0d8788af496523da9347dda26022df640dd6375d24a6407d3d6a9f72713c8b2811e28048dc2daf2b0ef493b1ff9e6bcde86235
6
+ metadata.gz: ef8ef0c5c0286d5df01ee90df055e19ef90969f11b0568a681e64f1955558837584504c5a1b62c8cfc5e7b6fead33cdfa39741f8048ecf787457cb85c7910e6d
7
+ data.tar.gz: e3f5a9642b8f50e9da6cc05f9387d7acca8245bd702e8f795690b383b6fe253ec037ab930e68a282c37e32f139956e00e6a9a5137dae5957cb03e332cfe057a4
data/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
+
2
3
  gemspec
3
- gem 'redis-store-testing', github: 'redis-store/testing'
4
4
 
5
- gem "appraisal", "~> 2.2"
5
+ gem 'redis-store-testing', github: 'redis-store/testing'
6
+ gem 'appraisal', '~> 2.2'
@@ -1,6 +1,8 @@
1
1
  class Redis
2
2
  module Rack
3
3
  class Connection
4
+ POOL_KEYS = %i[pool pool_size pool_timeout].freeze
5
+
4
6
  def initialize(options = {})
5
7
  @options = options
6
8
  @store = options[:redis_store]
@@ -24,7 +26,9 @@ class Redis
24
26
  end
25
27
 
26
28
  def pooled?
27
- [:pool, :pool_size, :pool_timeout].any? { |key| @options.key?(key) }
29
+ return @pooled if defined?(@pooled)
30
+
31
+ @pooled = POOL_KEYS.any? { |key| @options.key?(key) }
28
32
  end
29
33
 
30
34
  def pool
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module Rack
3
- VERSION = '2.1.3'
3
+ VERSION = '2.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-11 00:00:00.000000000 Z
11
+ date: 2022-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-store