postgis_adapter 0.7.9 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,23 +103,25 @@ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
103
103
  include SpatialAdapter
104
104
 
105
105
  # SCHEMA STATEMENTS ========================================
106
-
107
- alias :original_recreate_database :recreate_database
108
- def recreate_database(configuration, enc_option)
109
- `dropdb -U "#{configuration["test"]["username"]}" #{configuration["test"]["database"]}`
110
- `createdb #{enc_option} -U "#{configuration["test"]["username"]}" #{configuration["test"]["database"]}`
111
- `createlang -U "#{configuration["test"]["username"]}" plpgsql #{configuration["test"]["database"]}`
112
- `psql -d #{configuration["test"]["database"]} -f db/spatial/postgis.sql`
113
- `psql -d #{configuration["test"]["database"]} -f db/spatial/spatial_ref_sys.sql`
114
- end
115
-
116
- alias :original_create_database :create_database
117
- def create_database(name, options = {})
118
- original_create_database(name, options = {})
119
- `createlang plpgsql #{name}`
120
- `psql -d #{name} -f db/spatial/postgis.sql`
121
- `psql -d #{name} -f db/spatial/spatial_ref_sys.sql`
122
- end
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'postgis_adapter'
3
- spec.version = '0.7.9'
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 'GeoRuby'
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.7.9
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-05 00:00:00 -03:00
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: GeoRuby
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"