3 require 'rake/gempackagetask'
5 spec = Gem::Specification.new do |s|
6 s.platform = Gem::Platform::RUBY
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"
15 s.test_files = Dir.glob('tests/*.rb')
17 s.extra_rdoc_files = ["README"]
20 Rake::GemPackageTask.new(spec) do |pkg|
24 task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
25 puts "generated latest version"
28 desc "Regenerate Documentation"
30 system('rdoc lib/ README --main README --inline-source')
34 task :upload_docs do |t|
35 system('rsync -rv --delete doc/ git.rubyforge.org:/var/www/gforge-projects/git')
40 require File.dirname(__FILE__) + '/tests/all_tests.rb'