Sha256: 7748e3415a9e64ad92fa9e77b8c2daf05554d13bf933f96d6e5ac04b6cd9b94e

Contents?: true

Size: 715 Bytes

Versions: 7

Compression:

Stored size: 715 Bytes

Contents

if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.0')
  # Mixing Module#prepend with alias_method can sometimes lead to infinite
  # mutual recursion, so this is to test that it doesn't happen.
  mod = Module.new do
    def execute(args = nil)
      puts 'In module prepended to Rake::Task'
      super
    end
  end
  Rake::Task.send(:prepend, mod)
end

require "bugsnag/integrations/rake"

namespace :test do
  desc "used by integration_spec to test that Bugsnag::Middleware::Rake runs properly"
  task :crash do
    port = ENV['BUGSNAG_TEST_SERVER_PORT']
    Bugsnag.configure do |config|
      config.endpoint = "http://localhost:#{port}"
      config.api_key = "0" * 32
    end

    raise
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bugsnag-6.15.0 spec/fixtures/tasks/Rakefile
bugsnag-6.14.0 spec/fixtures/tasks/Rakefile
bugsnag-6.13.1 spec/fixtures/tasks/Rakefile
bugsnag-6.13.0 spec/fixtures/tasks/Rakefile
bugsnag-6.12.2 spec/fixtures/tasks/Rakefile
bugsnag-6.12.1 spec/fixtures/tasks/Rakefile
bugsnag-6.12.0 spec/fixtures/tasks/Rakefile