-
Notifications
You must be signed in to change notification settings - Fork 111
/
Rakefile
32 lines (26 loc) · 857 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rspec/core/rake_task'
require File.expand_path('../lib/happymapper/version', __FILE__)
RSpec::Core::RakeTask.new(:spec)
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/ [email protected]:/var/www/gforge-projects/happymapper}
end