Sha256: d22b58df66e82cdf44af9ed958184ed2a1c968707bd5794ff235ff4b09c8594e

Contents?: true

Size: 984 Bytes

Versions: 17

Compression:

Stored size: 984 Bytes

Contents

# encoding: utf-8

require 'rdoc/task'
RDoc::Task.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.rdoc_files.include('README.md')
  rdoc.rdoc_files.include('CONTRIBUTING.md')
  rdoc.rdoc_files.include('CHANGELOG.md')
  rdoc.rdoc_files.include('lib/**/*.rb')
  rdoc.options.push '-f', 'hanna'
  rdoc.markup = 'markdown'
end

# RSpec tasks
require 'rspec/core'
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |task|
  integration_exclusions = []
  begin
    require 'sidekiq/testing'
  rescue LoadError
    puts "Skipping sidekiq tests, missing dependencies"
    integration_exclusions << 'sidekiq'
  end
  begin
    require 'delayed_job'
  rescue LoadError
    puts "Skipping delayed_job tests, missing dependencies"
    integration_exclusions << 'delayed_job'
  end
  if integration_exclusions.length > 0
    pattern = integration_exclusions.join(',')
    task.rspec_opts = " --exclude-pattern **/integrations/{#{pattern}}_spec.rb"
  end
end

task :default  => :spec

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bugsnag-6.15.0 Rakefile
bugsnag-6.14.0 Rakefile
bugsnag-6.13.1 Rakefile
bugsnag-6.13.0 Rakefile
bugsnag-6.12.2 Rakefile
bugsnag-6.12.1 Rakefile
bugsnag-6.12.0 Rakefile
bugsnag-6.11.1 Rakefile
bugsnag-6.11.0 Rakefile
bugsnag-6.10.0 Rakefile
bugsnag-6.9.0 Rakefile
bugsnag-6.8.0 Rakefile
bugsnag-6.7.3 Rakefile
bugsnag-6.7.2 Rakefile
bugsnag-6.7.1 Rakefile
bugsnag-6.7.0 Rakefile
bugsnag-6.6.4 Rakefile