Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: rewrite-s3
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (39 sloc) 1.289 kB
require 'rake'
require "rake/rdoctask"
require 'rake/gempackagetask'
require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'
Rake::RDocTask.new do |rd|
rd.main = "README"
rd.rdoc_files.include("README", "CHANGELOG", "lib/**/*.rb")
end
desc "Run all examples with RCov"
Spec::Rake::SpecTask.new(:rcov) do |t|
t.spec_files = FileList['spec/**/*.rb']
t.rcov = true
t.rcov_opts = %w(--exclude spec --exclude activesupport --exclude activerecord)
t.rcov_dir = "doc/rcov"
end
desc "Run all specs"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList['spec/**/*.rb']
t.rcov = false
end
desc "Generate RSpec Report"
task :rspec_report => [:clobber_rspec_report] do
files = FileList["spec/**/*.rb"].to_s
%x(spec #{files} --format html:doc/rspec_report.html)
end
task :clobber_rspec_report do
%x(rm -rf doc/rspec_report.html)
end
desc "Generate all documentation"
task :generate_documentation => [:clobber_documentation, :rdoc, :rcov, :rspec_report]
desc "Remove all documentation"
task :clobber_documentation => [:clobber_rdoc, :clobber_rcov, :clobber_rspec_report]
desc "Build Release"
task :build_release => [:pre_commit, :generate_documentation, :repackage] do
%x(mv pkg gem)
end
desc "Run this before commiting"
task :pre_commit => [:verify_rcov]
Jump to Line
Something went wrong with that request. Please try again.