sabman / spatial_adapter2

spatial_adapter with geo_generators

This URL has Read+Write access

sabman (author)
Sat Mar 01 22:51:29 -0800 2008
spatial_adapter2 / rakefile.rb
100644 36 lines (30 sloc) 0.849 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
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 = 'spatialadapter-doc/'
  rdoc.title = "MySql Spatial Adapater for Rails Documentation"
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end