Rakefile in yard-0.2.2 vs Rakefile in yard-0.2.3
- old
+ new
@@ -17,15 +17,20 @@
end
desc "Install the gem locally"
task :install => :package do
sh "#{SUDO} gem install pkg/#{SPEC.name}-#{SPEC.version}.gem --local"
+ sh "rm -rf pkg/yard-#{SPEC.version}" unless ENV['KEEP_FILES']
end
desc "Run all specs"
Spec::Rake::SpecTask.new("specs") do |t|
$DEBUG = true if ENV['DEBUG']
t.spec_opts = ["--format", "specdoc", "--colour"]
t.spec_files = Dir["spec/**/*_spec.rb"].sort
+ # t.rcov = true
+ t.rcov_opts = ['-x', '_spec\.rb$,spec_helper\.rb$']
end
-YARD::Rake::YardocTask.new
+YARD::Rake::YardocTask.new do |t|
+ t.after = lambda { `cp -R docs/images/ doc/images/` }
+end
\ No newline at end of file