Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v0.3.1
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (40 sloc) 1.261 kB
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require File.expand_path('../lib/happymapper/version', __FILE__)
Spec::Rake::SpecTask.new do |t|
t.ruby_opts << '-rubygems'
t.verbose = true
end
task :default => :spec
desc 'Builds the gem'
task :build do
sh "gem build happymapper.gemspec"
end
desc 'Builds and installs the gem'
task :install => :build do
sh "gem install happymapper-#{HappyMapper::Version}"
end
desc 'Tags version, pushes to remote, and pushes gem'
task :release => :build do
sh "git tag v#{HappyMapper::Version}"
sh "git push origin master"
sh "git push origin v#{HappyMapper::Version}"
sh "gem push bin-#{HappyMapper::Version}.gem"
end
desc 'Upload website files to rubyforge'
task :website do
sh %{rsync -av website/ jnunemaker@rubyforge.org:/var/www/gforge-projects/happymapper}
Rake::Task['website_docs'].invoke
end
task :website_docs do
Rake::Task['rerdoc'].invoke
sh %{rsync -av doc/ jnunemaker@rubyforge.org:/var/www/gforge-projects/happymapper/docs}
end
Rake::RDocTask.new do |r|
r.title = 'HappyMapper Docs'
r.main = 'README.rdoc'
r.rdoc_dir = 'doc'
r.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end
Jump to Line
Something went wrong with that request. Please try again.