activejob-dispatch_rider 2.4.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: 5ccba2a768772ece72d4534730cb543ed4485869d6e114cea8d100ee8d38875a
4
- data.tar.gz: c0896c259b384944f2eb5a17a73093618f9f146890cb238b4a38d0333722a9d5
3
+ metadata.gz: 7a8d8d805ebecff6e9e62487d1c4714fa75a0feefa4a2881a98c3930360f3c8d
4
+ data.tar.gz: 1875e9aff5786365eb0ff99290a0fbcd2401be5f977f810db499b0197436a4fe
5
5
  SHA512:
6
- metadata.gz: 17cef84f50fec87744dd7d014c6944196a27c52b7b7f9532617621acf7bb1eb8981085242b17e9bdf4d3aedd797a8af3096d2f7d94878e3c6f45e0a21dd2fdb3
7
- data.tar.gz: e18a666d102b6d263d5897fa66147de4181aed49417cb5ce357d6da6fa1322f2cff24f7dc299393c2303c0353aca15d9f5c10093fb68dabedd86072d376294e0
6
+ metadata.gz: f47f2fc79768299742136536f217187218b0e09df04cb533d9541253690c22fa5c4e0bcc31bfed8028f445dae1cd786f34fde6ebbc02b20cbf8624ba9125f1c2
7
+ data.tar.gz: 3bd1c1dc716b15bd17470a2225ffeb42c0431e4b53ce7a6e139f532dd7f8724aec357dff4d7a8edbfb020b1ac6af64f8a46dd13fc8566b5465fd77cc02ea0b01
@@ -16,6 +16,8 @@ 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:
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:
@@ -1,5 +1,5 @@
1
1
  module ActiveJob
2
2
  module DispatchRider
3
- VERSION = "2.4.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,16 +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.0
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
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-09-20 00:00:00.000000000 Z
13
+ date: 2022-12-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activejob
@@ -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.1.6
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: