dr-postgis_adapter 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -10,7 +10,7 @@ GIT
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- dr-postgis_adapter (0.8.2)
13
+ dr-postgis_adapter (0.8.3)
14
14
  nofxx-georuby
15
15
  rake
16
16
 
@@ -89,7 +89,7 @@ ActiveRecord::Base.class_eval do
89
89
  else
90
90
  "#{quoted_column_name} BETWEEN ? AND ?"
91
91
  end
92
- else
92
+ else
93
93
  "#{quoted_column_name} = ?"
94
94
  end
95
95
  end
@@ -97,13 +97,13 @@ ActiveRecord::Base.class_eval do
97
97
  sanitize_sql_hash_for_conditions(value, connection.quote_table_name(attr.to_s))
98
98
  end
99
99
  end.join(' AND ')
100
-
100
+
101
101
  replace_bind_variables(conditions, expand_range_bind_variables(attrs.values))
102
102
  end
103
103
  else
104
104
  raise "Spatial Adapter will not work with this version of Rails"
105
105
  end
106
-
106
+
107
107
  end
108
108
 
109
109
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
@@ -226,7 +226,7 @@ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
226
226
  def add_index(table_name, column_name, options = {})
227
227
  index_name = options[:name] || index_name(table_name,:column => Array(column_name))
228
228
  if options[:spatial]
229
- execute "CREATE INDEX #{index_name} ON #{table_name} USING GIST (#{Array(column_name).join(", ")} GIST_GEOMETRY_OPS)"
229
+ execute "CREATE INDEX #{index_name} ON #{table_name} USING GIST (#{Array(column_name).join(", ")} )"
230
230
  else
231
231
  super
232
232
  end
Binary file
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'dr-postgis_adapter'
3
- spec.version = '0.8.2'
3
+ spec.version = '0.8.3'
4
4
  spec.authors = ['Marcos Piccinini', 'Luc Donnet', 'Marc Florisson']
5
5
  spec.summary = 'PostGIS Adapter for Active Record'
6
6
  spec.email = 'x@nofxx.com, luc.donnet@free.fr, mflorisson@gmail.com'
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.extra_rdoc_files = ['README.rdoc']
15
15
 
16
16
  spec.add_dependency 'nofxx-georuby'
17
- spec.add_dependency 'rake'
17
+ spec.add_dependency 'rake'
18
18
 
19
19
  spec.description = 'Execute PostGIS functions on Active Record'
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dr-postgis_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -52,35 +52,34 @@ extensions: []
52
52
  extra_rdoc_files:
53
53
  - README.rdoc
54
54
  files:
55
- - rails/init.rb
55
+ - Gemfile
56
+ - Gemfile.lock
56
57
  - History.txt
57
- - lib/postgis_adapter/common_spatial_adapter.rb
58
- - lib/postgis_adapter/functions.rb
59
- - lib/postgis_adapter/railtie.rb
60
58
  - lib/postgis_adapter/acts_as_geom.rb
59
+ - lib/postgis_adapter/common_spatial_adapter.rb
60
+ - lib/postgis_adapter/functions/bbox.rb
61
61
  - lib/postgis_adapter/functions/class.rb
62
62
  - lib/postgis_adapter/functions/common.rb
63
- - lib/postgis_adapter/functions/bbox.rb
63
+ - lib/postgis_adapter/functions.rb
64
64
  - lib/postgis_adapter/init.rb
65
+ - lib/postgis_adapter/railtie.rb
65
66
  - lib/postgis_adapter.rb
66
- - pkg/dr-postgis_adapter-0.8.2.gem
67
- - pkg/dr-postgis_adapter-0.8.1.gem
68
- - Gemfile.lock
67
+ - MIT-LICENSE
68
+ - pkg/dr-postgis_adapter-0.8.3.gem
69
+ - postgis_adapter.gemspec
70
+ - rails/init.rb
69
71
  - Rakefile
72
+ - README.rdoc
73
+ - spec/db/models_postgis.rb
74
+ - spec/db/schema_postgis.rb
70
75
  - spec/postgis_adapter/acts_as_geom_spec.rb
71
76
  - spec/postgis_adapter/common_spatial_adapter_spec.rb
72
- - spec/postgis_adapter/functions_spec.rb
73
77
  - spec/postgis_adapter/functions/bbox_spec.rb
74
- - spec/postgis_adapter/functions/common_spec.rb
75
78
  - spec/postgis_adapter/functions/class_spec.rb
76
- - spec/spec_helper.rb
79
+ - spec/postgis_adapter/functions/common_spec.rb
80
+ - spec/postgis_adapter/functions_spec.rb
77
81
  - spec/postgis_adapter_spec.rb
78
- - spec/db/schema_postgis.rb
79
- - spec/db/models_postgis.rb
80
- - README.rdoc
81
- - postgis_adapter.gemspec
82
- - Gemfile
83
- - MIT-LICENSE
82
+ - spec/spec_helper.rb
84
83
  homepage: http://github.com/dryade/postgis_adapter
85
84
  licenses: []
86
85
  post_install_message:
@@ -96,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
95
  version: '0'
97
96
  segments:
98
97
  - 0
99
- hash: -1634584793791860567
98
+ hash: -4083219340546474572
100
99
  required_rubygems_version: !ruby/object:Gem::Requirement
101
100
  none: false
102
101
  requirements:
@@ -105,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
104
  version: '0'
106
105
  segments:
107
106
  - 0
108
- hash: -1634584793791860567
107
+ hash: -4083219340546474572
109
108
  requirements: []
110
109
  rubyforge_project: postgis_adapter
111
110
  rubygems_version: 1.8.23
@@ -113,13 +112,13 @@ signing_key:
113
112
  specification_version: 3
114
113
  summary: PostGIS Adapter for Active Record
115
114
  test_files:
115
+ - spec/db/models_postgis.rb
116
+ - spec/db/schema_postgis.rb
116
117
  - spec/postgis_adapter/acts_as_geom_spec.rb
117
118
  - spec/postgis_adapter/common_spatial_adapter_spec.rb
118
- - spec/postgis_adapter/functions_spec.rb
119
119
  - spec/postgis_adapter/functions/bbox_spec.rb
120
- - spec/postgis_adapter/functions/common_spec.rb
121
120
  - spec/postgis_adapter/functions/class_spec.rb
122
- - spec/spec_helper.rb
121
+ - spec/postgis_adapter/functions/common_spec.rb
122
+ - spec/postgis_adapter/functions_spec.rb
123
123
  - spec/postgis_adapter_spec.rb
124
- - spec/db/schema_postgis.rb
125
- - spec/db/models_postgis.rb
124
+ - spec/spec_helper.rb
Binary file
Binary file