-
Notifications
You must be signed in to change notification settings - Fork 17
/
Rakefile
47 lines (38 loc) · 1.18 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require 'rubygems'
Gem::manage_gems
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = "git-ruby"
s.version = "0.2.0"
s.author = "Scott Chacon"
s.email = "schacon@gmail.com"
s.summary = "A pure ruby implementation of Git"
s.files = FileList['lib/**/*', 'tests/**/*', 'doc/**/*'].to_a
s.bindir = 'bin'
s.executables << "gitr"
s.homepage = "http://github/schacon/git-ruby"
s.require_path = "lib"
s.autorequire = "git-ruby"
s.test_files = Dir.glob('tests/*.rb')
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
puts "generated latest version"
end
desc "Regenerate Documentation"
task :doc do |t|
system('rdoc lib/ README --main README --inline-source')
end
desc "Upload Docs"
task :upload_docs do |t|
system('rsync -rv --delete doc/ git-ruby.rubyforge.org:/var/www/gforge-projects/git-ruby')
end
desc "Run Unit Tests"
task :test do |t|
require File.dirname(__FILE__) + '/tests/all_tests.rb'
end