postgres_ext-postgis 0.0.5 → 0.0.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e706507f13ca6fab29f8149ba2602cd7db3fa3b
4
- data.tar.gz: f20e89d32e6c79ba09bfdbde445b8db66e99756b
3
+ metadata.gz: 2bd1eecd2969d11c3a78842043989c1f43bf0e3b
4
+ data.tar.gz: 9e657f1c97ba3319e6606db148bf3d1a3faa4204
5
5
  SHA512:
6
- metadata.gz: 97d68faeddbd2314dc823d202b4f9b4cf3ad0ef6f3d9aae1f6ea17e99a5c06e406fd036ebf6f2e62c8f6040c2f3c3942ba07b874f6aa3ec10001b339305b7b72
7
- data.tar.gz: 5d3b8aba42f5d1c530fd24e00f885e5ab029ef5082e030f9f7ee5bf8944a0aada39caa60bafa384be8ece64898b65065979ea57423b4291a33ef0c3a18d0d16a
6
+ metadata.gz: 92d28e274fefdfc8a3a76a3dc883d083bb01a6359f73e7456e5fe47019126c19090bdea0df841c9b62c61caabb9ce2e971ec28f020de5ab27eb2a7a3b09d3c79
7
+ data.tar.gz: 6cd502f552c0f67a2e11d3da414ad9737549ee0f329b3160c4c1823ecce21d54d1977b9d195ee1bec042e1afbce781d3fe09bfb447bf7034642e0698a6db1737
@@ -66,7 +66,7 @@ module PostgresExt::Postgis::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
66
66
 
67
67
  module Quoting
68
68
  def quote(value, column = nil)
69
- if column && column.type == :geometry
69
+ if column && (column.type == :geometry || column.type == :geography)
70
70
  ActiveRecord::ConnectionAdapters::PostgreSQLColumn.geometry_to_string(value)
71
71
  else
72
72
  super
@@ -78,7 +78,7 @@ module PostgresExt::Postgis::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
78
78
 
79
79
  case value
80
80
  when RGeo::Feature::Instance
81
- return super unless /geometry/ =~ column.sql_type
81
+ return super unless /geometry|geography/ =~ column.sql_type
82
82
  ActiveRecord::ConnectionAdapters::PostgreSQLColumn.geometry_to_string(value)
83
83
  else
84
84
  super
@@ -1,5 +1,5 @@
1
1
  module PostgresExt
2
2
  module Postgis
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postgres_ext-postgis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan McClain