Sha256: a81426f05ea704c141ed7272be9f269444715323c2dcaa789b6a7618f6840098

Contents?: true

Size: 961 Bytes

Versions: 23

Compression:

Stored size: 961 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yard'
require 'redcarpet'

desc "run the specs"
RSpec::Core::RakeTask.new(:spec)

desc "run rspec showing backtrace"
RSpec::Core::RakeTask.new(:spec_trace) do |task|
  task.rspec_opts = ['--backtrace']
end
task(rspec_trace: :spec_trace)

desc "run rspec stopping on first fail, and show backtrace"
RSpec::Core::RakeTask.new(:spec_fast) do |task|
  task.rspec_opts = ['--fail-fast', '--backtrace']
end
task(rspec_fast: :spec_fast)

desc "run rubocop diaplying cop names"
RuboCop::RakeTask.new(:rubocop) do |t|
  t.options = ['--display-cop-names']
end

# default task name is yard
desc "Yard: generate all the documentation"
YARD::Rake::YardocTask.new(:doc) do |t|
  #t.files = ['lib/**/*.rb']
end

desc "default task: runs rubocop and rspec"
task :default do
  Rake::Task[:rubocop].invoke
ensure
  Rake::Task[:spec].invoke
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
ecoportal-api-0.10.8 Rakefile
eco-helpers-3.0.21 Rakefile
eco-helpers-3.0.20 Rakefile
eco-helpers-3.0.19 Rakefile
ecoportal-api-0.10.7 Rakefile
eco-helpers-3.0.18 Rakefile
ecoportal-api-0.10.6 Rakefile
eco-helpers-3.0.17 Rakefile
ecoportal-api-0.10.5 Rakefile
eco-helpers-3.0.16 Rakefile
ecoportal-api-0.10.4 Rakefile
eco-helpers-3.0.15 Rakefile
ecoportal-api-0.10.3 Rakefile
ecoportal-api-0.10.2 Rakefile
eco-helpers-3.0.14 Rakefile
eco-helpers-3.0.13 Rakefile
eco-helpers-3.0.12 Rakefile
eco-helpers-3.0.11 Rakefile
eco-helpers-3.0.10 Rakefile
eco-helpers-3.0.9 Rakefile