resque-integration 3.7.1 → 3.8.0

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: 412dbc6bf78abf735849d6df4910d260fa75be50
4
- data.tar.gz: 23b9cab284dee3fdb8ecec03d80a3553d7c0263b
3
+ metadata.gz: d37c0511fee9c3f766f352cb18ef36c4980cc869
4
+ data.tar.gz: d8dd5259944ac4ed274530171bda477551bb9f09
5
5
  SHA512:
6
- metadata.gz: bfd8b6370f0b85c13527ed1e52d96dea2a6def920c88721c0230f099b8298c994aa5b121cd5e7eacaa158759388930fac8f48131124526bbaeef82c0b83d4e0c
7
- data.tar.gz: bcf2010e8a02e6499cd0f7e200f54dcee6abec5f9775847071341a37eb60ef73221c0d64311d3d67719f5a361c73a52deb441bf7b2ab76817e1e283c896f7a3a
6
+ metadata.gz: '09ee9d7d3640eb5138138bc941064adcb19cb0ef817d90048613c2cb9c1bb01546ea428b6f10f5ab13b0a874b6289a7ae1ecaead8b36a8fd443c4cba16decf77'
7
+ data.tar.gz: 5bdbe905a197ac686192ca05b192a3e64808a0c676498366b3c18ca7cd8ec4a638d0576aab0f7c77ab7eeb0f72a54698d83d46bf2c68e3324fa23410235d5600
data/Appraisals CHANGED
@@ -1,15 +1,7 @@
1
1
  if RUBY_VERSION < '2.4'
2
- appraise 'rails3.2' do
3
- gem 'rails', '~> 3.2.0'
4
- end
5
-
6
2
  appraise 'rails4.0' do
7
3
  gem 'rails', '~> 4.0.13'
8
4
  end
9
-
10
- appraise 'rails4.1' do
11
- gem 'rails', '~> 4.1.16'
12
- end
13
5
  end
14
6
 
15
7
  appraise 'rails4.2' do
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
- # v3.7.1
1
+ # v3.8.0
2
2
 
3
+ * 2021-08-19 [27ad006](../../commit/27ad006) - __(Andrew N. Shalaev)__ Release v3.8.0
4
+ * 2021-08-19 [03eab18](../../commit/03eab18) - __(Andrew N. Shalaev)__ fix: use Redis#exists? for get boolean value
3
5
  * 2021-07-22 [0caf11c](../../commit/0caf11c) - __(TamarinEA)__ chore: fetch redis image and add rubygems volume
4
6
  * 2021-07-21 [7b94d0e](../../commit/7b94d0e) - __(TamarinEA)__ chore: release public gem
5
7
  * 2021-07-20 [c51d9ab](../../commit/c51d9ab) - __(TamarinEA)__ chore: lock mimemagic for ruby 2.2
@@ -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.any?
38
+ if redis.present?
39
39
  Resque.redis = Redis.new(redis)
40
40
  Resque.redis.namespace = redis[:namespace] if redis[:namespace]
41
41
  end
@@ -165,8 +165,12 @@ module Resque
165
165
  end
166
166
 
167
167
  # Returns true if resque job is in locked state
168
+ #
169
+ # Returns Boolean
168
170
  def locked?(*args)
169
- ::Resque.redis.exists(lock_id(*args))
171
+ redis = ::Resque.redis
172
+
173
+ redis.respond_to?(:exists?) ? redis.exists?(lock_id(*args)) : redis.exists(lock_id(*args))
170
174
  end
171
175
 
172
176
  # Dequeue unique job
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Integration
3
- VERSION = '3.7.1'.freeze
3
+ VERSION = '3.8.0'.freeze
4
4
  end
5
5
  end
@@ -28,6 +28,8 @@ 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
+
31
33
  gem.add_development_dependency 'bundler'
32
34
  gem.add_development_dependency 'rspec', '~> 2.14'
33
35
  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.7.1
4
+ version: 3.8.0
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-07-22 00:00:00.000000000 Z
12
+ date: 2021-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
@@ -165,6 +165,20 @@ 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'
168
182
  - !ruby/object:Gem::Dependency
169
183
  name: bundler
170
184
  requirement: !ruby/object:Gem::Requirement