Skip to content
This repository
Newer
Older
100644 41 lines (35 sloc) 1.08 kb
aaec1cde »
2009-01-17 Switched to echoe and prepped for 0.1.6 release.
1 require 'rubygems'
2 require 'rake'
2417c9d3 »
2010-06-18 Switched to manual gemspec.
3 require 'rake/rdoctask'
aaec1cde »
2009-01-17 Switched to echoe and prepped for 0.1.6 release.
4 require 'spec/rake/spectask'
2417c9d3 »
2010-06-18 Switched to manual gemspec.
5 require File.expand_path('../lib/happymapper/version', __FILE__)
6
7 Spec::Rake::SpecTask.new do |t|
8 t.ruby_opts << '-rubygems'
9 t.verbose = true
10 end
11 task :default => :spec
12
13 desc 'Builds the gem'
14 task :build do
15 sh "gem build happymapper.gemspec"
16 end
aaec1cde »
2009-01-17 Switched to echoe and prepped for 0.1.6 release.
17
2417c9d3 »
2010-06-18 Switched to manual gemspec.
18 desc 'Builds and installs the gem'
19 task :install => :build do
20 sh "gem install happymapper-#{HappyMapper::Version}"
21 end
22
23 desc 'Tags version, pushes to remote, and pushes gem'
24 task :release => :build do
25 sh "git tag v#{HappyMapper::Version}"
26 sh "git push origin master"
27 sh "git push origin v#{HappyMapper::Version}"
b00a69b7 »
2010-06-18 Fix rakefile gem push.
28 sh "gem push happymapper-#{HappyMapper::Version}.gem"
aaec1cde »
2009-01-17 Switched to echoe and prepped for 0.1.6 release.
29 end
30
31 desc 'Upload website files to rubyforge'
32 task :website do
2417c9d3 »
2010-06-18 Switched to manual gemspec.
33 sh %{rsync -av website/ jnunemaker@rubyforge.org:/var/www/gforge-projects/happymapper}
aaec1cde »
2009-01-17 Switched to echoe and prepped for 0.1.6 release.
34 end
35
2417c9d3 »
2010-06-18 Switched to manual gemspec.
36 Rake::RDocTask.new do |r|
37 r.title = 'HappyMapper Docs'
38 r.main = 'README.rdoc'
39 r.rdoc_dir = 'doc'
40 r.rdoc_files.include("README.rdoc", "lib/**/*.rb")
aaec1cde »
2009-01-17 Switched to echoe and prepped for 0.1.6 release.
41 end
Something went wrong with that request. Please try again.