pools 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/redis/pooled.rb +5 -1
  3. metadata +1 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae62a54973d24d74b569f5f8b9f3a5affa38bb302dc866618d1f662f0520705f
4
- data.tar.gz: 6f086c672eaf44b059be9ef3ecb94edbd78b8612f8d98bd745242e626ff3bdd7
3
+ metadata.gz: 34f31d2ae9607c1157db230bcb465c9f8a53c471c7308fd7e8c37a4f218fb13c
4
+ data.tar.gz: 9c1727c836239fca1a527f8b292cad8ad14ddfd0a5befac773392b3b80b3c741
5
5
  SHA512:
6
- metadata.gz: 276d6e6c33998dfe312010116f17a84296e84192e53b63a673334d1c23a175f0bf1a4b4e3233be3bb53ff1677ca7ede3d8032e83b883e8f2c0efd6e9adb655cd
7
- data.tar.gz: d1357f7383545bff1233298d371d9a55e7670587a837910d02e0dab8d8348ec8ee3da95f6687e9fff88be394247add308521be0a8eb8b057c788b58235108901
6
+ metadata.gz: dae2b78c89af30a3447a76cc89c6f3d7f60f9a3ea24d53789f30cbf2b97447f18f2d5878085ad5411210d97a80dba0679852285acd93c1ce79720fc7ddd3f704
7
+ data.tar.gz: 3a0ce250ef1ec98c0169361d701cfb7442359d645de8cd3647c8be5ba13927cae6d0435ae1ff54ed221d6a9f14596d767c807abb8216b7177aaf52740af8bd9a
@@ -11,7 +11,11 @@ class Redis
11
11
  end
12
12
 
13
13
  def __connection
14
- Redis.connect(@redis_options)
14
+ if Redis.respond_to?(:connect) # 3.x and earlier
15
+ Redis.connect(@redis_options)
16
+ else
17
+ Redis.new(@redis_options)
18
+ end
15
19
  end
16
20
 
17
21
  def __disconnect(client)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Rykov
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5.3'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.0.0
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '5.3'
33
27
  description: 'Generalized connection pooling
34
28
 
35
29
  '