gemspec
Chris Wanstrath chris@ozmm.org
Wed, 07 Jul 2010 16:35:44 -0500
2 files changed,
25 insertions(+),
37 deletions(-)
M
Rakefile
→
Rakefile
@@ -9,40 +9,3 @@ 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 - warn "Jeweler not available." - warn "Install it with: gem install jeweler" -end - -begin - require 'sdoc_helpers' -rescue LoadError - warn "sdoc support not enabled. Please gem install sdoc-helpers." -end - -desc "Build a gem" -task :gem => [ :gemspec, :build ] - -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
A
github-markup.gemspec
@@ -0,0 +1,25 @@
+$LOAD_PATH.unshift 'lib' +require "github/markup/version" + +Gem::Specification.new do |s| + s.name = "github-markup" + s.version = GitHub::Markup::Version + s.date = Time.now.strftime('%Y-%m-%d') + s.summary = "The code GitHub uses to render README.markup" + s.homepage = "http://github.com/github/markup" + s.email = "chris@ozmm.org" + s.authors = [ "Chris Wanstrath" ] + s.has_rdoc = false + + s.files = %w( README.md Rakefile LICENSE ) + s.files += Dir.glob("lib/**/*") + s.files += Dir.glob("bin/**/*") + s.files += Dir.glob("man/**/*") + s.files += Dir.glob("test/**/*") + +# s.executables = %w( github-markup ) + s.description = <<desc + This gem is used by GitHub to render any fancy markup such as + Markdown, Textile, Org-Mode, etc. Fork it and add your own! +desc +end