Skip to content

Commit

Permalink
gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jul 7, 2010
1 parent dc07a3d commit 4ee9604
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 37 deletions.
37 changes: 0 additions & 37 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"
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
25 changes: 25 additions & 0 deletions github-markup.gemspec
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"
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

0 comments on commit 4ee9604

Please sign in to comment.