added checkout_index
[rubygit.git] / Rakefile
blob0d5574a17183061478b92fff89ed9d1987f0c1dd
1 require 'rubygems'
2 Gem::manage_gems
3 require 'rake/gempackagetask'
5 spec = Gem::Specification.new do |s|
6     s.platform  =   Gem::Platform::RUBY
7     s.name      =   "git"
8     s.version   =   "1.0.2"
9     s.author    =   "Scott Chacon"
10     s.email     =   "schacon@gmail.com"
11     s.summary   =   "A package for using Git in Ruby code."
12     s.files     =   FileList['lib/**/*', 'tests/**/*', 'doc/**/*'].to_a
13     s.require_path  =   "lib"
14     s.autorequire   =   "git"
15     s.test_files = Dir.glob('tests/*.rb')
16     s.has_rdoc  =   true
17     s.extra_rdoc_files  =   ["README"]
18 end
20 Rake::GemPackageTask.new(spec) do |pkg|
21     pkg.need_tar = true
22 end
24 task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
25     puts "generated latest version"
26 end
28 desc "Regenerate Documentation"
29 task :doc do |t|
30  system('rdoc lib/ README --main README --inline-source')
31 end
33 desc "Upload Docs"
34 task :upload_docs do |t|
35  system('rsync -rv --delete doc/ git.rubyforge.org:/var/www/gforge-projects/git')
36 end
38 desc "Run Unit Tests"
39 task :test do |t|
40     require File.dirname(__FILE__) + '/tests/all_tests.rb'
41 end