gmaps_geocoding 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gmaps_geocoding/api.rb +2 -6
- data/lib/gmaps_geocoding/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b5c46075b11b81df3908c0582591c3a4b94a347
|
4
|
+
data.tar.gz: eb509dec11e850d2ec671bf1c81c075fbc483a12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9ea7400c33d7d357b025fbfc1c34365f3f2188301d6096b2519266cb99cdb2232fd425b57eb332c4825541f81650a566ad7bf3c145d03161d46701c320d0a1c
|
7
|
+
data.tar.gz: 20c809c1415563406cf882f434d85c2167b9126caa04a900ce04241bff8fce276b42ffa0439d9018d3168d0fa711aa1deabadef4b33145188dc892cccba7ba53
|
data/lib/gmaps_geocoding/api.rb
CHANGED
@@ -136,17 +136,13 @@ module GmapsGeocoding
|
|
136
136
|
next unless d.respond_to?(:nodes)
|
137
137
|
if d.nodes[0].is_a?(Ox::Element)
|
138
138
|
if result.include?(d.value)
|
139
|
-
unless result[d.value].is_a?(Array)
|
140
|
-
result[d.value] = [result[d.value]]
|
141
|
-
end
|
139
|
+
result[d.value] = [result[d.value]] unless result[d.value].is_a?(Array)
|
142
140
|
result[d.value] << xml_node_to_ruby(d)
|
143
141
|
else
|
144
142
|
result[d.value] = xml_node_to_ruby(d)
|
145
143
|
end
|
146
144
|
elsif result.include?(d.value)
|
147
|
-
unless result[d.value].is_a?(Array)
|
148
|
-
result[d.value] = [result[d.value]]
|
149
|
-
end
|
145
|
+
result[d.value] = [result[d.value]] unless result[d.value].is_a?(Array)
|
150
146
|
result[d.value] << d.nodes[0]
|
151
147
|
else
|
152
148
|
result[d.value] = d.nodes[0]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmaps_geocoding
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Kakesa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|