Sha256: d28b0a3a761b6d41cf7f8cc6aa80f49389388255cef80ac2ddb55549adc54340
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
require 'rake' require 'rubygems' require 'bundler' require 'rspec/core/rake_task' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end Bundler::GemHelper.install_tasks namespace :namaste do RSpec::Core::RakeTask.new(:rspec) do |t| t.pattern = "./spec/**/*_spec.rb" t.rcov = true t.rcov_opts = ["--exclude", "gems\/,spec\/"] end # Use yard to build docs begin require 'yard' require 'yard/rake/yardoc_task' project_root = File.expand_path("#{File.dirname(__FILE__)}") doc_destination = File.join(project_root, 'doc') YARD::Rake::YardocTask.new(:doc) do |yt| yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) + [ File.join(project_root, 'README.textile') ] yt.options = ['--output-dir', doc_destination, '--readme', 'README.textile'] end rescue LoadError desc "Generate YARD Documentation" task :doc do abort "Please install the YARD gem to generate rdoc." end end end desc "Run the rspec tests, aggregate coverage data, and build the Yard docs" task :hudson => ["namaste:rspec","namaste:doc"]
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
checkm-0.1.1 | Rakefile |
checkm-0.1.0 | Rakefile |
namaste-0.3.0 | Rakefile |
checkm-0.0.6 | Rakefile |
namaste-0.2.0 | Rakefile |