Rakefile (view raw)
1task :default => :test
2
3desc "Run tests"
4task :test do
5 Dir['test/**/*_test.rb'].each { |file| require file }
6end
7
8desc "Kick it"
9task :kick do
10 exec "kicker -e rake test lib"
11end
12
13begin
14 require 'jeweler'
15 $LOAD_PATH.unshift 'lib'
16 require 'github/markup/version'
17 Jeweler::Tasks.new do |gemspec|
18 gemspec.name = "github-markup"
19 gemspec.summary = "The code we use to render README.your_favorite_markup"
20 gemspec.description = "The code we use to render README.your_favorite_markup"
21 gemspec.email = "chris@ozmm.org"
22 gemspec.homepage = "http://github.com/defunkt/github-markup"
23 gemspec.authors = ["Chris Wanstrath"]
24 gemspec.version = GitHub::Markup::Version
25 end
26rescue LoadError
27 puts "Jeweler not available."
28 puts "Install it with: gem install jeweler"
29end
30
31begin
32 require 'sdoc_helpers'
33rescue LoadError
34 puts "sdoc support not enabled. Please gem install sdoc-helpers."
35end
36
37desc "Build a gem"
38task :gem => [ :gemspec, :build ]
39
40desc "Push a new version to Gemcutter"
41task :publish => [ :test, :gemspec, :build ] do
42 system "git tag v#{GitHub::Markup::Version}"
43 system "git push origin v#{GitHub::Markup::Version}"
44 system "git push origin master"
45 system "gem push pkg/github-markup-#{GitHub::Markup::Version}.gem"
46 system "git clean -fd"
47 #exec "rake pages"
48end