activejob-dispatch_rider 2.3.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +5 -13
- data/README.md +2 -0
- data/activejob-dispatch_rider.gemspec +5 -5
- data/gemfiles/{Gemfile-5-1 → Gemfile-7-0} +1 -1
- data/lib/activejob/dispatch_rider/version.rb +1 -1
- data/lib/activejob/queue_adapters/dispatch_rider_adapter.rb +2 -2
- data/spec/activejob/dispatch_rider/job_handler_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- metadata +15 -15
- data/gemfiles/Gemfile-5-0 +0 -6
- data/gemfiles/Gemfile-5-2 +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a8d8d805ebecff6e9e62487d1c4714fa75a0feefa4a2881a98c3930360f3c8d
|
4
|
+
data.tar.gz: 1875e9aff5786365eb0ff99290a0fbcd2401be5f977f810db499b0197436a4fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f47f2fc79768299742136536f217187218b0e09df04cb533d9541253690c22fa5c4e0bcc31bfed8028f445dae1cd786f34fde6ebbc02b20cbf8624ba9125f1c2
|
7
|
+
data.tar.gz: 3bd1c1dc716b15bd17470a2225ffeb42c0431e4b53ce7a6e139f532dd7f8724aec357dff4d7a8edbfb020b1ac6af64f8a46dd13fc8566b5465fd77cc02ea0b01
|
data/.github/workflows/build.yml
CHANGED
@@ -16,25 +16,17 @@ jobs:
|
|
16
16
|
fail-fast: false
|
17
17
|
matrix:
|
18
18
|
ruby:
|
19
|
+
- 3.1
|
20
|
+
- '3.0'
|
19
21
|
- 2.7
|
20
22
|
- 2.6
|
21
23
|
gemfile:
|
22
|
-
- Gemfile-5-0
|
23
|
-
- Gemfile-5-1
|
24
|
-
- Gemfile-5-2
|
25
24
|
- Gemfile-6-0
|
26
25
|
- Gemfile-6-1
|
26
|
+
- Gemfile-7-0
|
27
27
|
exclude:
|
28
|
-
- gemfile: Gemfile-
|
29
|
-
ruby: 2.
|
30
|
-
- gemfile: Gemfile-5-1
|
31
|
-
ruby: 2.7
|
32
|
-
- gemfile: Gemfile-5-0
|
33
|
-
ruby: 3.0
|
34
|
-
- gemfile: Gemfile-5-1
|
35
|
-
ruby: 3.0
|
36
|
-
- gemfile: Gemfile-5-2
|
37
|
-
ruby: 3.0
|
28
|
+
- gemfile: Gemfile-7-0
|
29
|
+
ruby: 2.6
|
38
30
|
|
39
31
|
env:
|
40
32
|
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
|
data/README.md
CHANGED
@@ -6,8 +6,8 @@ require 'activejob/dispatch_rider/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "activejob-dispatch_rider"
|
8
8
|
spec.version = ActiveJob::DispatchRider::VERSION
|
9
|
-
spec.authors = ["Ronald Maravilla", "Fred Baa"]
|
10
|
-
spec.email = ["more.ron.too@gmail.com", "frederickbaa@gmail.com"]
|
9
|
+
spec.authors = ["Ronald Maravilla", "Fred Baa", "Mathieu Jobin"]
|
10
|
+
spec.email = ["more.ron.too@gmail.com", "frederickbaa@gmail.com", "mathieu.jobin@gmail.com"]
|
11
11
|
spec.summary = %q{'ActiveJob::DispatchRider' adds `DispatchRider` support for `ActiveJob`.}
|
12
12
|
spec.description = %q{'ActiveJob::DispatchRider' adds `DispatchRider` support for `ActiveJob`.}
|
13
13
|
spec.homepage = "https://github.com/payrollhero/activejob-dispatch_rider"
|
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "activejob", '>=
|
22
|
-
spec.add_dependency "dispatch-rider", "~>
|
21
|
+
spec.add_dependency "activejob", '>= 6.0'
|
22
|
+
spec.add_dependency "dispatch-rider", "~> 2.0"
|
23
23
|
spec.add_development_dependency "bundler"
|
24
|
-
spec.add_development_dependency "rake", "
|
24
|
+
spec.add_development_dependency "rake", ">= 10.0"
|
25
25
|
spec.add_development_dependency "rspec"
|
26
26
|
spec.add_development_dependency "sqlite3"
|
27
27
|
end
|
@@ -4,7 +4,7 @@ module ActiveJob
|
|
4
4
|
class DispatchRiderAdapter
|
5
5
|
# @param [ActiveJob::Base] job
|
6
6
|
def enqueue(job)
|
7
|
-
publisher.publish job_details_for(job)
|
7
|
+
publisher.publish **job_details_for(job)
|
8
8
|
end
|
9
9
|
|
10
10
|
# @param [ActiveJob::Base] job
|
@@ -12,7 +12,7 @@ module ActiveJob
|
|
12
12
|
def enqueue_at(job, scheduled_at)
|
13
13
|
scheduled_job_details = job_details_for(job).merge(scheduled_at: Time.at(scheduled_at))
|
14
14
|
|
15
|
-
::DispatchRider::ScheduledJob.create! scheduled_job_details
|
15
|
+
::DispatchRider::ScheduledJob.create! **scheduled_job_details
|
16
16
|
end
|
17
17
|
|
18
18
|
private
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob-dispatch_rider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ronald Maravilla
|
8
8
|
- Fred Baa
|
9
|
-
|
9
|
+
- Mathieu Jobin
|
10
|
+
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: activejob
|
@@ -17,28 +18,28 @@ dependencies:
|
|
17
18
|
requirements:
|
18
19
|
- - ">="
|
19
20
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
21
|
+
version: '6.0'
|
21
22
|
type: :runtime
|
22
23
|
prerelease: false
|
23
24
|
version_requirements: !ruby/object:Gem::Requirement
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
28
|
+
version: '6.0'
|
28
29
|
- !ruby/object:Gem::Dependency
|
29
30
|
name: dispatch-rider
|
30
31
|
requirement: !ruby/object:Gem::Requirement
|
31
32
|
requirements:
|
32
33
|
- - "~>"
|
33
34
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
35
|
+
version: '2.0'
|
35
36
|
type: :runtime
|
36
37
|
prerelease: false
|
37
38
|
version_requirements: !ruby/object:Gem::Requirement
|
38
39
|
requirements:
|
39
40
|
- - "~>"
|
40
41
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
42
|
+
version: '2.0'
|
42
43
|
- !ruby/object:Gem::Dependency
|
43
44
|
name: bundler
|
44
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,14 +58,14 @@ dependencies:
|
|
57
58
|
name: rake
|
58
59
|
requirement: !ruby/object:Gem::Requirement
|
59
60
|
requirements:
|
60
|
-
- - "
|
61
|
+
- - ">="
|
61
62
|
- !ruby/object:Gem::Version
|
62
63
|
version: '10.0'
|
63
64
|
type: :development
|
64
65
|
prerelease: false
|
65
66
|
version_requirements: !ruby/object:Gem::Requirement
|
66
67
|
requirements:
|
67
|
-
- - "
|
68
|
+
- - ">="
|
68
69
|
- !ruby/object:Gem::Version
|
69
70
|
version: '10.0'
|
70
71
|
- !ruby/object:Gem::Dependency
|
@@ -99,6 +100,7 @@ description: "'ActiveJob::DispatchRider' adds `DispatchRider` support for `Activ
|
|
99
100
|
email:
|
100
101
|
- more.ron.too@gmail.com
|
101
102
|
- frederickbaa@gmail.com
|
103
|
+
- mathieu.jobin@gmail.com
|
102
104
|
executables: []
|
103
105
|
extensions: []
|
104
106
|
extra_rdoc_files: []
|
@@ -112,11 +114,9 @@ files:
|
|
112
114
|
- Rakefile
|
113
115
|
- activejob-dispatch_rider.gemspec
|
114
116
|
- circle.yml
|
115
|
-
- gemfiles/Gemfile-5-0
|
116
|
-
- gemfiles/Gemfile-5-1
|
117
|
-
- gemfiles/Gemfile-5-2
|
118
117
|
- gemfiles/Gemfile-6-0
|
119
118
|
- gemfiles/Gemfile-6-1
|
119
|
+
- gemfiles/Gemfile-7-0
|
120
120
|
- lib/activejob/dispatch_rider.rb
|
121
121
|
- lib/activejob/dispatch_rider/handler_registrar_fallback.rb
|
122
122
|
- lib/activejob/dispatch_rider/job_handler.rb
|
@@ -130,7 +130,7 @@ homepage: https://github.com/payrollhero/activejob-dispatch_rider
|
|
130
130
|
licenses:
|
131
131
|
- BSD-3-Clause
|
132
132
|
metadata: {}
|
133
|
-
post_install_message:
|
133
|
+
post_install_message:
|
134
134
|
rdoc_options: []
|
135
135
|
require_paths:
|
136
136
|
- lib
|
@@ -145,8 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
149
|
-
signing_key:
|
148
|
+
rubygems_version: 3.2.33
|
149
|
+
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: "'ActiveJob::DispatchRider' adds `DispatchRider` support for `ActiveJob`."
|
152
152
|
test_files:
|
data/gemfiles/Gemfile-5-0
DELETED