all repos — markup @ 0b1b2d7175a02504ff936e91c59a3db8d9104854

The code we use to render README.your_favorite_markup

add admin rake tasks
Chris Wanstrath chris@ozmm.org
Mon, 02 Nov 2009 16:06:35 -0800
commit

0b1b2d7175a02504ff936e91c59a3db8d9104854

parent

6fe79eee08375e549a8fee1f2f79f90e554bcaa5

1 files changed, 34 insertions(+), 0 deletions(-)

jump to
M RakefileRakefile

@@ -9,3 +9,37 @@ desc "Kick it"

task :kick do exec "kicker -e rake test lib" end + +begin + require 'jeweler' + $LOAD_PATH.unshift 'lib' + require 'github/markup/version' + Jeweler::Tasks.new do |gemspec| + gemspec.name = "github_markup" + gemspec.summary = "The code we use to render README.your_favorite_markup" + gemspec.description = "The code we use to render README.your_favorite_markup" + gemspec.email = "chris@ozmm.org" + gemspec.homepage = "http://github.com/defunkt/github_markup" + gemspec.authors = ["Chris Wanstrath"] + gemspec.version = GitHub::Markup::Version + end +rescue LoadError + puts "Jeweler not available." + puts "Install it with: gem install jeweler" +end + +begin + require 'sdoc_helpers' +rescue LoadError + puts "sdoc support not enabled. Please gem install sdoc-helpers." +end + +desc "Push a new version to Gemcutter" +task :publish => [ :test, :gemspec, :build ] do + system "git tag v#{GitHub::Markup::Version}" + system "git push origin v#{GitHub::Markup::Version}" + system "git push origin master" + system "gem push pkg/github_markup-#{GitHub::Markup::Version}.gem" + system "git clean -fd" + #exec "rake pages" +end