Sha256: 4fb911448b89c1e28d87bc904f15c62a36bf85eaed00bd0c318a1855aeff48d4

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

begin
  require 'sidekiq'
  require 'apn/jobs/sidekiq_notification_job'
rescue LoadError => e
  $stderr.puts "You don't have sidekiq installed in your application. Please add it to your Gemfile and run bundle install"
  raise e
end

module APN
  module Backend
    class Sidekiq
      def notify(token, opts)
        ::Sidekiq::Client.enqueue(APN::Jobs::SidekiqNotificationJob, token, opts)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apn_sender-2.1.1 lib/apn/backend/sidekiq.rb
apn_sender-2.1.0 lib/apn/backend/sidekiq.rb
apn_sender-2.0.2 lib/apn/backend/sidekiq.rb