gmaps_geocoding 1.3.0 → 1.3.1

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: b654b588fdf5b34c21ccd55f008d482b2802fc55
4
- data.tar.gz: f28760fb36c8298650297932ca9399b205b57f71
3
+ metadata.gz: 7b5c46075b11b81df3908c0582591c3a4b94a347
4
+ data.tar.gz: eb509dec11e850d2ec671bf1c81c075fbc483a12
5
5
  SHA512:
6
- metadata.gz: e11a3cda1549a260dc9105cbf68f533b5629add28cdc232e883d3ec70f749b641eeacc1dbb8ce98c967128bb3d03b905ebd7efe4f491c274b3448315d9ce94a1
7
- data.tar.gz: b97e32244d58048c295b5de15dba31796a43c0ef23ffb38d03113e11e2ca313c25d4c31924fad112e3ad5bf963d99cb1d22cd1fde321731af527b11636d7910c
6
+ metadata.gz: b9ea7400c33d7d357b025fbfc1c34365f3f2188301d6096b2519266cb99cdb2232fd425b57eb332c4825541f81650a566ad7bf3c145d03161d46701c320d0a1c
7
+ data.tar.gz: 20c809c1415563406cf882f434d85c2167b9126caa04a900ce04241bff8fce276b42ffa0439d9018d3168d0fa711aa1deabadef4b33145188dc892cccba7ba53
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module GmapsGeocoding
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client