Skip to content

Commit

Permalink
gembase: Rakefile.base
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Carver committed May 6, 2011
1 parent 1c1f00b commit 4c7c09c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Rakefile.base
Original file line number Diff line number Diff line change
@@ -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.