Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4400aa5583
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.783 kb
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
require 'rake/rdoctask'
# read the contents of the gemspec, eval it, and assign it to 'spec'
# this lets us maintain all gemspec info in one place. Nice and DRY.
spec = eval(IO.read("campaign_monitor.gemspec"))
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
task :install => [:package] do
sh %{sudo gem install pkg/#{spec.name}-#{spec.version}}
end
task :default => [:test]
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/*_test.rb']
t.verbose = true
end
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
rd.rdoc_dir = 'doc'
rd.options = spec.rdoc_options
end
Jump to Line
Something went wrong with that request. Please try again.