resque-integration 3.8.0 → 3.8.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: d37c0511fee9c3f766f352cb18ef36c4980cc869
4
- data.tar.gz: d8dd5259944ac4ed274530171bda477551bb9f09
3
+ metadata.gz: 2ac9ed45b21f644959195484f775e830a703084f
4
+ data.tar.gz: 900b0b025f6b87e4d3c25cf759e6634d04d36bd8
5
5
  SHA512:
6
- metadata.gz: '09ee9d7d3640eb5138138bc941064adcb19cb0ef817d90048613c2cb9c1bb01546ea428b6f10f5ab13b0a874b6289a7ae1ecaead8b36a8fd443c4cba16decf77'
7
- data.tar.gz: 5bdbe905a197ac686192ca05b192a3e64808a0c676498366b3c18ca7cd8ec4a638d0576aab0f7c77ab7eeb0f72a54698d83d46bf2c68e3324fa23410235d5600
6
+ metadata.gz: a9288b8eb705f78e474b3c6e01d7fe088edf3dba71ef2e18e01a325bdb1d7341273c729604fcfd4aaec80cc0511595649bb129b88bf5b35889c733c4d75eabbf
7
+ data.tar.gz: aee5cdca42bd456e7be7b251e41cd3ab62dbf05224170826cd84566610f5475a3946c2d51f8b8a8bd780042641c5734a5e701baefb1bd73f89824a150ad536af
data/Appraisals CHANGED
@@ -1,7 +1,15 @@
1
1
  if RUBY_VERSION < '2.4'
2
+ appraise 'rails3.2' do
3
+ gem 'rails', '~> 3.2.0'
4
+ end
5
+
2
6
  appraise 'rails4.0' do
3
7
  gem 'rails', '~> 4.0.13'
4
8
  end
9
+
10
+ appraise 'rails4.1' do
11
+ gem 'rails', '~> 4.1.16'
12
+ end
5
13
  end
6
14
 
7
15
  appraise 'rails4.2' do
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- # v3.8.0
1
+ # v3.8.1
2
+
3
+ * 2021-08-20 [1b6b16a](../../commit/1b6b16a) - __(Andrew N. Shalaev)__ Release v3.8.1
4
+ * 2021-08-20 [557a16f](../../commit/557a16f) - __(Andrew N. Shalaev)__ Revert "fix: use Redis#exists? for get boolean value"
5
+ This reverts commit 03eab1866908ead61ad044e4f36fb5b943817d46.
2
6
 
3
7
  * 2021-08-19 [27ad006](../../commit/27ad006) - __(Andrew N. Shalaev)__ Release v3.8.0
4
8
  * 2021-08-19 [03eab18](../../commit/03eab18) - __(Andrew N. Shalaev)__ fix: use Redis#exists? for get boolean value
@@ -35,7 +35,7 @@ module Resque::Integration
35
35
  initializer 'resque-integration.redis' do
36
36
  redis = Resque.config.redis
37
37
 
38
- if redis.present?
38
+ if redis.any?
39
39
  Resque.redis = Redis.new(redis)
40
40
  Resque.redis.namespace = redis[:namespace] if redis[:namespace]
41
41
  end
@@ -165,12 +165,8 @@ module Resque
165
165
  end
166
166
 
167
167
  # Returns true if resque job is in locked state
168
- #
169
- # Returns Boolean
170
168
  def locked?(*args)
171
- redis = ::Resque.redis
172
-
173
- redis.respond_to?(:exists?) ? redis.exists?(lock_id(*args)) : redis.exists(lock_id(*args))
169
+ ::Resque.redis.exists(lock_id(*args))
174
170
  end
175
171
 
176
172
  # Dequeue unique job
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Integration
3
- VERSION = '3.8.0'.freeze
3
+ VERSION = '3.8.1'.freeze
4
4
  end
5
5
  end
@@ -28,8 +28,6 @@ Gem::Specification.new do |gem|
28
28
  gem.add_runtime_dependency 'multi_json'
29
29
  gem.add_runtime_dependency 'rake'
30
30
 
31
- gem.add_runtime_dependency 'redis'
32
-
33
31
  gem.add_development_dependency 'bundler'
34
32
  gem.add_development_dependency 'rspec', '~> 2.14'
35
33
  gem.add_development_dependency 'rspec-its'
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.8.0
4
+ version: 3.8.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: 2021-08-19 00:00:00.000000000 Z
12
+ date: 2021-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
@@ -165,20 +165,6 @@ dependencies:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
- - !ruby/object:Gem::Dependency
169
- name: redis
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: '0'
175
- type: :runtime
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
168
  - !ruby/object:Gem::Dependency
183
169
  name: bundler
184
170
  requirement: !ruby/object:Gem::Requirement