resque-integration 3.5.0 → 3.5.1

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: b25c3af3ff9bec74ef1a6c8355f622a8d8ed916a
4
- data.tar.gz: fcebf66e66aeb96194e051ddf3381efb4b828ed1
3
+ metadata.gz: e62432e7f9261fd9fb81ee4d5e92a6ea5f943c0e
4
+ data.tar.gz: 8afc080e74ec136b0fe8bcc4d981e16738cf7422
5
5
  SHA512:
6
- metadata.gz: 151ccd775abb8e8df97149a90cdbe679a87367c6fb4a91b05116b45000f9d6eb83bfc773331c05ed87bfdc7a2eabf80c705c27d889f59c5aaa9408ed8dcb0659
7
- data.tar.gz: 0c1a6450232a75c71d18168622b5db0b9069e15ca58befd2f67624e22a705965838887308ad75a198240ec9ff2114e43d69fba479734dac447ef206f1300f4da
6
+ metadata.gz: f82ef7f730abf7720a1f58f08f275afbfe15cc9a6eb2ae00425bc25581b4e6a5e7095c818ba9f8585be5364bd887620f6ae1cdc4d5e66dbb39d6a6b7187be94c
7
+ data.tar.gz: 978439e799b2d95d12b01f14111fc974c314f9e0c5f9112936d301fa66c877629f7ecd275f04358aec4910f61fd970f9f06df0c50040c9409cd5244a576d2af2
@@ -1,5 +1,7 @@
1
- # v3.5.0
1
+ # v3.5.1
2
2
 
3
+ * 2018-12-21 [c2b890d](../../commit/c2b890d) - __(Andrew N. Shalaev)__ Release v3.5.1
4
+ * 2018-12-21 [d7478c2](../../commit/d7478c2) - __(Andrew N. Shalaev)__ fix: add support for redis >= v4
3
5
  * 2018-09-06 [49717a5](../../commit/49717a5) - __(Mikhail Nelaev)__ Release 3.5.0
4
6
  * 2018-08-21 [b56dcc8](../../commit/b56dcc8) - __(Artem Napolskih)__ chore: Add automatic publication
5
7
  * 2018-08-15 [5e90b55](../../commit/5e90b55) - __(Artem Napolskih)__ feat: rails 5-x support added
@@ -26,7 +26,12 @@ namespace :resque do
26
26
  end
27
27
 
28
28
  Resque.before_fork do
29
- Resque.redis.client.disconnect
29
+ client = if Gem::Version.new(::Redis::VERSION) < Gem::Version.new('4')
30
+ Resque.redis.client
31
+ else
32
+ Resque.redis._client
33
+ end
34
+ client.disconnect
30
35
 
31
36
  ActiveRecord::Base.connection_handler.clear_all_connections!
32
37
  end
@@ -36,7 +41,12 @@ namespace :resque do
36
41
 
37
42
  ActiveRecord::Base.establish_connection
38
43
 
39
- Resque.redis.client.connect
44
+ client = if Gem::Version.new(::Redis::VERSION) < Gem::Version.new('4')
45
+ Resque.redis.client
46
+ else
47
+ Resque.redis._client
48
+ end
49
+ client.connect
40
50
  end
41
51
 
42
52
  # Support for resque-multi-job-forks
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Integration
3
- VERSION = '3.5.0'.freeze
3
+ VERSION = '3.5.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexei Mikhailov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-06 00:00:00.000000000 Z
12
+ date: 2018-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque