-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (29 loc) · 966 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
# -*- ruby -*-
require 'yaml'
require 'rubygems'
begin
require 'hoe'
gem 'rake-compiler', '>= 0.4.1'
require "rake/extensiontask"
Dir[File.expand_path('../tasks/**/*.rb', __FILE__)].each do |file|
require file
end
Hoe.spec 'mallcop' do
developer('Aaron Patterson', 'aaron@tenderlovemaking.com')
self.readme_file = 'README.rdoc'
self.history_file = 'CHANGELOG.rdoc'
self.extra_rdoc_files = FileList['*.rdoc']
self.spec_extras = { :extensions => ["ext/mallcop/extconf.rb"] }
self.testlib = :minitest
extra_dev_deps << ['rake-compiler', '>= 0.4.1']
Rake::ExtensionTask.new "mallcop", spec do |ext|
ext.lib_dir = File.join(*['lib', 'mallcop', ENV['FAT_DIR']].compact)
end
end
Hoe.add_include_dirs('.')
task :test => [:compile, "test:files"]
rescue LoadError
STDERR.puts "`hoe` and `rake-compiler` are required to build the gem"
end
ROOT = File.expand_path('../', __FILE__)
# vim: syntax=ruby