Sha256: fd4ec3be5eb60beaf5c55f5f5618517e9ced993776e9a02a96cc4708916e551e

Contents?: true

Size: 342 Bytes

Versions: 10

Compression:

Stored size: 342 Bytes

Contents

require 'rake'
require 'rake/task'
require 'raven/integrations/tasks'

module Rake
  class Application
    alias :orig_display_error_messsage :display_error_message
    def display_error_message(ex)
      Raven.capture_exception ex, :logger => 'rake', :tags => { 'rake_task' => @name }
      orig_display_error_messsage(ex)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sentry-raven-1.2.3 lib/raven/integrations/rake.rb
sentry-raven-1.2.2 lib/raven/integrations/rake.rb
sentry-raven-1.2.1 lib/raven/integrations/rake.rb
sentry-raven-1.2.0 lib/raven/integrations/rake.rb
sentry-raven-1.1.0 lib/raven/integrations/rake.rb
sentry-raven-1.0.0 lib/raven/integrations/rake.rb
sentry-raven-0.15.6 lib/raven/integrations/rake.rb
sentry-raven-0.15.5 lib/raven/integrations/rake.rb
sentry-raven-0.15.4 lib/raven/integrations/rake.rb
sentry-raven-0.15.3 lib/raven/integrations/rake.rb