-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
64 lines (55 loc) · 1.84 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
require 'rubygems'
require 'rake/testtask'
require 'rubygems/package_task'
require 'fileutils'
require './test/unit/resources'
Dir['tasks/**/*.rake'].each { |t| load t }
task :default => 'test:all'
class PVNTestTask < Rake::TestTask
def initialize name, pattern
super name do |t|
t.libs << 'lib'
t.libs << 'test'
t.libs << 'test/unit'
t.pattern = 'test/' + pattern
t.warning = true
t.verbose = true
end
end
end
PVNTestTask.new 'test:unit', 'unit/**/*_test.rb'
PVNTestTask.new 'test:integration', 'integration/**/*_test.rb'
PVNTestTask.new 'test:all', '**/*_test.rb'
task :build_fixtures do
Resources.instance.generate
end
desc "generate man page"
task :generate_manpage do
sh "ronn -r --pipe README.md > man/pvn.1"
end
spec = Gem::Specification.new do |s|
s.name = "pvn"
s.version = "0.1.2"
s.author = "Jeff Pace"
s.email = "[email protected]"
s.homepage = "http://www.incava.org/projects/pvn"
s.platform = Gem::Platform::RUBY
s.summary = "What Subversion should have."
s.description = "A set of extensions to the Subversion command line, inspired by Git and Perforce."
s.files = FileList["{bin,lib,man}/**/*"].to_a
s.require_path = "lib"
s.test_files = FileList["{test}/**/*test.rb"].to_a
s.has_rdoc = false
s.bindir = 'bin'
s.executables = %w{ pvn pvndiff }
s.default_executable = 'pvn'
s.license = 'MIT'
s.add_dependency("synoption", ">= 0.0.2")
s.add_dependency("svnx", ">= 0.3.0")
s.add_dependency("riel", ">= 1.1.16")
s.add_dependency("rainbow", ">= 1.1.4")
end
Gem::PackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar_gz = true
end