-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
37 lines (30 loc) · 885 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
require 'rake/extensiontask'
require 'rspec/core/rake_task'
Rake::ExtensionTask.new('lib_uuid') do |ext|
ext.ext_dir = 'ext'
end
RSpec::Core::RakeTask.new(:spec => [:clean, :compile])
desc 'Valgrind functional specs'
task :valgrind do
opts = %W(
--partial-loads-ok=yes
--undef-value-errors=no
--leak-check=full
)
sh *['valgrind', opts, 'rspec', 'spec/uuid_spec.rb'].flatten
end
task :default => :spec
begin
require 'rubygems'
require 'rake'
require 'echoe'
Echoe.new('libuuidrb', '0.1.0') do |p|
p.author = 'Sebastian Ohm'
p.url = 'http://github.com/ohm/libuuidrb'
p.description = 'libuuidrb uses libuuid to generate DCE compatible universally unique identifiers'
p.ignore_pattern = ['tmp/*', 'script/*', 'benchmark/*']
p.development_dependencies = []
end
rescue LoadError => le
puts "#{le.message}"
end