Sha256: 4468a9de77f5e97aad33fce2133bfda740c863a5d27d71130b761afaa71d83e2

Contents?: true

Size: 487 Bytes

Versions: 33

Compression:

Stored size: 487 Bytes

Contents

module Bugsnag::Middleware
  class Rake
    def initialize(bugsnag)
      @bugsnag = bugsnag
    end

    def call(notification)
      task = notification.request_data[:bugsnag_running_task]

      if task
        notification.add_tab(:rake_task, {
          :name => task.name,
          :description => task.full_comment,
          :arguments => task.arg_description
        })

        notification.context ||= task.name
      end

      @bugsnag.call(notification)
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
bugsnag-5.5.0 lib/bugsnag/middleware/rake.rb
bugsnag-5.4.1 lib/bugsnag/middleware/rake.rb
bugsnag-5.4.0 lib/bugsnag/middleware/rake.rb
bugsnag-5.3.3 lib/bugsnag/middleware/rake.rb
bugsnag-5.3.2 lib/bugsnag/middleware/rake.rb
bugsnag-5.3.1 lib/bugsnag/middleware/rake.rb
bugsnag-5.3.0 lib/bugsnag/middleware/rake.rb
bugsnag-5.2.0 lib/bugsnag/middleware/rake.rb
bugsnag-5.1.0 lib/bugsnag/middleware/rake.rb
bugsnag-5.0.1 lib/bugsnag/middleware/rake.rb
bugsnag-5.0.0 lib/bugsnag/middleware/rake.rb
bugsnag-4.2.1 lib/bugsnag/middleware/rake.rb
bugsnag-4.2.0 lib/bugsnag/middleware/rake.rb
bugsnag-4.1.0 lib/bugsnag/middleware/rake.rb
bugsnag-4.0.2 lib/bugsnag/middleware/rake.rb
bugsnag-4.0.1 lib/bugsnag/middleware/rake.rb
bugsnag-4.0.0 lib/bugsnag/middleware/rake.rb
bugsnag-3.0.0 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.13 lib/bugsnag/middleware/rake.rb
bugsnag-maglev--2.8.12 lib/bugsnag/middleware/rake.rb