Skip to content

Commit

Permalink
Actually make gem publishing work
Browse files Browse the repository at this point in the history
  • Loading branch information
kneath committed Dec 2, 2011
1 parent a1a1033 commit 3c1b51e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Rakefile
Expand Up @@ -39,19 +39,18 @@ end
#

begin
require 'kss/version'
require 'mg'
MG.new("kss.gemspec")

desc "Push a new version to Gemcutter and publish docs."
task :publish => "gem:publish" do
require File.dirname(__FILE__) + '/lib/kss/version'

sh "git tag v#{Kss::VERSION}"
sh "git push origin master --tags"
sh "git clean -fd"
end
rescue LoadError
warn "mg not available."
warn "Install it with: gem install mg"
end

desc "Push a new version to Gemcutter and publish docs."
task :publish => "gem:publish" do
require File.dirname(__FILE__) + '/lib/kss/version'

sh "git tag v#{Kss::VERSION}"
sh "git push origin master --tags"
sh "git clean -fd"
end

0 comments on commit 3c1b51e

Please sign in to comment.