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 "Push a new version to Gemcutter"
38task :publish => [ :test, :gemspec, :build ] do
39 system "git tag v#{GitHub::Markup::Version}"
40 system "git push origin v#{GitHub::Markup::Version}"
41 system "git push origin master"
42 system "gem push pkg/github_markup-#{GitHub::Markup::Version}.gem"
43 system "git clean -fd"
44 #exec "rake pages"
45end