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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d4d564b76559d7070de5e918ab07a0e55fce9c54565e4cdb4b745b84ef40128
4
- data.tar.gz: be27a42d77cf834b8319059fee309a44719200ef7afd1c46dcd4eb7fd03a9edb
3
+ metadata.gz: 7a8d8d805ebecff6e9e62487d1c4714fa75a0feefa4a2881a98c3930360f3c8d
4
+ data.tar.gz: 1875e9aff5786365eb0ff99290a0fbcd2401be5f977f810db499b0197436a4fe
5
5
  SHA512:
6
- metadata.gz: 5ebaf7eaf5fff8498c305f940d671341f6d88b3e4163d80a27c5f48e8371297cba3beeef209232416587f98e784bdac173b4c9ede1912dd7a97357d69e1c4c84
7
- data.tar.gz: 53110820d4931a0ff41f208667110169e3852cbe60cdd1ce3ff0ead32f3fb53935bfaf0ee7c679a67cd7d1e4576963871625ac030c98f9e679cde195455090e2
6
+ metadata.gz: f47f2fc79768299742136536f217187218b0e09df04cb533d9541253690c22fa5c4e0bcc31bfed8028f445dae1cd786f34fde6ebbc02b20cbf8624ba9125f1c2
7
+ data.tar.gz: 3bd1c1dc716b15bd17470a2225ffeb42c0431e4b53ce7a6e139f532dd7f8724aec357dff4d7a8edbfb020b1ac6af64f8a46dd13fc8566b5465fd77cc02ea0b01
@@ -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-5-0
29
- ruby: 2.7
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
@@ -9,6 +9,8 @@
9
9
 
10
10
  'ActiveJob::DispatchRider' adds `DispatchRider` support for `ActiveJob`.
11
11
 
12
+ Allow standard ActiveJob jobs to be run by Dispatch Rider.
13
+
12
14
  ## Installation
13
15
 
14
16
  Add this line to your application's Gemfile:
@@ -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", '>= 5.0'
22
- spec.add_dependency "dispatch-rider", "~> 1.7"
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", "~> 10.0"
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
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '..'
4
4
 
5
- gem 'rails', '~> 5.1.4'
5
+ gem 'rails', '~> 7.0.4'
@@ -1,5 +1,5 @@
1
1
  module ActiveJob
2
2
  module DispatchRider
3
- VERSION = "2.3.0"
3
+ VERSION = "2.4.1"
4
4
  end
5
5
  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
@@ -6,8 +6,8 @@ describe ActiveJob::DispatchRider::JobHandler do
6
6
  job_class = Class.new(ActiveJob::Base) do
7
7
  queue_as :foo
8
8
 
9
- def perform(foo:)
10
- "foo is #{foo}"
9
+ def perform(options)
10
+ "foo is #{options[:foo]}"
11
11
  end
12
12
  end
13
13
 
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "sqlite3"
2
+ require 'fileutils'
2
3
 
3
4
  require "activejob/dispatch_rider"
4
5
 
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.3.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronald Maravilla
8
8
  - Fred Baa
9
- autorequire:
9
+ - Mathieu Jobin
10
+ autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2021-08-17 00:00:00.000000000 Z
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: '5.0'
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: '5.0'
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: '1.7'
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: '1.7'
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.0.9
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
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: '..'
4
-
5
- gem 'rails', '~> 5.0.7'
6
- gem 'sqlite3', '< 1.4'
data/gemfiles/Gemfile-5-2 DELETED
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: '..'
4
-
5
- gem 'rails', '~> 5.2.6'