activerecord-postgis-adapter 4.1.1 → 4.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7f31291d3a3bac2b1ebe80cd26338922c4a5f1ec7df74fee00a2584e6540800
|
4
|
+
data.tar.gz: b2d85cda7e6d77806f8bce76cc9fa7bff74be5955e769bd263a307ad93736ee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 047ed7b22f3ed708e9a2bd4c61c89f5ee9a0b816cf95a92d3edfb0337408b59e3582c21fae299269bda70ca814f6e69e62139ca8928780b2ff738df2a52b528e
|
7
|
+
data.tar.gz: 1425b7e58930b20a9c48d3c9f089a8fdbf85a5248bd96fc8b0e9f0d680a634ba3dee22b8b0b1499ce00db033df37634a67bab3e9bb07b0946e96433b080a1d03
|
@@ -27,18 +27,13 @@ module ActiveRecord
|
|
27
27
|
if sql_type =~ /(geography|geometry)\((.*)\)$/i
|
28
28
|
# geometry(Point,4326)
|
29
29
|
params = Regexp.last_match(2).split(",")
|
30
|
-
if params.
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
srid = Regexp.last_match(1).to_i
|
38
|
-
end
|
39
|
-
else
|
40
|
-
# geometry(Point)
|
41
|
-
geo_type = params[0]
|
30
|
+
if params.first =~ /([a-z]+[^zm])(z?)(m?)/i
|
31
|
+
has_z = Regexp.last_match(2).length > 0
|
32
|
+
has_m = Regexp.last_match(3).length > 0
|
33
|
+
geo_type = Regexp.last_match(1)
|
34
|
+
end
|
35
|
+
if params.last =~ /(\d+)/
|
36
|
+
srid = Regexp.last_match(1).to_i
|
42
37
|
end
|
43
38
|
else
|
44
39
|
# geometry
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-postgis-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma, Tee Parham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.7.
|
141
|
+
rubygems_version: 2.7.6
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: ActiveRecord adapter for PostGIS, based on RGeo.
|