forked from pdeffendol/spatial_adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrakefile.rb
36 lines (31 loc) · 942 Bytes
/
rakefile.rb
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
$:.unshift(File.join(File.dirname(__FILE__) ,'../../gems/georuby/lib/'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
namespace :test do
Rake::TestTask::new(:mysql => "db:mysql" ) do |t|
t.test_files = FileList['test/*_mysql_test.rb']
t.verbose = true
end
Rake::TestTask::new(:postgis => "db:postgis" ) do |t|
t.test_files = FileList['test/*_postgis_test.rb']
t.verbose = true
end
end
namespace :db do
task :mysql do
load('test/schema/schema_mysql.rb')
end
task :postgis do
load('test/schema/schema_postgis.rb')
end
end
desc "Generate the documentation"
Rake::RDocTask::new do |rdoc|
rdoc.rdoc_dir = 'doc/'
rdoc.title = "Spatial Adapater for Rails Documentation"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end