spatial_features 1.4.7 → 1.4.8

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: d3efc2d6c406b0428852a67e4773ef4991b6ebe7
4
- data.tar.gz: c8c95001752f7b34467e9fd54637d89b627b2373
3
+ metadata.gz: 83d7a1f2ccb9d711d6afcd7040a791988aec3598
4
+ data.tar.gz: a3622bd27b8450bde182b385879baf135f8b33e5
5
5
  SHA512:
6
- metadata.gz: 0dda0b1e79fffd25931b7b3cc0ae9a32de9524debadfd26b3cd8bdcd2252ecb8655e6de5c3f4d458c589cad7589e7a062a1b556df112e6017013739a15504270
7
- data.tar.gz: 992838a271527d54765386d31ec536d1baa1355812808260cd69190d637258b68a5c2000de99aec931925b55a635ce76c976f7a356cc5542cb6f58b3dc794305
6
+ metadata.gz: 5f2ecfb1b6107b69a3818bb2c467412426cc34676a78efdc0adb504e9fc138a973821612b69e2e53bfe15a2206d96f2d87ebb0bf8cf54752283058a52eba56dd
7
+ data.tar.gz: 2b6744fb0dab5b44ab070d191d1ca5376f5854ad1d679400e9efbbc13521aab88ccd0a8457a9730c7e8b5c48c9d4fdf0776e6863abb5730b65c5e65150dde484
@@ -1,5 +1,9 @@
1
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.tap do |klass|
2
- # Use identity which does no casting
3
- # klass::OID.register_type('geography', klass::OID::Identity.new)
4
- # klass::OID.register_type('geometry', klass::OID::Identity.new)
1
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
2
+ def initialize_type_map_with_postgres_oids mapping
3
+ initialize_type_map_without_postgres_oids mapping
4
+ register_class_with_limit mapping, 'geometry', ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::SpecializedString
5
+ register_class_with_limit mapping, 'geography', ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::SpecializedString
6
+ end
7
+
8
+ alias_method_chain :initialize_type_map, :postgres_oids
5
9
  end
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "1.4.7"
2
+ VERSION = "1.4.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spatial_features
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-20 00:00:00.000000000 Z
12
+ date: 2016-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails