# frozen_string_literal: true
module Shipit
  class DeliverHookJob < BackgroundJob
    queue_as :hooks

    def perform(delivery)
      delivery = Hook::DeliverySpec.new(delivery) if delivery.is_a?(Hash)
      delivery.send!
    end
  end
end

# frozen_string_literal: true
module Shipit
  class DeliverHookJob < BackgroundJob
    queue_as :hooks

    def perform(delivery)
      delivery = Hook::DeliverySpec.new(**delivery) if delivery.is_a?(Hash)
      delivery.send!
    end
  end
end

Fix Ruby 3.0 keyword argument passing in DeliverHookJob
Fix Ruby 3.0 keyword argument passing in DeliverHookJob
