Permalink
Browse files

gembase: Rakefile.base

  • Loading branch information...
1 parent 1c1f00b commit 4c7c09c110119bc8085cf2e788df2a5b2f582008 @rcarver rcarver committed May 6, 2011
Showing with 31 additions and 0 deletions.
  1. +31 −0 Rakefile.base
View
@@ -0,0 +1,31 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
+module Bundler
+ class GemHelper
+ # Override Bundler's concept of release.
+ def release_gem
+ guard_already_tagged
+ edit_changelog
+ sh "git commit --allow-empty -a -m 'Release #{version_tag}'"
+ tag_version
+ build_gem
+ git_push
+ end
+ def edit_changelog
+ unless `which git-changelog`.empty?
+ sh "git-changelog"
+ else
+ abort "git-changelog isn't found. Install it with `brew install git-extras`"
+ end
+ end
+ end
+end
+
+desc "Run all tests"
+task :default => :test
+
+desc "Update Rakefile.base"
+task :selfupdate do
+ sh "curl -sO https://github.com/rcarver/gembase/raw/master/Rakefile.base"
+end

0 comments on commit 4c7c09c

Please sign in to comment.