hirefire-resource 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/hirefire/macro/deprecated/delayed_job.rb +2 -2
- data/lib/hirefire/version.rb +1 -1
- data/lib/hirefire/worker.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c981cc399cbd8abdb5a0416b0f05286621aef47c03db25fb646607f553976f6
|
4
|
+
data.tar.gz: '08047393729ab2f071e4d08cd49e5ca92e6cdeae1ed5875da52df996b6b7b358'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92e00b6fdc3d51f7a2f363b83b77e6c9da56f2d535e163f2e40fc6c0260bcfaadfea060f0ef3e03e4e19809698d1d898382625cb3f42dc30dd0ad00949b3943b
|
7
|
+
data.tar.gz: 3d9780fda27839409e76c48b66143fad5149d5e77217737c2a90004dfb3dea8018b24aad24e00be15030e73d8791c7e8b9126b85b4586e0f9b5242a3922b0923
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## v1.0.5
|
2
|
+
|
3
|
+
* Increase process name length constraint from 30 to 63.
|
4
|
+
* Add tests for `solid_queue ~> 1`.
|
5
|
+
* Drop tests for `ruby ~> 2.7`.
|
6
|
+
|
1
7
|
## v1.0.4
|
2
8
|
|
3
9
|
* Add support for `good_job ~> 4`, for the `job_queue_size`, `job_queue_latency` and `queue` (deprecated) macros.
|
@@ -37,13 +37,13 @@ module HireFire
|
|
37
37
|
query = query.where(priority: options[:min_priority]..) if options.key?(:min_priority)
|
38
38
|
query = query.where(priority: ..options[:max_priority]) if options.key?(:max_priority)
|
39
39
|
query = query.where(queue: queues) unless queues.empty?
|
40
|
-
query.count
|
40
|
+
query.count
|
41
41
|
when :active_record_2
|
42
42
|
# Note: There is no queue column in delayed_job <= 2.x
|
43
43
|
query = ::Delayed::Job.scoped(conditions: ["run_at <= ? AND failed_at is NULL", Time.now.utc])
|
44
44
|
query = query.scoped(conditions: ["priority >= ?", options[:min_priority]]) if options.key?(:min_priority)
|
45
45
|
query = query.scoped(conditions: ["priority <= ?", options[:max_priority]]) if options.key?(:max_priority)
|
46
|
-
query.count
|
46
|
+
query.count
|
47
47
|
when :mongoid
|
48
48
|
query = ::Delayed::Job.where(:failed_at => nil, :run_at.lte => Time.now.utc)
|
49
49
|
query = query.where(:priority.gte => options[:min_priority]) if options.key?(:min_priority)
|
data/lib/hirefire/version.rb
CHANGED
data/lib/hirefire/worker.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hirefire-resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
|
-
rubygems_version: 3.5.
|
90
|
+
rubygems_version: 3.5.22
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: HireFire integration library for Ruby applications
|