Sha256: a4af7fe65bcdab39639519355184f2232cc14f4ffeaa3036258c140f6e6dca09

Contents?: true

Size: 1020 Bytes

Versions: 57

Compression:

Stored size: 1020 Bytes

Contents

begin
  require 'hoptoad_notifier'
rescue LoadError
  raise "Can't find 'hoptoad_notifier' gem. Please add it to your Gemfile or install it."
end

require 'resque/failure/thoughtbot'

module Resque
  module Failure
    # A Failure backend that sends exceptions raised by jobs to Hoptoad.
    #
    # To use it, put this code in an initializer, Rake task, or wherever:
    #
    #   require 'resque/failure/hoptoad'
    #
    #   Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Hoptoad]
    #   Resque::Failure.backend = Resque::Failure::Multiple
    #
    # Once you've configured resque to use the Hoptoad failure backend,
    # you'll want to setup an initializer to configure the Hoptoad.
    #
    # HoptoadNotifier.configure do |config|
    #   config.api_key = 'your_key_here'
    # end
    # For more information see https://github.com/thoughtbot/hoptoad_notifier
    class Hoptoad < Base
      include Resque::Failure::Thoughtbot

      @klass = ::HoptoadNotifier
    end
  end
end

Version data entries

57 entries across 57 versions & 5 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.7.4 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.7.3 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.7.2 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.7.1 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.7.0 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
resque-1.24.1 lib/resque/failure/hoptoad.rb
resque-1.24.0 lib/resque/failure/hoptoad.rb
resque-1.23.1 lib/resque/failure/hoptoad.rb
classiccms-0.6.9 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.8 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.7 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.6 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.5 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.4 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.3 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.2 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.1 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.6.0 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
resque-1.23.0 lib/resque/failure/hoptoad.rb