forked from github/markup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |