-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile.rb
More file actions
65 lines (51 loc) · 1.73 KB
/
Copy pathrakefile.rb
File metadata and controls
65 lines (51 loc) · 1.73 KB
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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
#require 'rake/clean'
$: << 'lib'
require 'OSM'
task :default => :test
desc "Run the tests"
Rake::TestTask::new do |t|
t.test_files = FileList['test/test_*.rb']
t.verbose = true
end
desc 'Measures test coverage'
task :rcov do
rm_f "coverage"
system("rcov test/test_*rb")
end
desc "Generate the documentation"
Rake::RDocTask::new do |rdoc|
rdoc.rdoc_dir = 'rdoc/'
rdoc.title = "OSM Library Documentation - Base"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files = FileList['README.txt', 'examples/README.txt', 'lib/**/*.rb']
end
spec = Gem::Specification::new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'osmlib-base'
s.version = OSM::VERSION
s.summary = 'Library for basic OpenStreetMap data handling'
s.description = <<EOF
Basic support for OpenStreetMap data model (Nodes, Ways, Relations and Tags). Parsing of OSM XML files. Access to OpenStreetMap API.
EOF
s.author = 'Jochen Topf'
s.email = 'jochen@topf.org'
s.homepage = 'osmlib.rubyforge.org'
s.rubyforge_project = 'osmlib'
s.require_path = 'lib'
s.test_files = FileList['test/test*.rb']
s.has_rdoc = true
s.extra_rdoc_files = ['README.txt', 'examples/README.txt']
s.files = FileList['lib/**/*.rb', 'LICENSE', 'rakefile.rb', 'examples/*'] + s.test_files + s.extra_rdoc_files
s.rdoc_options.concat ['--main', 'README.txt']
# commented out because this doesn't work when libxml-ruby is installed as a Debian package
#s.add_dependency('libxml-ruby')
end
desc "Package the library as a gem"
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end