Permalink
Browse files

Actually make gem publishing work

  • Loading branch information...
1 parent a1a1033 commit 3c1b51ecb02c51f084ffc1cc3880c92ec7fc3a07 @kneath kneath committed Dec 2, 2011
Showing with 9 additions and 10 deletions.
  1. +9 −10 Rakefile
View
19 Rakefile
@@ -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.