jpostcode 1.0.0.20200701 → 1.0.0.20201201

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.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +12 -0
  3. data/.rubocop.yml +1 -1
  4. data/CHANGELOG.md +68 -1
  5. data/Gemfile.lock +28 -27
  6. data/jpostcode-data/data/json/003.json +13 -0
  7. data/jpostcode-data/data/json/004.json +26 -0
  8. data/jpostcode-data/data/json/013.json +13 -0
  9. data/jpostcode-data/data/json/024.json +13 -0
  10. data/jpostcode-data/data/json/038.json +5 -5
  11. data/jpostcode-data/data/json/060.json +15 -15
  12. data/jpostcode-data/data/json/062.json +3 -3
  13. data/jpostcode-data/data/json/063.json +13 -0
  14. data/jpostcode-data/data/json/078.json +13 -0
  15. data/jpostcode-data/data/json/079.json +8 -73
  16. data/jpostcode-data/data/json/086.json +110 -110
  17. data/jpostcode-data/data/json/100.json +57 -16
  18. data/jpostcode-data/data/json/101.json +13 -13
  19. data/jpostcode-data/data/json/102.json +81 -16
  20. data/jpostcode-data/data/json/103.json +4 -4
  21. data/jpostcode-data/data/json/104.json +0 -13
  22. data/jpostcode-data/data/json/105.json +42 -29
  23. data/jpostcode-data/data/json/107.json +2 -2
  24. data/jpostcode-data/data/json/108.json +3 -3
  25. data/jpostcode-data/data/json/110.json +13 -0
  26. data/jpostcode-data/data/json/112.json +26 -0
  27. data/jpostcode-data/data/json/113.json +29 -31
  28. data/jpostcode-data/data/json/121.json +13 -0
  29. data/jpostcode-data/data/json/130.json +13 -0
  30. data/jpostcode-data/data/json/135.json +5 -18
  31. data/jpostcode-data/data/json/140.json +16 -3
  32. data/jpostcode-data/data/json/141.json +13 -0
  33. data/jpostcode-data/data/json/143.json +0 -13
  34. data/jpostcode-data/data/json/150.json +21 -8
  35. data/jpostcode-data/data/json/151.json +13 -0
  36. data/jpostcode-data/data/json/153.json +13 -0
  37. data/jpostcode-data/data/json/160.json +21 -8
  38. data/jpostcode-data/data/json/163.json +1 -1
  39. data/jpostcode-data/data/json/164.json +0 -13
  40. data/jpostcode-data/data/json/180.json +13 -0
  41. data/jpostcode-data/data/json/183.json +13 -0
  42. data/jpostcode-data/data/json/192.json +5 -5
  43. data/jpostcode-data/data/json/203.json +3 -3
  44. data/jpostcode-data/data/json/210.json +0 -26
  45. data/jpostcode-data/data/json/212.json +0 -52
  46. data/jpostcode-data/data/json/215.json +3 -16
  47. data/jpostcode-data/data/json/216.json +26 -13
  48. data/jpostcode-data/data/json/220.json +26 -0
  49. data/jpostcode-data/data/json/221.json +13 -0
  50. data/jpostcode-data/data/json/222.json +5 -5
  51. data/jpostcode-data/data/json/223.json +3 -3
  52. data/jpostcode-data/data/json/224.json +13 -0
  53. data/jpostcode-data/data/json/235.json +2 -2
  54. data/jpostcode-data/data/json/237.json +0 -26
  55. data/jpostcode-data/data/json/240.json +13 -0
  56. data/jpostcode-data/data/json/241.json +3 -3
  57. data/jpostcode-data/data/json/242.json +2 -15
  58. data/jpostcode-data/data/json/243.json +0 -26
  59. data/jpostcode-data/data/json/248.json +1 -1
  60. data/jpostcode-data/data/json/250.json +13 -0
  61. data/jpostcode-data/data/json/251.json +13 -0
  62. data/jpostcode-data/data/json/252.json +52 -39
  63. data/jpostcode-data/data/json/253.json +4 -30
  64. data/jpostcode-data/data/json/257.json +4 -4
  65. data/jpostcode-data/data/json/259.json +3 -16
  66. data/jpostcode-data/data/json/275.json +14 -1
  67. data/jpostcode-data/data/json/279.json +5 -5
  68. data/jpostcode-data/data/json/300.json +1 -1
  69. data/jpostcode-data/data/json/301.json +6 -6
  70. data/jpostcode-data/data/json/305.json +13 -0
  71. data/jpostcode-data/data/json/306.json +13 -0
  72. data/jpostcode-data/data/json/310.json +1 -1
  73. data/jpostcode-data/data/json/312.json +5 -5
  74. data/jpostcode-data/data/json/319.json +2 -2
  75. data/jpostcode-data/data/json/328.json +3 -3
  76. data/jpostcode-data/data/json/330.json +13 -0
  77. data/jpostcode-data/data/json/346.json +13 -0
  78. data/jpostcode-data/data/json/350.json +14 -1
  79. data/jpostcode-data/data/json/356.json +13 -0
  80. data/jpostcode-data/data/json/362.json +78 -0
  81. data/jpostcode-data/data/json/395.json +13 -0
  82. data/jpostcode-data/data/json/399.json +5 -5
  83. data/jpostcode-data/data/json/400.json +3 -3
  84. data/jpostcode-data/data/json/410.json +2 -2
  85. data/jpostcode-data/data/json/445.json +13 -0
  86. data/jpostcode-data/data/json/453.json +0 -13
  87. data/jpostcode-data/data/json/460.json +6 -6
  88. data/jpostcode-data/data/json/468.json +3 -3
  89. data/jpostcode-data/data/json/470.json +13 -0
  90. data/jpostcode-data/data/json/484.json +13 -0
  91. data/jpostcode-data/data/json/505.json +13 -0
  92. data/jpostcode-data/data/json/506.json +5 -5
  93. data/jpostcode-data/data/json/510.json +3 -3
  94. data/jpostcode-data/data/json/515.json +2 -2
  95. data/jpostcode-data/data/json/516.json +13 -0
  96. data/jpostcode-data/data/json/518.json +2 -2
  97. data/jpostcode-data/data/json/525.json +28 -13
  98. data/jpostcode-data/data/json/536.json +1 -1
  99. data/jpostcode-data/data/json/539.json +8 -8
  100. data/jpostcode-data/data/json/560.json +13 -0
  101. data/jpostcode-data/data/json/562.json +9 -9
  102. data/jpostcode-data/data/json/564.json +5 -5
  103. data/jpostcode-data/data/json/577.json +3 -3
  104. data/jpostcode-data/data/json/583.json +2 -2
  105. data/jpostcode-data/data/json/592.json +2 -2
  106. data/jpostcode-data/data/json/596.json +0 -13
  107. data/jpostcode-data/data/json/600.json +0 -13
  108. data/jpostcode-data/data/json/604.json +14 -1
  109. data/jpostcode-data/data/json/610.json +2 -2
  110. data/jpostcode-data/data/json/614.json +13 -0
  111. data/jpostcode-data/data/json/630.json +4 -4
  112. data/jpostcode-data/data/json/651.json +3 -3
  113. data/jpostcode-data/data/json/670.json +3 -3
  114. data/jpostcode-data/data/json/701.json +13 -0
  115. data/jpostcode-data/data/json/712.json +2 -2
  116. data/jpostcode-data/data/json/720.json +2 -2
  117. data/jpostcode-data/data/json/733.json +0 -13
  118. data/jpostcode-data/data/json/742.json +3 -3
  119. data/jpostcode-data/data/json/745.json +3 -3
  120. data/jpostcode-data/data/json/758.json +3 -3
  121. data/jpostcode-data/data/json/760.json +26 -0
  122. data/jpostcode-data/data/json/768.json +13 -0
  123. data/jpostcode-data/data/json/779.json +13 -0
  124. data/jpostcode-data/data/json/799.json +2 -2
  125. data/jpostcode-data/data/json/807.json +13 -0
  126. data/jpostcode-data/data/json/810.json +0 -13
  127. data/jpostcode-data/data/json/811.json +13 -0
  128. data/jpostcode-data/data/json/812.json +1 -1
  129. data/jpostcode-data/data/json/819.json +26 -0
  130. data/jpostcode-data/data/json/820.json +3 -3
  131. data/jpostcode-data/data/json/821.json +3 -3
  132. data/jpostcode-data/data/json/842.json +3 -3
  133. data/jpostcode-data/data/json/849.json +5 -5
  134. data/jpostcode-data/data/json/852.json +1 -1
  135. data/jpostcode-data/data/json/861.json +3 -3
  136. data/jpostcode-data/data/json/863.json +3 -3
  137. data/jpostcode-data/data/json/867.json +41 -13
  138. data/jpostcode-data/data/json/870.json +2 -2
  139. data/jpostcode-data/data/json/879.json +0 -13
  140. data/jpostcode-data/data/json/880.json +5 -5
  141. data/jpostcode-data/data/json/900.json +4 -4
  142. data/jpostcode-data/data/json/907.json +26 -0
  143. data/jpostcode-data/data/json/910.json +2 -2
  144. data/jpostcode-data/data/json/920.json +68 -3
  145. data/jpostcode-data/data/json/921.json +2 -2
  146. data/jpostcode-data/data/json/926.json +2 -2
  147. data/jpostcode-data/data/json/931.json +2 -2
  148. data/jpostcode-data/data/json/940.json +26 -0
  149. data/jpostcode-data/data/json/942.json +13 -0
  150. data/jpostcode-data/data/json/948.json +26 -0
  151. data/jpostcode-data/data/json/949.json +13 -0
  152. data/jpostcode-data/data/json/952.json +5 -5
  153. data/jpostcode-data/data/json/958.json +5 -5
  154. data/jpostcode-data/data/json/967.json +1 -1
  155. data/jpostcode-data/data/json/969.json +2 -28
  156. data/jpostcode-data/data/json/980.json +2 -2
  157. data/jpostcode-data/data/json/982.json +3 -3
  158. data/jpostcode-data/data/json/983.json +0 -91
  159. data/jpostcode-data/data/json/984.json +3 -3
  160. data/jpostcode-data/data/json/989.json +39 -0
  161. data/jpostcode-data/data/json/990.json +1 -1
  162. data/lib/jpostcode.rb +2 -2
  163. data/lib/jpostcode/version.rb +1 -1
  164. metadata +5 -5
@@ -630,7 +630,7 @@
630
630
  "prefecture_code": 7,
631
631
  "city": "南会津郡南会津町",
632
632
  "city_kana": "ミナミアイヅグンミナミアイヅマチ",
633
- "town": "上ミノ原",
633
+ "town": "上ノ原",
634
634
  "town_kana": "カミノハラ",
635
635
  "street": null,
636
636
  "office_name": null,
@@ -7733,19 +7733,6 @@
7733
7733
  "office_name": null,
7734
7734
  "office_name_kana": null
7735
7735
  },
7736
- "3592": {
7737
- "postcode": "9693592",
7738
- "prefecture": "福島県",
7739
- "prefecture_kana": "フクシマケン",
7740
- "prefecture_code": 7,
7741
- "city": "喜多方市",
7742
- "city_kana": "キタカタシ",
7743
- "town": "塩川町",
7744
- "town_kana": null,
7745
- "street": "字岡ノ前241(塩川郵便局私書箱第1号)",
7746
- "office_name": "喜多方市役所 塩川総合支所",
7747
- "office_name_kana": "キタカタシヤクシヨ シオカワソウゴウシシヨ"
7748
- },
7749
7736
  "3593": {
7750
7737
  "postcode": "9693593",
7751
7738
  "prefecture": "福島県",
@@ -7759,19 +7746,6 @@
7759
7746
  "office_name": "湯川村役場",
7760
7747
  "office_name_kana": "ユガワムラヤクバ"
7761
7748
  },
7762
- "3594": {
7763
- "postcode": "9693594",
7764
- "prefecture": "福島県",
7765
- "prefecture_kana": "フクシマケン",
7766
- "prefecture_code": 7,
7767
- "city": "喜多方市",
7768
- "city_kana": "キタカタシ",
7769
- "town": "塩川町小府根",
7770
- "town_kana": "シオカワマチコフネ",
7771
- "street": "字大谷地1番",
7772
- "office_name": "オン・セミコンダクター・テクノロジー 株式会社",
7773
- "office_name_kana": "オン・セミコンダクタ-・テクノロジ- カブシキガイシヤ"
7774
- },
7775
7749
  "4101": {
7776
7750
  "postcode": "9694101",
7777
7751
  "prefecture": "福島県",
@@ -12757,9 +12731,9 @@
12757
12731
  "prefecture_code": 7,
12758
12732
  "city": "大沼郡会津美里町",
12759
12733
  "city_kana": "オオヌマグンアイヅミサトマチ",
12760
- "town": "字宮北",
12734
+ "town": "字新布才地",
12761
12735
  "town_kana": null,
12762
- "street": "3163(会津高田郵便局私書箱第4号)",
12736
+ "street": "1(会津高田郵便局私書箱第4号)",
12763
12737
  "office_name": "会津美里町役場",
12764
12738
  "office_name_kana": "アイヅミサトマチヤクバ"
12765
12739
  },
@@ -1751,8 +1751,8 @@
1751
1751
  "town": "本町",
1752
1752
  "town_kana": "ホンチョウ",
1753
1753
  "street": "2丁目16−10",
1754
- "office_name": "積水ハウス 株式会社 仙台シャーメゾン支店",
1755
- "office_name_kana": "セキスイハウス カブシキガイシヤ センダイシヤ-メゾンシテン"
1754
+ "office_name": "積水ハウス 株式会社 東北シャーメゾン支店",
1755
+ "office_name_kana": "セキスイハウス カブシキガイシヤ トウホクシヤ-メゾンシテン"
1756
1756
  },
1757
1757
  "8441": {
1758
1758
  "postcode": "9808441",
@@ -1089,9 +1089,9 @@
1089
1089
  "city_kana": "センダイシタイハクク",
1090
1090
  "town": "郡山",
1091
1091
  "town_kana": "コオリヤマ",
1092
- "street": "6丁目7−1",
1093
- "office_name": "NECトーキン 株式会社",
1094
- "office_name_kana": "エヌイ-シ-ト-キン カブシキガイシヤ"
1092
+ "street": "6丁目7番1号",
1093
+ "office_name": "株式会社 トーキン",
1094
+ "office_name_kana": "カブシキガイシヤ ト-キン"
1095
1095
  },
1096
1096
  "8511": {
1097
1097
  "postcode": "9828511",
@@ -1015,19 +1015,6 @@
1015
1015
  "office_name": "宮城県 社会保険診療報酬支払基金",
1016
1016
  "office_name_kana": "ミヤギケン シヤカイホケンシンリヨウホウシユウシハライキキン"
1017
1017
  },
1018
- "8506": {
1019
- "postcode": "9838506",
1020
- "prefecture": "宮城県",
1021
- "prefecture_kana": "ミヤギケン",
1022
- "prefecture_code": 4,
1023
- "city": "仙台市宮城野区",
1024
- "city_kana": "センダイシミヤギノク",
1025
- "town": "榴岡",
1026
- "town_kana": "ツツジガオカ",
1027
- "street": "3丁目4−18",
1028
- "office_name": "東邦薬品 株式会社 東北営業本部",
1029
- "office_name_kana": "トウホウヤクヒン カブシキガイシヤ トウホクエイギヨウホンブ"
1030
- },
1031
1018
  "8507": {
1032
1019
  "postcode": "9838507",
1033
1020
  "prefecture": "宮城県",
@@ -1041,19 +1028,6 @@
1041
1028
  "office_name": "仙台労働基準監督署",
1042
1029
  "office_name_kana": "センダイロウドウキジユンカントクシヨ"
1043
1030
  },
1044
- "8510": {
1045
- "postcode": "9838510",
1046
- "prefecture": "宮城県",
1047
- "prefecture_kana": "ミヤギケン",
1048
- "prefecture_code": 4,
1049
- "city": "仙台市宮城野区",
1050
- "city_kana": "センダイシミヤギノク",
1051
- "town": "苦竹",
1052
- "town_kana": "ニガタケ",
1053
- "street": "1丁目7−10",
1054
- "office_name": "株式会社 ニチレイ",
1055
- "office_name_kana": "カブシキガイシヤ ニチレイ"
1056
- },
1057
1031
  "8511": {
1058
1032
  "postcode": "9838511",
1059
1033
  "prefecture": "宮城県",
@@ -1145,32 +1119,6 @@
1145
1119
  "office_name": "NTTファイナンス 株式会社",
1146
1120
  "office_name_kana": "エヌテイテイフアイナンス カブシキガイシヤ"
1147
1121
  },
1148
- "8527": {
1149
- "postcode": "9838527",
1150
- "prefecture": "宮城県",
1151
- "prefecture_kana": "ミヤギケン",
1152
- "prefecture_code": 4,
1153
- "city": "仙台市宮城野区",
1154
- "city_kana": "センダイシミヤギノク",
1155
- "town": "名掛丁",
1156
- "town_kana": "ナカケチョウ",
1157
- "street": "128番地広瀬通SEビル5階",
1158
- "office_name": "日本年金機構 東北ブロック本部 宮城事務センター",
1159
- "office_name_kana": "ニツポンネンキンキコウ トウホクブロツクホンブ ミヤギジムセンタ-"
1160
- },
1161
- "8528": {
1162
- "postcode": "9838528",
1163
- "prefecture": "宮城県",
1164
- "prefecture_kana": "ミヤギケン",
1165
- "prefecture_code": 4,
1166
- "city": "仙台市宮城野区",
1167
- "city_kana": "センダイシミヤギノク",
1168
- "town": "榴岡",
1169
- "town_kana": "ツツジガオカ",
1170
- "street": "5丁目12番55号",
1171
- "office_name": "株式会社 仙台ソフトウェアセンター",
1172
- "office_name_kana": "カブシキガイシヤ センダイソフトウエアセンタ-"
1173
- },
1174
1122
  "8533": {
1175
1123
  "postcode": "9838533",
1176
1124
  "prefecture": "宮城県",
@@ -1184,19 +1132,6 @@
1184
1132
  "office_name": "株式会社 菱食 仙台支社",
1185
1133
  "office_name_kana": "カブシキガイシヤ リヨウシヨク センダイシシヤ"
1186
1134
  },
1187
- "8535": {
1188
- "postcode": "9838535",
1189
- "prefecture": "宮城県",
1190
- "prefecture_kana": "ミヤギケン",
1191
- "prefecture_code": 4,
1192
- "city": "仙台市宮城野区",
1193
- "city_kana": "センダイシミヤギノク",
1194
- "town": "榴岡",
1195
- "town_kana": "ツツジガオカ",
1196
- "street": "4丁目3番10号",
1197
- "office_name": "株式会社 NTTデータ 東北",
1198
- "office_name_kana": "カブシキガイシヤ エヌ・テイ・テイ・デ-タ トウホク"
1199
- },
1200
1135
  "8536": {
1201
1136
  "postcode": "9838536",
1202
1137
  "prefecture": "宮城県",
@@ -1353,19 +1288,6 @@
1353
1288
  "office_name": "宮城トヨタ自動車 株式会社",
1354
1289
  "office_name_kana": "ミヤギトヨタジドウシヤ カブシキガイシヤ"
1355
1290
  },
1356
- "8584": {
1357
- "postcode": "9838584",
1358
- "prefecture": "宮城県",
1359
- "prefecture_kana": "ミヤギケン",
1360
- "prefecture_code": 4,
1361
- "city": "仙台市宮城野区",
1362
- "city_kana": "センダイシミヤギノク",
1363
- "town": "扇町",
1364
- "town_kana": "オウギマチ",
1365
- "street": "2丁目4−51",
1366
- "office_name": "ネッツトヨタ仙台 株式会社",
1367
- "office_name_kana": "ネツツトヨタセンダイ カブシキガイシヤ"
1368
- },
1369
1291
  "8585": {
1370
1292
  "postcode": "9838585",
1371
1293
  "prefecture": "宮城県",
@@ -1392,19 +1314,6 @@
1392
1314
  "office_name": "仙台市宮城野区役所",
1393
1315
  "office_name_kana": "センダイシミヤギノクヤクシヨ"
1394
1316
  },
1395
- "8602": {
1396
- "postcode": "9838602",
1397
- "prefecture": "宮城県",
1398
- "prefecture_kana": "ミヤギケン",
1399
- "prefecture_code": 4,
1400
- "city": "仙台市宮城野区",
1401
- "city_kana": "センダイシミヤギノク",
1402
- "town": "日の出町",
1403
- "town_kana": "ヒノデマチ",
1404
- "street": "3丁目3番10号",
1405
- "office_name": "東北流通サービス 株式会社",
1406
- "office_name_kana": "トウホクリユウツウサ-ビス カブシキガイシヤ"
1407
- },
1408
1317
  "8622": {
1409
1318
  "postcode": "9838622",
1410
1319
  "prefecture": "宮城県",
@@ -1241,9 +1241,9 @@
1241
1241
  "prefecture_code": 4,
1242
1242
  "city": "仙台市若林区",
1243
1243
  "city_kana": "センダイシワカバヤシク",
1244
- "town": "荒井",
1245
- "town_kana": "アライ",
1246
- "street": "7−5−1",
1244
+ "town": "荒井東",
1245
+ "town_kana": "アライヒガシ",
1246
+ "street": "1−1−10",
1247
1247
  "office_name": "ダイト薬品 株式会社",
1248
1248
  "office_name_kana": "ダイトヤクヒン カブシキガイシヤ"
1249
1249
  },
@@ -4722,6 +4722,19 @@
4722
4722
  "office_name": null,
4723
4723
  "office_name_kana": null
4724
4724
  },
4725
+ "2325": {
4726
+ "postcode": "9892325",
4727
+ "prefecture": "宮城県",
4728
+ "prefecture_kana": "ミヤギケン",
4729
+ "prefecture_code": 4,
4730
+ "city": "亘理郡亘理町",
4731
+ "city_kana": "ワタリグンワタリチョウ",
4732
+ "town": "花苺",
4733
+ "town_kana": "ハナイチゴ",
4734
+ "street": null,
4735
+ "office_name": null,
4736
+ "office_name_kana": null
4737
+ },
4725
4738
  "2331": {
4726
4739
  "postcode": "9892331",
4727
4740
  "prefecture": "宮城県",
@@ -4735,6 +4748,32 @@
4735
4748
  "office_name": null,
4736
4749
  "office_name_kana": null
4737
4750
  },
4751
+ "2332": {
4752
+ "postcode": "9892332",
4753
+ "prefecture": "宮城県",
4754
+ "prefecture_kana": "ミヤギケン",
4755
+ "prefecture_code": 4,
4756
+ "city": "亘理郡亘理町",
4757
+ "city_kana": "ワタリグンワタリチョウ",
4758
+ "town": "苺浜",
4759
+ "town_kana": "イチゴハマ",
4760
+ "street": null,
4761
+ "office_name": null,
4762
+ "office_name_kana": null
4763
+ },
4764
+ "2333": {
4765
+ "postcode": "9892333",
4766
+ "prefecture": "宮城県",
4767
+ "prefecture_kana": "ミヤギケン",
4768
+ "prefecture_code": 4,
4769
+ "city": "亘理郡亘理町",
4770
+ "city_kana": "ワタリグンワタリチョウ",
4771
+ "town": "苺里",
4772
+ "town_kana": "イチゴサト",
4773
+ "street": null,
4774
+ "office_name": null,
4775
+ "office_name_kana": null
4776
+ },
4738
4777
  "2341": {
4739
4778
  "postcode": "9892341",
4740
4779
  "prefecture": "宮城県",
@@ -1657,7 +1657,7 @@
1657
1657
  "prefecture_code": 6,
1658
1658
  "city": "山形市",
1659
1659
  "city_kana": "ヤマガタシ",
1660
- "town": "壇野前",
1660
+ "town": "檀野前",
1661
1661
  "town_kana": "ダンノマエ",
1662
1662
  "street": null,
1663
1663
  "office_name": null,
@@ -5,7 +5,7 @@ require 'jpostcode/address'
5
5
  require 'json'
6
6
 
7
7
  module Jpostcode
8
- DATA_DIR = File.dirname(__FILE__) + '/../jpostcode-data/data/json/'
8
+ DATA_DIR = "#{File.dirname(__FILE__)}/../jpostcode-data/data/json/"
9
9
 
10
10
  module_function
11
11
 
@@ -13,7 +13,7 @@ module Jpostcode
13
13
  zip_code = raw_zip_code.to_s.delete('-')
14
14
  return nil unless /^\d{7,7}$/ =~ zip_code
15
15
 
16
- json_file = DATA_DIR + zip_code.slice(0, 3) + '.json'
16
+ json_file = "#{DATA_DIR}#{zip_code.slice(0, 3)}.json"
17
17
  return nil unless File.exist?(json_file)
18
18
 
19
19
  data = JSON.parse(File.open(json_file).read)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jpostcode
4
- VERSION = '1.0.0.20200701'
4
+ VERSION = '1.0.0.20201201'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpostcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.20200701
4
+ version: 1.0.0.20201201
5
5
  platform: ruby
6
6
  authors:
7
7
  - kakipo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -1148,7 +1148,7 @@ licenses:
1148
1148
  - MIT
1149
1149
  metadata:
1150
1150
  allowed_push_host: https://rubygems.org
1151
- post_install_message:
1151
+ post_install_message:
1152
1152
  rdoc_options: []
1153
1153
  require_paths:
1154
1154
  - lib
@@ -1164,7 +1164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1164
1164
  version: '0'
1165
1165
  requirements: []
1166
1166
  rubygems_version: 3.1.2
1167
- signing_key:
1167
+ signing_key:
1168
1168
  specification_version: 4
1169
1169
  summary: A Ruby implementation for Japan postcode.
1170
1170
  test_files: []