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: e49c16a53afd0537f375be4d46940f25bdde63b998d430d2c5f874a11bc63db0
4
- data.tar.gz: b5343a0e8790a65b76e3d74177e0cee4ddca51e1538fe17c7fb1506db691834c
3
+ metadata.gz: b7f31291d3a3bac2b1ebe80cd26338922c4a5f1ec7df74fee00a2584e6540800
4
+ data.tar.gz: b2d85cda7e6d77806f8bce76cc9fa7bff74be5955e769bd263a307ad93736ee0
5
5
  SHA512:
6
- metadata.gz: 0fb4fa64b34f707cffdb9f8e2d6b9366013250aae1550229e65d684ca57b69d0959b5ae791df04fbe5cb3a611c505db5956d91a848c32746fa6b337bea33e973
7
- data.tar.gz: d206ab27ba8dd26cebfe31a69908fb6803a2ceb16657090126abae2c9c274721d6ca4fbc10c09ef16b292d938be9dd47b36f2609ba5fb4111d0d23e8de7c03dd
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.size > 1
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
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
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module ConnectionAdapters
3
3
  module PostGIS
4
- VERSION = "4.1.1"
4
+ VERSION = "4.1.2"
5
5
  end
6
6
  end
7
7
  end
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.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: 2017-12-24 00:00:00.000000000 Z
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.0
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.