Sha256: 2086b50ca50b6287d360beda2734b50a52a9932a2c11af4085f3ef077224b0c7

Contents?: true

Size: 848 Bytes

Versions: 1

Compression:

Stored size: 848 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/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

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

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

desc "Examples: Run examples (rake examples[basic] -- -h)"
task :examples, [:sample] do |_t, args|
  require_relative "examples/#{args[:sample]}"
end

task default: [:spec]
task rspec_trace: :spec_trace
task rspec_fast: :spec_fast

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rake-commander-0.1.4 Rakefile