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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e5c6c8c300555f29f42911d56da550040b8cd4b
4
- data.tar.gz: f25856f9cf6efd7c60c9468c4e2980424a95475b
3
+ metadata.gz: 6e8bf5f170479ffd7204cabb774f7cb799c53eec
4
+ data.tar.gz: 9d3ab1f2734e58855d2d4f7e91fec8279520b761
5
5
  SHA512:
6
- metadata.gz: 0e0b619b9f195ab543501d9d6039001ffc8ae656385afcece34d33b5579372a22e8d2e81e3990cbae87467244ac0b223435dc8544858aa90d13c1ad178a97d23
7
- data.tar.gz: 8d1c8529a1b8a2a2e20503738acacf1d6b2f42885549d3aa229fac49ebe7f6459be2c92539c912a2e5a0063c96114824c83355e75f645cf4a7bced50e023e129
6
+ metadata.gz: efd301f424c5578adeb51048a57ac03b78d6b6835ca1e63a3a6f5908553620e8a3f6e221335eceab097d4f9a83ae009d92037e8a4adfe5c5f63078c60e78a15b
7
+ data.tar.gz: 82654b16baf6f30d8c779469f8e0d1e90a17e6cd06136883884978c9c3dc966a9b1035e28ce1de7d093ff55a5e1b6c94ae1ddf0d16a0427e4037e4e3d10b5713
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module JpZipCode
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jp_zip_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kimromi