activerecord-postgis-adapter 5.2.0 → 5.2.1
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: b2575c4737840ea81feaba17b0acc313c0e85a75acae5ffba257437057e41e15
|
4
|
+
data.tar.gz: f77aa6f4a11a01e1be968c156ddb0b743f5bae71a96022c77a36cc7e03599129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26c3e43c3a9f986811fa9f85272b76bc4fb396b408cffd1e480586bfef4a13401c1e44f6be3ce5162c980b31f95b01d81ed28740de79ff9866db454b863db6a8
|
7
|
+
data.tar.gz: 2b12969c401226ed98b120e11566439ffbed2c3d4c96b9a0dbe63bd5083313723252588cb27f1a09abda7640f9999b100205b7a9456314947be795ca11ceaa2a
|
@@ -25,23 +25,20 @@ module ActiveRecord
|
|
25
25
|
geo_type, srid, has_z, has_m = nil, 0, false, false
|
26
26
|
|
27
27
|
if sql_type =~ /(geography|geometry)\((.*)\)$/i
|
28
|
+
# geometry(Point)
|
28
29
|
# geometry(Point,4326)
|
29
30
|
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]
|
31
|
+
if params.first =~ /([a-z]+[^zm])(z?)(m?)/i
|
32
|
+
has_z = Regexp.last_match(2).length > 0
|
33
|
+
has_m = Regexp.last_match(3).length > 0
|
34
|
+
geo_type = Regexp.last_match(1)
|
35
|
+
end
|
36
|
+
if params.last =~ /(\d+)/
|
37
|
+
srid = Regexp.last_match(1).to_i
|
42
38
|
end
|
43
39
|
else
|
44
40
|
# geometry
|
41
|
+
# otherType(a,b)
|
45
42
|
geo_type = sql_type
|
46
43
|
end
|
47
44
|
[geo_type, srid, has_z, has_m]
|
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: 5.2.
|
4
|
+
version: 5.2.1
|
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.
|