Skip to content

Commit

Permalink
added ruby 3 support (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin authored Sep 21, 2022
1 parent 7159a92 commit b40d473
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
fail-fast: false
matrix:
ruby:
- 3.1
- '3.0'
- 2.7
- 2.6
gemfile:
Expand Down
2 changes: 1 addition & 1 deletion lib/activejob/queue_adapters/dispatch_rider_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module QueueAdapters
class DispatchRiderAdapter
# @param [ActiveJob::Base] job
def enqueue(job)
publisher.publish job_details_for(job)
publisher.publish **job_details_for(job)
end

# @param [ActiveJob::Base] job
Expand Down
4 changes: 2 additions & 2 deletions spec/activejob/dispatch_rider/job_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
job_class = Class.new(ActiveJob::Base) do
queue_as :foo

def perform(foo:)
"foo is #{foo}"
def perform(options)
"foo is #{options[:foo]}"
end
end

Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "sqlite3"
require 'fileutils'

require "activejob/dispatch_rider"

Expand Down

0 comments on commit b40d473

Please sign in to comment.