Skip to content

Commit

Permalink
Release tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeredpath committed Jan 30, 2012
1 parent 279a68d commit 3995701
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1 +1,2 @@
doc doc
pkg
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -165,3 +165,16 @@ desc "Bundle the gems from the gemspec"
task :bundle => :gemspec do task :bundle => :gemspec do
system "bundle install" system "bundle install"
end end

desc 'Build and release to Rubygems.org'
task :release => :package do
gem_path = File.join('pkg', spec.file_name)
system "gem push #{gem_path}"
end

desc 'Build and install the gem'
task :install => :package do
gem_path = File.join('pkg', spec.file_name)
system("gem install #{gem_path}")
end

0 comments on commit 3995701

Please sign in to comment.