public
Fork of fragility/spatial_adapter
Description: Miscellaneous PostgreSQL-related changes to Spatial Adapter
Homepage: http://georuby.rubyforge.org/
Clone URL: git://github.com/melriffe/spatial_adapter.git
Mel Riffe (author)
Mon Aug 04 10:56:45 -0700 2008
commit  9b559a1fba884b9536c3f60c197164eda79f7309
tree    6a69604443a66f250b63042f8287834304800275
parent  816b2637518191375b7dfbbc09506db68b7e5797
spatial_adapter / rakefile.rb
100644 37 lines (31 sloc) 0.958 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
$:.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 = '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