geocoder-olleh 0.2.9 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa872b55f9ea7dfed472100b71a7aa46871b1743
4
- data.tar.gz: bc29a456ae43db116ea3cae19062d87885a64de2
3
+ metadata.gz: 7ed01b74f0efb1a3f47426fbc509646a9b1821ef
4
+ data.tar.gz: bb6cfdb3a02f16861511d4c338343753d2d7c20d
5
5
  SHA512:
6
- metadata.gz: 8010c323eafcec07218082de651fe033eb9e4a6371a86607590267e6c8fa3f2a3c582f1fa332e918cce07e4818c719b73f3c7362cd6df5d3cd86855b906d3f3b
7
- data.tar.gz: 8d6a8b6b0af29fda3f96bee5947d5402b56e1fd1b28c6661956c6ede2af94b3515a530b3508c2a80d30f881fab08dd5bf0a9ec6da0788a3439712975a9132a2b
6
+ metadata.gz: 88759345df8cf55c2b24766fc94d1484d49aaefb92f06395f6d2cfe75bdca16b1b2b6b61dbbfb860410061cc82a807e6c37fbda21f05c612131af4a67b5f91d8
7
+ data.tar.gz: d29fc39a1d7b99d5b7f1f38d57e8c43567b0101972a5b6afc611e89c4c9c72a293438a970a4b79e6cac843a1da5912f4645d911a19ce7c08890ed3db63f43866
@@ -1,5 +1,5 @@
1
1
  module Geocoder
2
2
  module Olleh
3
- VERSION = "0.2.9"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -167,12 +167,14 @@ module Geocoder::Result
167
167
  ##
168
168
  # addr used when we call km2_LocalSearch
169
169
  # using old address system
170
- def addr
170
+ def old_addr
171
171
  if @data["ADDR"]
172
172
  @data["ADDR"].gsub("+", " ")
173
- else
173
+ elsif data["M_ADDR1"]
174
174
  @data["M_ADDR1"].gsub("+", " ").gsub(" ", " ") + " " +
175
175
  @data["M_ADDR2"].gsub("+", " ").gsub(" ", " ")
176
+ else
177
+ @data["NEW_ADDR"].gsub("+", " ")
176
178
  end
177
179
  end
178
180
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geocoder-olleh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaigouk Kim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-30 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler