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: a36aaf405da9a1fd4cc773af8bd16504dfbc482ca2c80f0a5a941fbf1d428b7f
4
- data.tar.gz: 85fde301aa11100d590e24614b9598f5e5376f2e14a9878277c81d68754484b2
3
+ metadata.gz: b2575c4737840ea81feaba17b0acc313c0e85a75acae5ffba257437057e41e15
4
+ data.tar.gz: f77aa6f4a11a01e1be968c156ddb0b743f5bae71a96022c77a36cc7e03599129
5
5
  SHA512:
6
- metadata.gz: a07174891bc9836f90b1118cf21fe5a400c71f05d42ca19e7efd8c707b2f40632cdc83b0150c0823525f98d498849516b532e21c6105445b30b3ea0411bf74d0
7
- data.tar.gz: 4ecaee8b53358240ecb2d07a2b0665179bb6735f19ccb2d532c4ac5d2c4801a6ed946ccde69a0c13dccca5d7ce9900f6ced77a48345f398ca9cbe0c6ec6bb4ed
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.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]
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]
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module ConnectionAdapters
3
3
  module PostGIS
4
- VERSION = "5.2.0"
4
+ VERSION = "5.2.1"
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: 5.2.0
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: 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.