-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
49 lines (42 loc) · 1.34 KB
/
Copy pathRakefile
File metadata and controls
49 lines (42 loc) · 1.34 KB
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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.name = 'rallhook'
s.version = '0.8.0'
s.author = 'Dario Seminara'
s.email = 'robertodarioseminara@gmail.com'
s.platform = Gem::Platform::RUBY
s.summary = 'Allow hooking of all method invocations transparently to control and / or monitor the behavior of a ruby program'
s.homepage = "http://github.com/tario/rallhook"
s.has_rdoc = true
s.add_dependency "ruby-cymbol", ">= 0.1.0"
s.extra_rdoc_files = [ 'README' ]
s.rdoc_options << '--main' << 'README'
s.extensions = FileList["ext/**/extconf.rb"].to_a
s.files = Dir.glob("{examples,lib,test}/**/*.rb") + Dir.glob("ext/**/*.c") + Dir.glob("ext/**/*.h") + Dir.glob("ext/**/extconf.rb") +
[ 'AUTHORS', 'CHANGELOG', 'README', 'Rakefile', 'TODO' ]
end
desc 'Run tests'
task :default => [ :test ]
Rake::TestTask.new('test') do |t|
t.libs << 'test'
t.pattern = '{test}/**/test_*.rb'
t.verbose = true
end
desc 'Generate RDoc'
Rake::RDocTask.new :rdoc do |rd|
rd.rdoc_dir = 'doc'
rd.rdoc_files.add 'lib', 'ext', 'README'
rd.main = 'README'
end
desc 'Build Gem'
Rake::GemPackageTask.new spec do |pkg|
pkg.need_tar = true
end
desc 'Clean up'
task :clean => [ :clobber_rdoc, :clobber_package ]
desc 'Clean up'
task :clobber => [ :clean ]