-
Notifications
You must be signed in to change notification settings - Fork 18
/
Rakefile
49 lines (37 loc) · 931 Bytes
/
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
begin
require 'mg'
mg = MG.new('multimap.gemspec')
$spec = mg.spec
rescue LoadError
end
require 'rake/rdoctask'
Rake::RDocTask.new { |rdoc|
rdoc.title = 'Multimap'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.options << '--charset' << 'utf-8'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
}
namespace :rdoc do
task :publish => :rdoc do
Dir.chdir(File.dirname(__FILE__)) do
system "scp -r html/* [email protected]:/var/www/gforge-projects/multimap/"
end
end
end
task :default => :spec
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new do |t|
t.libs << 'lib'
t.ruby_opts = ['-w']
end
begin
require 'rake/extensiontask'
Rake::ExtensionTask.new do |ext|
ext.name = 'nested_multimap_ext'
ext.gem_spec = $spec
end
desc "Run specs using C ext"
task "spec:ext" => [:compile, :spec, :clobber]
rescue LoadError
end