forked from nofxx/postgis_adapter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
166 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
=== 1.0.0 / 2008-12-10 | ||
|
||
* 1 major enhancement | ||
|
||
* Birthday! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
History.txt | ||
MIT-LICENSE | ||
Manifest.txt | ||
README.markdown | ||
Rakefile | ||
init.rb | ||
install.rb | ||
lib/postgis_adapter.rb | ||
lib/postgis_adapter/acts_as_geom.rb | ||
lib/postgis_adapter/common_spatial_adapter.rb | ||
lib/postgis_functions.rb | ||
lib/postgis_functions/bbox.rb | ||
lib/postgis_functions/class.rb | ||
lib/postgis_functions/common.rb | ||
lib/postgis_functions/linestring.rb | ||
lib/postgis_functions/point.rb | ||
lib/postgis_functions/polygon.rb | ||
postgis_adapter.gemspec | ||
rails/init.rb | ||
script/console | ||
script/destroy | ||
script/generate | ||
spec/acts_as_geom_spec.rb | ||
spec/common_spatial_adapter_spec.rb | ||
spec/db/database_postgis.yml | ||
spec/db/models_postgis.rb | ||
spec/db/schema_postgis.rb | ||
spec/postgis_adapter_spec.rb | ||
spec/postgis_functions/bbox_spec.rb | ||
spec/postgis_functions/linestring_spec.rb | ||
spec/postgis_functions/point_spec.rb | ||
spec/postgis_functions/polygon_spec.rb | ||
spec/postgis_functions_spec.rb | ||
spec/spec.opts | ||
spec/spec_helper.rb | ||
uninstall.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
class SpatialAdapterNotCompatibleError < StandardError | ||
end | ||
|
||
unless ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' | ||
raise SpatialAdapterNotCompatibleError. | ||
new("Only PostgreSQL with PostGIS is supported by the postgis adapter plugin.") | ||
end | ||
require 'postgis_adapter' | ||
require File.dirname(__FILE__) + "/rails/init" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{postgis_adapter} | ||
s.version = "0.1.1" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Marcos Piccinini"] | ||
s.date = %q{2008-12-10} | ||
s.description = %q{Postgis Adapter for Activer Record} | ||
s.email = ["x@nofxx.com"] | ||
s.extra_rdoc_files = ["History.txt", "Manifest.txt"] | ||
s.files = ["History.txt", "MIT-LICENSE", "Manifest.txt", "README.markdown", "Rakefile", "init.rb", "install.rb", "lib/postgis_adapter.rb", "lib/postgis_adapter/acts_as_geom.rb", "lib/postgis_adapter/common_spatial_adapter.rb", "lib/postgis_functions.rb", "lib/postgis_functions/bbox.rb", "lib/postgis_functions/class.rb", "lib/postgis_functions/common.rb", "lib/postgis_functions/linestring.rb", "lib/postgis_functions/point.rb", "lib/postgis_functions/polygon.rb", "postgis_adapter.gemspec", "rails/init.rb", "script/console", "script/destroy", "script/generate", "spec/acts_as_geom_spec.rb", "spec/common_spatial_adapter_spec.rb", "spec/db/database_postgis.yml", "spec/db/models_postgis.rb", "spec/db/schema_postgis.rb", "spec/postgis_adapter_spec.rb", "spec/postgis_functions/bbox_spec.rb", "spec/postgis_functions/linestring_spec.rb", "spec/postgis_functions/point_spec.rb", "spec/postgis_functions/polygon_spec.rb", "spec/postgis_functions_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "uninstall.rb"] | ||
s.has_rdoc = true | ||
s.homepage = %q{http://github.com/nofxx/postgis_adapter} | ||
s.rdoc_options = ["--main", "README.markdown"] | ||
s.require_paths = ["lib"] | ||
s.rubyforge_project = %q{postgis_adapter} | ||
s.rubygems_version = %q{1.3.1} | ||
s.summary = %q{Postgis Adapter for Activer Record} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 2 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
s.add_runtime_dependency(%q<activerecord>, [">= 2.0.2"]) | ||
s.add_development_dependency(%q<newgem>, [">= 1.1.0"]) | ||
s.add_development_dependency(%q<hoe>, [">= 1.8.0"]) | ||
else | ||
s.add_dependency(%q<activerecord>, [">= 2.0.2"]) | ||
s.add_dependency(%q<newgem>, [">= 1.1.0"]) | ||
s.add_dependency(%q<hoe>, [">= 1.8.0"]) | ||
end | ||
else | ||
s.add_dependency(%q<activerecord>, [">= 2.0.2"]) | ||
s.add_dependency(%q<newgem>, [">= 1.1.0"]) | ||
s.add_dependency(%q<hoe>, [">= 1.8.0"]) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class SpatialAdapterNotCompatibleError < StandardError | ||
end | ||
|
||
unless ActiveRecord::Base.connection.adapter_name == 'PostgreSQL' | ||
raise SpatialAdapterNotCompatibleError. | ||
new("Only PostgreSQL with PostGIS is supported by the postgis adapter plugin.") | ||
end | ||
require 'postgis_adapter' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env ruby | ||
# File: script/console | ||
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb' | ||
|
||
libs = " -r irb/completion" | ||
# Perhaps use a console_lib to store any extra methods I may want available in the cosole | ||
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}" | ||
libs << " -r #{File.dirname(__FILE__) + '/../lib/postgis_adapter.rb'}" | ||
puts "Loading postgis_adapter gem" | ||
exec "#{irb} #{libs} --simple-prompt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
|
||
begin | ||
require 'rubigen' | ||
rescue LoadError | ||
require 'rubygems' | ||
require 'rubigen' | ||
end | ||
require 'rubigen/scripts/destroy' | ||
|
||
ARGV.shift if ['--help', '-h'].include?(ARGV[0]) | ||
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit] | ||
RubiGen::Scripts::Destroy.new.run(ARGV) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
|
||
begin | ||
require 'rubigen' | ||
rescue LoadError | ||
require 'rubygems' | ||
require 'rubigen' | ||
end | ||
require 'rubigen/scripts/generate' | ||
|
||
ARGV.shift if ['--help', '-h'].include?(ARGV[0]) | ||
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit] | ||
RubiGen::Scripts::Generate.new.run(ARGV) |