Sha256: faf63326647a3903bc775676e841ac3f8eb14b2911b9da9d6950c3749b7e9ece

Contents?: true

Size: 835 Bytes

Versions: 26

Compression:

Stored size: 835 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)

# 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

26 entries across 26 versions & 1 rubygems

Version Path
eco-helpers-3.0.7 Rakefile
eco-helpers-3.0.6 Rakefile
eco-helpers-3.0.5 Rakefile
eco-helpers-3.0.4 Rakefile
eco-helpers-3.0.3 Rakefile
eco-helpers-3.0.2 Rakefile
eco-helpers-3.0.1 Rakefile
eco-helpers-3.0.0 Rakefile
eco-helpers-2.7.25 Rakefile
eco-helpers-2.7.24 Rakefile
eco-helpers-2.7.23 Rakefile
eco-helpers-2.7.22 Rakefile
eco-helpers-2.7.21 Rakefile
eco-helpers-2.7.20 Rakefile
eco-helpers-2.7.19 Rakefile
eco-helpers-2.7.18 Rakefile
eco-helpers-2.7.17 Rakefile
eco-helpers-2.7.16 Rakefile
eco-helpers-2.7.15 Rakefile
eco-helpers-2.7.14 Rakefile