Sha256: 1017c45bd06d7d89629933f18099a26bd41b971897a96a73930f654ea3050933

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'coveralls/rake/task'
require 'yard'
Coveralls::RakeTask.new

RSpec::Core::RakeTask.new(:spec) do |spec|
  default_options = ['--colour']
  default_options.concat(['--backtrace', '--fail-fast']) if ENV['DEBUG']
  spec.rspec_opts = default_options
end

YARD::Config.options[:load_plugins] = true
YARD::Config.load_plugins

YARD::Rake::YardocTask.new do |t|
  t.files = ['lib/**/*.rb', 'spec/**/*_spec.rb'] # optional
  t.options = ['--any', '--extra', '--opts', '--markup-provider=redcarpet', '--markup=markdown', '--debug'] # optional
  t.stats_options = ['--list-undoc'] # optional
end

desc 'Default: run the unit tests.'
task default: [:all]

desc 'Test the plugin under all supported Rails versions.'
task :all do |_t|
  if ENV['TRAVIS']
    exec('bundle exec rake  spec && bundle exec rake coveralls:push')
  else
    exec('bundle exec rake spec')
  end
end

task :docs do
  exec('bundle exec inch --pedantic && bundle exec yard --list-undoc')
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
asana_exception_notifier-0.2.0 Rakefile
asana_exception_notifier-0.1.0 Rakefile
asana_exception_notifier-0.0.9 Rakefile
asana_exception_notifier-0.0.8 Rakefile
asana_exception_notifier-0.0.7 Rakefile
asana_exception_notifier-0.0.6 Rakefile
asana_exception_notifier-0.0.5 Rakefile
asana_exception_notifier-0.0.4 Rakefile
asana_exception_notifier-0.0.3 Rakefile
asana_exception_notifier-0.0.2 Rakefile
asana_exception_notifier-0.0.1 Rakefile