public
Description: Pomegranate is a Ruby library for inferencing over a corpus of triples with RDFS and OWL properties.
Homepage: http://pius.github.com/pomegranate
Clone URL: git://github.com/pius/pomegranate.git
pomegranate / Rakefile
100644 22 lines (19 sloc) 0.638 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'rubygems'
require 'spec'
require 'rake/clean'
require 'spec/rake/spectask'
require 'pathname'
 
task :default => [ :spec ]
 
desc 'Run specifications'
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
  t.spec_files = Pathname.glob(Pathname.new(__FILE__).dirname + 'spec/**/*_spec.rb')
 
  begin
    t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
    t.rcov_opts << '--exclude' << 'spec'
    t.rcov_opts << '--text-summary'
    t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
  rescue Exception
    # rcov not installed
  end
end