forked from ActiveRDF/ActiveRDF
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
74 lines (66 loc) · 2.13 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rdoc/task'
require 'fileutils'
include FileUtils
require_relative 'tools/rakehelp'
$version = IO.read('VERSION').strip
$name = 'activerdf'
$distdir = "#$name-#$version"
setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]
Rake::RDocTask.new do |rdoc|
files = ['README', 'LICENSE', 'lib/**/*.rb', 'doc/**/*.rdoc', 'test/*.rb']
files << 'activerdf-*/lib/**/*.rb'
rdoc.rdoc_files.add(files)
rdoc.main = "README"
rdoc.title = "ActiveRDF documentation"
rdoc.template = "tools/allison/allison.rb"
rdoc.rdoc_dir = 'doc'
rdoc.options << '--line-numbers' << '--inline-source'
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = 'activerdf'
gemspec.summary = 'Offers object-oriented access to RDF (with adapters to several datastores).'
gemspec.description = gemspec.summary
gemspec.authors = ['Michael Diamond', 'Eyal Oren', 'The Talia Team']
gemspec.email = '[email protected]'
gemspec.homepage = 'http://www.activerdf.org'
gemspec.platform = Gem::Platform::RUBY
gemspec.autorequire = 'active_rdf'
gemspec.files = FileList["lib/**/*", "activerdf-*/**/*"]
gemspec.extra_rdoc_files = ["README.rdoc", "CHANGELOG", "LICENSE"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dendency) is not available. Install with: gem install jeweler"
end
begin
require 'gokdok'
Gokdok::Dokker.new do |gd|
gd.remote_path = '' # Put into the root directory
gd.doc_home = 'doc'
end
rescue LoadError
puts "Gokdok is not available. Install with: gem install gokdok"
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.test_files = FileList.new("test/**/*.rb", "activerdf-*/test/**/*.rb") do |fl|
fl.exclude(/jena|sesame|sparql/i)
end
t.verbose = true
end
rescue LoadError
puts 'Rcov or dependency is not available'
end
# define test_all task
Rake::TestTask.new do |t|
t.libs << "test"
t.libs.concat FileList.new("activerdf-*/lib")
t.test_files = FileList.new("test/**/*.rb", "activerdf-*/test/**/*.rb")
# t.test_files.exclude(/jena|sesame|sparql/i)
end