Sha256: a65be42d6a0cb3fc59a88a7f268cdcc4bc2f1ad6cf1a32f142c7a4eb32b17196

Contents?: true

Size: 1.06 KB

Versions: 12

Compression:

Stored size: 1.06 KB

Contents

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

RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.rspec_opts = ['--backtrace '] if ENV['DEBUG']
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 appraisal install && bundle exec rake appraisal spec && bundle exec rake coveralls:push')
  else
    exec('bundle exec appraisal install && bundle exec rake appraisal spec')
  end
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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
washout_builder-1.5.5 Rakefile
washout_builder-1.5.4 Rakefile
washout_builder-1.5.3 Rakefile
washout_builder-1.5.1 Rakefile
washout_builder-1.4.0 Rakefile
washout_builder-1.3.0 Rakefile
washout_builder-1.2.4 Rakefile
washout_builder-1.2.3 Rakefile
washout_builder-1.2.2 Rakefile
washout_builder-1.1.2 Rakefile
washout_builder-1.1.1 Rakefile
washout_builder-1.1.0 Rakefile