postgis_adapter 0.7.9 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/postgis_adapter.rb +19 -17
- data/postgis_adapter.gemspec +2 -2
- metadata +3 -5
- data/VERSION +0 -1
- data/init.rb +0 -1
data/lib/postgis_adapter.rb
CHANGED
@@ -103,23 +103,25 @@ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
|
|
103
103
|
include SpatialAdapter
|
104
104
|
|
105
105
|
# SCHEMA STATEMENTS ========================================
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
106
|
+
#
|
107
|
+
# Use :template on database.yml seems a better practice.
|
108
|
+
#
|
109
|
+
# alias :original_recreate_database :recreate_database
|
110
|
+
# def recreate_database(configuration, enc_option)
|
111
|
+
# `dropdb -U "#{configuration["test"]["username"]}" #{configuration["test"]["database"]}`
|
112
|
+
# `createdb #{enc_option} -U "#{configuration["test"]["username"]}" #{configuration["test"]["database"]}`
|
113
|
+
# `createlang -U "#{configuration["test"]["username"]}" plpgsql #{configuration["test"]["database"]}`
|
114
|
+
# `psql -d #{configuration["test"]["database"]} -f db/spatial/postgis.sql`
|
115
|
+
# `psql -d #{configuration["test"]["database"]} -f db/spatial/spatial_ref_sys.sql`
|
116
|
+
# end
|
117
|
+
|
118
|
+
# alias :original_create_database :create_database
|
119
|
+
# def create_database(name, options = {})
|
120
|
+
# original_create_database(name, options = {})
|
121
|
+
# `createlang plpgsql #{name}`
|
122
|
+
# `psql -d #{name} -f db/spatial/postgis.sql`
|
123
|
+
# `psql -d #{name} -f db/spatial/spatial_ref_sys.sql`
|
124
|
+
# end
|
123
125
|
|
124
126
|
alias :original_native_database_types :native_database_types
|
125
127
|
def native_database_types
|
data/postgis_adapter.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'postgis_adapter'
|
3
|
-
spec.version = '0.
|
3
|
+
spec.version = '0.8.0'
|
4
4
|
spec.authors = ['Marcos Piccinini']
|
5
5
|
spec.summary = 'PostGIS Adapter for Active Record'
|
6
6
|
spec.email = 'x@nofxx.com'
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.test_files = Dir['spec/**/*.rb']
|
14
14
|
spec.extra_rdoc_files = ['README.rdoc']
|
15
15
|
|
16
|
-
spec.add_dependency '
|
16
|
+
spec.add_dependency 'nofxx-georuby'
|
17
17
|
|
18
18
|
spec.description = 'Execute PostGIS functions on Active Record'
|
19
19
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: postgis_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.8.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Marcos Piccinini
|
@@ -10,11 +10,11 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-08 00:00:00 -03:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
17
|
+
name: nofxx-georuby
|
18
18
|
prerelease: false
|
19
19
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
@@ -56,10 +56,8 @@ files:
|
|
56
56
|
- MIT-LICENSE
|
57
57
|
- rails/init.rb
|
58
58
|
- Rakefile
|
59
|
-
- VERSION
|
60
59
|
- README.rdoc
|
61
60
|
- Gemfile
|
62
|
-
- init.rb
|
63
61
|
- History.txt
|
64
62
|
has_rdoc: true
|
65
63
|
homepage: http://github.com/nofxx/postgis_adapter
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.7.9
|
data/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + "/rails/init"
|