Sha256: 9e4bae24af7c14a97b76d6dc985769bbca8c0ba939b090a5601d6d3426691094

Contents?: true

Size: 720 Bytes

Versions: 4

Compression:

Stored size: 720 Bytes

Contents

require 'bundler/gem_tasks'

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)
rescue LoadError
  puts "Couldn't find RSpec core Rake task"
end

begin
  require 'yard'
  YARD::Rake::YardocTask.new do |t|
    t.options = ['--verbose']
    t.files   = ['lib/**/*.rb', 'doc/**/*.md']
    t.stats_options = ['--list-undoc']
  end
rescue LoadError
  puts "Couldn't find YARD"
end

begin
  require 'yard-doctest'
  YARD::Doctest::RakeTask.new do |task|
    task.doctest_opts = %w[]
    task.pattern = 'lib/**/*.rb'
  end
rescue LoadError
  puts "Couldn't find yard-doctest"
end

task :default =>
  if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
    [:spec]
  else
    [:spec, 'yard:doctest']
  end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
metaractor-sycamore-0.4.2 Rakefile
metaractor-sycamore-0.4.1 Rakefile
outstand-sycamore-0.4.0 Rakefile
outstand-sycamore-0.4.0.pre Rakefile