-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
41 lines (33 loc) · 1.03 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
require 'date'
require 'rubygems'
require 'rake/clean'
require 'rake/extensiontask'
require 'rdoc/task'
spec = Gem::Specification.new do |s|
s.name = 'potracer'
s.version = '1.1.4'
s.date = Date.today.strftime('%Y-%m-%d')
s.summary = 'Ruby bindings for potrace.'
s.description = 'Ruby bindings for the potrace library.'
s.authors = ['Kenny Parnell']
s.email = '[email protected]'
s.platform = Gem::Platform::RUBY
s.files = FileList['lib/*.rb'] + FileList['ext/**/*.{h,c,rb}']
s.extensions = FileList['ext/**/extconf.rb']
s.homepage = 'https://github.com/kennyp/potracer'
end
Gem::PackageTask.new(spec) do |pkg|
end
Rake::ExtensionTask.new('potracer', spec) do |ext|
ext.lib_dir = 'build'
end
RDoc::Task.new do |rdoc|
rdoc.main = 'README.rdoc'
rdoc.rdoc_files.include('README.rdoc', 'lib/*.rb', 'ext/**/*.c')
end
desc 'Run specs'
task :spec => :compile do
$LOAD_PATH.unshift('lib', 'spec')
Dir.glob('./spec/**/*_spec.rb') { |f| require f }
end
task :default => :spec