dc_address_lookup 0.2.1 → 0.2.2

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: 677528e5dacce954168dbedb9eefa326950ea723
4
- data.tar.gz: 9a35c1825f44a12028922afcaa0ceee0ff913ab4
3
+ metadata.gz: 82c54612d77d00ab19235ebe35cf513c39251fde
4
+ data.tar.gz: e49c7196eda5fe55acbd828246c03b5c01cc7d49
5
5
  SHA512:
6
- metadata.gz: e611b0ac557929f2806d75323393294cd02b7576fb45b3b36745fb6e692939c00acbe37d09a1e736d41e86dfff04fcb5a2ffd9f65859b59cd11750fdb0ec5cf8
7
- data.tar.gz: f33e20e9cc389b181c121075b0e13b9a4a56b0798d2323433bdb139d69088e89687f82dc6d99f29f3120e306d44ac35dc2130cb5a5f285f9767352daf2e987fe
6
+ metadata.gz: a03766589a8f335389fb0a450adda801569f4f5279312bfc8b706d23a958755a6dadac92b1d3ff3b98dce9ba515de1aeff7290aa0a5094423ca6dd2c52e1ea75
7
+ data.tar.gz: 8b7b067e4134c5712371081825fc3efd25d3e4336a8314623d2e1f5c7bf30cbe99cfd98d1a6d48003dce5a9ffea4df8d5dfca635c0a4cfbe25ced352f5ac16e7
@@ -2,6 +2,7 @@ module DcAddressLookup
2
2
  class Location
3
3
  def self.from_table(table)
4
4
  location = self.new
5
+ return location unless table
5
6
 
6
7
  table.each do |key,value|
7
8
  key = key.downcase
@@ -18,7 +18,7 @@ module DcAddressLookup
18
18
  end
19
19
 
20
20
  def table
21
- parsed["returnDataset"]["Table1"].first
21
+ parsed["returnDataset"]["Table1"].first if parsed["returnDataset"]
22
22
  end
23
23
  end
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module DcAddressLookup
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dc_address_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-22 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client