-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
36 lines (32 loc) · 1.06 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
require "rubygems"
require "rake/gempackagetask"
require "rake/rdoctask"
spec = Gem::Specification.new do |s|
s.name = "jruby-prof"
s.version = "0.1.0"
s.summary = "A Ruby level profiler for JRuby"
s.author = "Daniel Lucraft"
s.email = "[email protected]"
s.homepage = "http://danlucraft.com/blog"
s.has_rdoc = false
s.files = %w(README) +
Dir.glob("{lib/**/*}") +
Dir.glob("{templates/**/*}") +
Dir.glob("{examples/**/*}") +
Dir.glob("{src}/**/*") +
Dir.glob("{test}/**/*")
s.require_paths = ["lib"]
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
# Generate documentation
Rake::RDocTask.new do |rd|
rd.main = "README"
rd.rdoc_files.include("README", "lib/**/*.rb")
rd.rdoc_dir = "rdoc"
end
desc 'Clear out RDoc and generated packages'
task :clean => [:clobber_rdoc, :clobber_package] do
rm "#{spec.name}.gemspec"
end