forked from pdeffendol/spatial_adapter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
40 lines (35 loc) · 1.16 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
require 'rubygems'
require 'spec/rake/spectask'
[:mysql, :postgresql].each do |adapter|
desc "Run specs for #{adapter} adapter"
Spec::Rake::SpecTask.new("spec:#{adapter.to_s}") do |t|
t.spec_files = FileList["spec/#{adapter}/*_spec.rb"]
end
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "spatial_adapter"
gem.summary = "Spatial Adapter for ActiveRecord"
gem.description = "Provides enhancements to ActiveRecord to handle spatial datatypes in PostgreSQL and MySQL."
gem.authors = ["Pete Deffendol", "Guilhem Vellut"]
gem.email = "pete@fragility.us"
gem.homepage = "http://github.com/fragility/spatial_adapter"
gem.files = FileList[
"rails/*.rb",
"lib/**/*.rb",
"MIT-LICENSE",
"README.rdoc",
"VERSION"
]
gem.test_files = FileList[
"spec/**/*.rb",
"spec/README.txt"
]
gem.add_dependency 'activerecord', '>= 2.2.2'
gem.add_dependency 'GeoRuby', '>= 1.3.0'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "WARNING: Jeweler is not available for building packages. Install it with: gem install jeweler"
end