geocode_records 1.1.2 → 1.1.3

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
  SHA1:
3
- metadata.gz: e306eee237615f69d7580cc6a245bf23766c3396
4
- data.tar.gz: 6824133fe7beaa511e33ee6ce7a0160fe1b08a4d
3
+ metadata.gz: a895a090a8b5d022953b811691a6e8b4caec813b
4
+ data.tar.gz: a29e9e2f6a3d926edcdd0c3152fe9d257cdb371f
5
5
  SHA512:
6
- metadata.gz: 51d9e3d00efd93895dbbd94699cbdf95bce45db2f93e5ec0479e04b1b2e3c38a22ffac70b6dd731bddde77f4032f91a9e49da98e8326732262495a752064b708
7
- data.tar.gz: 198b8e4790376b65e8cee69dfbe697333b5cb1455132196da090519ca586220ddd4d6a810aa9cd3572d4aa0d94dc4b00b405000e59c591f097f2f5ae6789c7ee
6
+ metadata.gz: 30d88e8e7121c28fa5f81cb32037f1f596411c7c4d40762d8f44c92f6a442cd57fb6bbaf941d29aaf229cb7d7ee39d6ddd819ee3d075db67dc7077c214bdb50a
7
+ data.tar.gz: '093ccaa9d2279430a359f080f66f4675583c7c649af6ac60432628bc9b8b210fc436ea4c58ded0cafe1288e86506e3708cc73a45972b3a009b146fd21b1d33b9'
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 1.1.3 / 2018-01-23
2
+
3
+ * Bug fixes
4
+
5
+ * Fix sql for house number
6
+
1
7
  1.1.2 / 2018-01-23
2
8
 
3
9
  * Enhancements
@@ -38,9 +38,9 @@ class GeocodeRecords
38
38
  WHEN src.ss_primary_number IS NULL THEN NULL
39
39
  WHEN LENGTH(src.ss_primary_number) > 8 THEN NULL
40
40
  WHEN src.ss_primary_number ~ '\\A\\d+\\Z' THEN src.ss_primary_number::int
41
- WHEN src.ss_primary_number ~ '/' THEN (regexp_matches(src.ss_primary_number, '(\\d+)'))[1]::int
41
+ WHEN src.ss_primary_number ~ '/' THEN (SELECT regexp_matches(src.ss_primary_number, '(\\d+)'))[1]::int
42
42
  WHEN src.ss_primary_number ~ '-' THEN (SELECT ROUND(AVG(v)) FROM unnest(array_remove(regexp_split_to_array(src.ss_primary_number, '\\D+'), '')::int[]) v)
43
- ELSE (regexp_matches(src.ss_primary_number, '(\\d+)'))[1]::int
43
+ ELSE (SELECT regexp_matches(src.ss_primary_number, '(\\d+)'))[1]::int
44
44
  END,
45
45
  unit_number = src.ss_secondary_number,
46
46
  city = COALESCE(src.ss_default_city_name, src.ss_city_name),
@@ -1,3 +1,3 @@
1
1
  class GeocodeRecords
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geocode_records
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seamus Abshere