aesop 1.1.0.1 → 1.1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTIwZWNjYjljOWYyYzBlYWViYTYyZWNiNmYxMWFhNDNiNzViOTI0YQ==
4
+ NThiNjQ2MWUyN2RlZWU4OGVhMmRhMDU3MmY5OTc5MDBkMzgyODNjOQ==
5
5
  data.tar.gz: !binary |-
6
- M2I2Y2Y5NWM1MDlmYjU0ODBhNzQ5Mzk2MmE3YTgwNjM0YWNjNzQwNA==
6
+ MDU5MGI5Yzc2OGEyZjEzYzM2ZjhhMTdlNGI0MGI3NzE2YjA0NjdlNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmI1MzIxMjRkNjMxMjFjNWM1ZThhYWRkZGJmNTY0ZTM5MTJlNmU5Yjc0YzUz
10
- MTVhOTIyODcwMDcyNTVkNjc1NTMxZGI2ODhkYWU3ZmQ1MWM0YTM5ZGE0NmVi
11
- NjcwM2JjMDIyNGQyNWM5ODQwN2RiMWZlYWVlZDI3OGQzNjAyNjQ=
9
+ ZGI4MWIzYWExZDdlNTdkOGE0ZDcxM2Q0MjQ5MTExY2Q5ZTFlYTMxMGIzOWUz
10
+ ZTQ1ZDVkMTQ5MGRmMWNhZDFjZWUwN2M5ZDIwODIyZmY1MjAwNmE4ZThjZjZh
11
+ ZDc5ZDcyZDliMzY1OGZkNmUxY2ZhNDE1YjMyY2FmYjBhODc5ZTQ=
12
12
  data.tar.gz: !binary |-
13
- MTkzZDJlNDJjNmRhNGQ1MTBiZjBmMTNlNDM5NzU4YzE0NTkwMmZhNTNhMTBj
14
- NzIzYzg0MTE3ZTUxYzNlZmU1NjgxNzg1OTBmOWVjOTE4YTNhNWZmNzBjYzdj
15
- MDlkNjVlYzY3Y2JmNTI5MTViNjg0MDcxMzlmMGEzOTU4YmFkMTA=
13
+ NDg3NTRkMGY1YjE5OTE5ZmY4ZmUxMTg1NmM5ZWY5Nzk4NTEyYzc4Zjc5YzQw
14
+ YzFlNmFmYWE5NGVkMjMzYjc4ODM3MTY3NDQ2ODg5YmNkMTFkYmVkMGNkN2U0
15
+ YWZhYjA2YzNlNDBlODE2YWM0ZDFmZDY2MTYwNmYzMzY5NzRlYjY=
@@ -122,7 +122,7 @@ class Aesop::Aesop
122
122
  end
123
123
 
124
124
  def redis
125
- if @redis.nil? || !@redis.connected?
125
+ if @redis.nil? || (@redis.client && !@redis.client.connected?)
126
126
  begin
127
127
  @redis = Redis.new(redis_options)
128
128
  @redis.select( configuration.redis.database )
@@ -3,7 +3,7 @@ module Aesop
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
5
  PATCH = 0
6
- BUILD = 1
6
+ BUILD = 2
7
7
  end
8
8
 
9
9
  VERSION = [Version::MAJOR, Version::MINOR, Version::PATCH, Version::BUILD].compact.join('.')
@@ -81,7 +81,7 @@ describe Aesop::Aesop do
81
81
  end
82
82
 
83
83
  it 'reconnectes when not connected to redis anymore' do
84
- subject.redis.stub(:connected?).and_return(false)
84
+ subject.redis.client.stub(:connected?).and_return(false)
85
85
  expect(Redis).to receive(:new).and_call_original
86
86
  subject.redis
87
87
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aesop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.1
4
+ version: 1.1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.W. Koelewijn