jp_zip_code 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jp_zip_code.rb +1 -1
- data/lib/jp_zip_code/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e8bf5f170479ffd7204cabb774f7cb799c53eec
|
4
|
+
data.tar.gz: 9d3ab1f2734e58855d2d4f7e91fec8279520b761
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efd301f424c5578adeb51048a57ac03b78d6b6835ca1e63a3a6f5908553620e8a3f6e221335eceab097d4f9a83ae009d92037e8a4adfe5c5f63078c60e78a15b
|
7
|
+
data.tar.gz: 82654b16baf6f30d8c779469f8e0d1e90a17e6cd06136883884978c9c3dc966a9b1035e28ce1de7d093ff55a5e1b6c94ae1ddf0d16a0427e4037e4e3d10b5713
|
data/lib/jp_zip_code.rb
CHANGED
@@ -12,7 +12,7 @@ module JpZipCode
|
|
12
12
|
json_file = "#{File.dirname(__FILE__)}/../data/zip_code/#{zip_code[0, 4]}.json"
|
13
13
|
if File.exist?(json_file)
|
14
14
|
data = File.open(json_file) { |json| JSON.load(json) }
|
15
|
-
Hashie::Rash.new(convert(data[zip_code]))
|
15
|
+
Hashie::Rash.new(convert(data[zip_code])) if data[zip_code]
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
data/lib/jp_zip_code/version.rb
CHANGED