Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (47 sloc) 1.34 KB
require 'rubygems'
require 'spec'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'rake/gempackagetask'
$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
require 'garlic'
spec = do |s| = "garlic"
s.version = Garlic::Version::String
s.summary = "Lightweight set of rake tasks to help with CI."
s.description = "Lightweight set of rake tasks to help with CI." = "Ian White" = ""
s.homepage = ""
s.has_rdoc = false
s.test_files = FileList["spec/**/*_spec.rb"]
s.files = FileList[
end do |p|
p.gem_spec = spec
p.need_tar = true
p.need_zip = true
desc "Generate garlic.gemspec file"
task :build do'garlic.gemspec', 'w') { |f|
f.write spec.to_ruby
desc "Run the specs under spec" do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts << "-c"
desc "Generate RCov reports" do |t|
t.libs << 'lib'
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec', '--exclude', 'gems']
Jump to Line
Something went wrong with that request. Please try again.