jpostcode 1.0.0.20220801 → 1.0.0.20220901
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +10 -10
- data/jpostcode-data/data/json/027.json +3 -3
- data/jpostcode-data/data/json/029.json +1 -1
- data/jpostcode-data/data/json/044.json +65 -0
- data/jpostcode-data/data/json/100.json +3 -3
- data/jpostcode-data/data/json/102.json +14 -1
- data/jpostcode-data/data/json/105.json +13 -0
- data/jpostcode-data/data/json/125.json +0 -13
- data/jpostcode-data/data/json/135.json +2 -28
- data/jpostcode-data/data/json/141.json +1 -1
- data/jpostcode-data/data/json/150.json +0 -13
- data/jpostcode-data/data/json/163.json +3 -3
- data/jpostcode-data/data/json/252.json +13 -0
- data/jpostcode-data/data/json/260.json +2 -2
- data/jpostcode-data/data/json/299.json +1 -1
- data/jpostcode-data/data/json/310.json +3 -3
- data/jpostcode-data/data/json/436.json +13 -0
- data/jpostcode-data/data/json/454.json +2 -2
- data/jpostcode-data/data/json/462.json +5 -5
- data/jpostcode-data/data/json/484.json +3 -3
- data/jpostcode-data/data/json/491.json +5 -5
- data/jpostcode-data/data/json/494.json +2 -2
- data/jpostcode-data/data/json/541.json +3 -3
- data/jpostcode-data/data/json/543.json +0 -13
- data/jpostcode-data/data/json/601.json +137 -328
- data/jpostcode-data/data/json/630.json +1 -1
- data/jpostcode-data/data/json/811.json +26 -0
- data/jpostcode-data/data/json/812.json +1 -1
- data/jpostcode-data/data/json/813.json +16 -31
- data/jpostcode-data/data/json/820.json +1 -1
- data/jpostcode-data/data/json/930.json +0 -13
- data/jpostcode-data/data/json/979.json +2 -2
- data/lib/jpostcode/version.rb +1 -1
- data/lib/jpostcode.rb +1 -1
- metadata +2 -2
@@ -77,34 +77,19 @@
|
|
77
77
|
"office_name": null,
|
78
78
|
"office_name_kana": null
|
79
79
|
},
|
80
|
-
"0008":
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
},
|
94
|
-
{
|
95
|
-
"postcode": "8130008",
|
96
|
-
"prefecture": "福岡県",
|
97
|
-
"prefecture_kana": "フクオカケン",
|
98
|
-
"prefecture_code": 40,
|
99
|
-
"city": "糟屋郡粕屋町",
|
100
|
-
"city_kana": "カスヤグンカスヤマチ",
|
101
|
-
"town": "内橋790の1多ノ津団地",
|
102
|
-
"town_kana": "ウチハシ790-1タノツダンチ",
|
103
|
-
"street": null,
|
104
|
-
"office_name": null,
|
105
|
-
"office_name_kana": null
|
106
|
-
}
|
107
|
-
],
|
80
|
+
"0008": {
|
81
|
+
"postcode": "8130008",
|
82
|
+
"prefecture": "福岡県",
|
83
|
+
"prefecture_kana": "フクオカケン",
|
84
|
+
"prefecture_code": 40,
|
85
|
+
"city": "糟屋郡粕屋町",
|
86
|
+
"city_kana": "カスヤグンカスヤマチ",
|
87
|
+
"town": "内橋西",
|
88
|
+
"town_kana": "ウチハシニシ",
|
89
|
+
"street": null,
|
90
|
+
"office_name": null,
|
91
|
+
"office_name_kana": null
|
92
|
+
},
|
108
93
|
"0011": {
|
109
94
|
"postcode": "8130011",
|
110
95
|
"prefecture": "福岡県",
|
@@ -567,9 +552,9 @@
|
|
567
552
|
"prefecture_code": 40,
|
568
553
|
"city": "福岡市東区",
|
569
554
|
"city_kana": "フクオカシヒガシク",
|
570
|
-
"town": "
|
571
|
-
"town_kana": "
|
572
|
-
"street": "
|
555
|
+
"town": "香椎浜ふ頭",
|
556
|
+
"town_kana": "カシイハマフトウ",
|
557
|
+
"street": "1丁目2−17",
|
573
558
|
"office_name": "アビスパ福岡 株式会社",
|
574
559
|
"office_name_kana": "アビスパフクオカ カブシキガイシヤ"
|
575
560
|
},
|
@@ -9972,19 +9972,6 @@
|
|
9972
9972
|
"office_name": "富山県庁",
|
9973
9973
|
"office_name_kana": "トヤマケンチヨウ"
|
9974
9974
|
},
|
9975
|
-
"8502": {
|
9976
|
-
"postcode": "9308502",
|
9977
|
-
"prefecture": "富山県",
|
9978
|
-
"prefecture_kana": "トヤマケン",
|
9979
|
-
"prefecture_code": 16,
|
9980
|
-
"city": "富山市",
|
9981
|
-
"city_kana": "トヤマシ",
|
9982
|
-
"town": "新総曲輪",
|
9983
|
-
"town_kana": "シンソウガワ",
|
9984
|
-
"street": "3−1",
|
9985
|
-
"office_name": "日本放送協会 富山放送局",
|
9986
|
-
"office_name_kana": "ニツポンホウソウキヨウカイ トヤマホウソウキヨク"
|
9987
|
-
},
|
9988
9975
|
"8504": {
|
9989
9976
|
"postcode": "9308504",
|
9990
9977
|
"prefecture": "富山県",
|
@@ -1671,9 +1671,9 @@
|
|
1671
1671
|
"prefecture_code": 7,
|
1672
1672
|
"city": "双葉郡双葉町",
|
1673
1673
|
"city_kana": "フタバグンフタバマチ",
|
1674
|
-
"town": "
|
1674
|
+
"town": "大字長塚",
|
1675
1675
|
"town_kana": null,
|
1676
|
-
"street": "
|
1676
|
+
"street": "字町西73番地4",
|
1677
1677
|
"office_name": "双葉町役場",
|
1678
1678
|
"office_name_kana": "フタバマチヤクバ"
|
1679
1679
|
},
|
data/lib/jpostcode/version.rb
CHANGED
data/lib/jpostcode.rb
CHANGED
@@ -11,7 +11,7 @@ module Jpostcode
|
|
11
11
|
|
12
12
|
def find(raw_zip_code)
|
13
13
|
zip_code = raw_zip_code.to_s.delete('-')
|
14
|
-
return nil unless /^\d{7,7}$/
|
14
|
+
return nil unless zip_code.match?(/^\d{7,7}$/)
|
15
15
|
|
16
16
|
json_file = "#{DATA_DIR}#{zip_code.slice(0, 3)}.json"
|
17
17
|
return nil unless File.exist?(json_file)
|
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.
|
4
|
+
version: 1.0.0.20220901
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kakipo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|