Sha256: cb2a1fcd97fe3a2fedb4e1cae769acbf55ba1ae2c93cf409df0bed56f3788b4d

Contents?: true

Size: 360 Bytes

Versions: 10

Compression:

Stored size: 360 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' => top_level_tasks.join(' ') }
      orig_display_error_messsage(ex)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sentry-raven-2.6.3 lib/raven/integrations/rake.rb
sentry-raven-2.6.2 lib/raven/integrations/rake.rb
sentry-raven-2.6.1 lib/raven/integrations/rake.rb
sentry-raven-2.6.0 lib/raven/integrations/rake.rb
sentry-raven-2.5.3 lib/raven/integrations/rake.rb
sentry-raven-2.5.2 lib/raven/integrations/rake.rb
sentry-raven-2.5.1 lib/raven/integrations/rake.rb
sentry-raven-2.5.0 lib/raven/integrations/rake.rb
sentry-raven-2.4.0 lib/raven/integrations/rake.rb
sentry-raven-2.3.1 lib/raven/integrations/rake.rb