Sha256: e6449a6154246209a447f264b6990fab809311ed267579c66c59711cbe8abb8b
Contents?: true
Size: 906 Bytes
Versions: 3
Compression:
Stored size: 906 Bytes
Contents
# coding: utf-8 require 'rake/testtask' require 'yard' Rake::TestTask.new do |t| t.libs << 'test' t.test_files = Dir['test/unit/**/test_*.rb'] + Dir['test/unit/**/*_spec.rb'] end namespace :examples do desc 'Run all examples' task all: :_init do require_relative 'examples/helper' Dir['examples/*/*.rb'].each {|f| require_relative f } end Dir['examples/*/*.rb'].each do |f| casename = File.basename(File.dirname(f)) desc "Run example: #{casename}" task casename.to_sym => :_init do require_relative 'examples/helper' require_relative "examples/#{casename}/#{casename}" end end task :_init do $:.push File.expand_path('../lib', __FILE__) end end desc 'Run all examples' task examples: :'examples:all' YARD::Rake::YardocTask.new :doc do |yard| yard.files = Dir['lib/**/*.rb'] yard.options = ['--readme', 'README.md'] end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.8.2 | Rakefile |
thinreports-0.8.1 | Rakefile |
thinreports-0.8.0 | Rakefile |