Sha256: e09738f3f1f3708ab9f73683471a6fb1f961ce11b640945c561eb3f03ca252ec

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

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 happymapper-#{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}
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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
happymapper-0.3.2 Rakefile