jpostcode 1.0.0.20211001 → 1.0.0.20220201
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +17 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +61 -0
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +23 -23
- data/jpostcode-data/data/json/060.json +3 -3
- data/jpostcode-data/data/json/100.json +39 -13
- data/jpostcode-data/data/json/101.json +16 -16
- data/jpostcode-data/data/json/103.json +4 -43
- data/jpostcode-data/data/json/104.json +6 -227
- data/jpostcode-data/data/json/105.json +31 -18
- data/jpostcode-data/data/json/106.json +13 -0
- data/jpostcode-data/data/json/107.json +1 -1
- data/jpostcode-data/data/json/108.json +0 -26
- data/jpostcode-data/data/json/110.json +1 -1
- data/jpostcode-data/data/json/130.json +3 -3
- data/jpostcode-data/data/json/134.json +3 -3
- data/jpostcode-data/data/json/135.json +6 -6
- data/jpostcode-data/data/json/140.json +18 -5
- data/jpostcode-data/data/json/141.json +54 -13
- data/jpostcode-data/data/json/150.json +11 -11
- data/jpostcode-data/data/json/151.json +28 -13
- data/jpostcode-data/data/json/153.json +2 -2
- data/jpostcode-data/data/json/210.json +2 -2
- data/jpostcode-data/data/json/211.json +1 -1
- data/jpostcode-data/data/json/220.json +13 -0
- data/jpostcode-data/data/json/232.json +2 -2
- data/jpostcode-data/data/json/247.json +39 -0
- data/jpostcode-data/data/json/259.json +13 -0
- data/jpostcode-data/data/json/260.json +5 -5
- data/jpostcode-data/data/json/262.json +1 -1
- data/jpostcode-data/data/json/284.json +13 -0
- data/jpostcode-data/data/json/297.json +13 -0
- data/jpostcode-data/data/json/305.json +3 -3
- data/jpostcode-data/data/json/308.json +13 -0
- data/jpostcode-data/data/json/310.json +13 -0
- data/jpostcode-data/data/json/312.json +3 -3
- data/jpostcode-data/data/json/317.json +2 -2
- data/jpostcode-data/data/json/320.json +1 -1
- data/jpostcode-data/data/json/331.json +3 -3
- data/jpostcode-data/data/json/349.json +39 -0
- data/jpostcode-data/data/json/350.json +2 -2
- data/jpostcode-data/data/json/363.json +13 -0
- data/jpostcode-data/data/json/366.json +13 -0
- data/jpostcode-data/data/json/380.json +2 -2
- data/jpostcode-data/data/json/391.json +13 -0
- data/jpostcode-data/data/json/400.json +2 -2
- data/jpostcode-data/data/json/409.json +4 -4
- data/jpostcode-data/data/json/420.json +0 -13
- data/jpostcode-data/data/json/440.json +3 -3
- data/jpostcode-data/data/json/443.json +112 -52
- data/jpostcode-data/data/json/450.json +0 -13
- data/jpostcode-data/data/json/453.json +13 -0
- data/jpostcode-data/data/json/456.json +13 -0
- data/jpostcode-data/data/json/460.json +3 -3
- data/jpostcode-data/data/json/461.json +0 -13
- data/jpostcode-data/data/json/496.json +5 -5
- data/jpostcode-data/data/json/500.json +4 -4
- data/jpostcode-data/data/json/505.json +7 -7
- data/jpostcode-data/data/json/511.json +14 -1
- data/jpostcode-data/data/json/525.json +6 -6
- data/jpostcode-data/data/json/570.json +16 -3
- data/jpostcode-data/data/json/574.json +26 -0
- data/jpostcode-data/data/json/601.json +1 -1
- data/jpostcode-data/data/json/602.json +1 -1
- data/jpostcode-data/data/json/617.json +2 -2
- data/jpostcode-data/data/json/622.json +1 -1
- data/jpostcode-data/data/json/640.json +3 -3
- data/jpostcode-data/data/json/660.json +13 -0
- data/jpostcode-data/data/json/670.json +13 -0
- data/jpostcode-data/data/json/673.json +31 -5
- data/jpostcode-data/data/json/674.json +0 -13
- data/jpostcode-data/data/json/706.json +16 -3
- data/jpostcode-data/data/json/708.json +3 -3
- data/jpostcode-data/data/json/731.json +3 -3
- data/jpostcode-data/data/json/745.json +13 -0
- data/jpostcode-data/data/json/754.json +39 -0
- data/jpostcode-data/data/json/755.json +13 -0
- data/jpostcode-data/data/json/761.json +22 -22
- data/jpostcode-data/data/json/766.json +26 -56
- data/jpostcode-data/data/json/779.json +1 -1
- data/jpostcode-data/data/json/790.json +3 -3
- data/jpostcode-data/data/json/799.json +2 -2
- data/jpostcode-data/data/json/804.json +8 -21
- data/jpostcode-data/data/json/805.json +2 -2
- data/jpostcode-data/data/json/812.json +17 -4
- data/jpostcode-data/data/json/813.json +2 -2
- data/jpostcode-data/data/json/814.json +0 -26
- data/jpostcode-data/data/json/843.json +1 -1
- data/jpostcode-data/data/json/857.json +13 -0
- data/jpostcode-data/data/json/860.json +6 -19
- data/jpostcode-data/data/json/861.json +1 -1
- data/jpostcode-data/data/json/870.json +73 -21
- data/jpostcode-data/data/json/879.json +13 -0
- data/jpostcode-data/data/json/894.json +1 -1
- data/jpostcode-data/data/json/907.json +3 -3
- data/jpostcode-data/data/json/910.json +3 -3
- data/jpostcode-data/data/json/917.json +3 -3
- data/jpostcode-data/data/json/918.json +2 -2
- data/jpostcode-data/data/json/920.json +80 -13
- data/jpostcode-data/data/json/926.json +15 -2
- data/jpostcode-data/data/json/929.json +2 -2
- data/jpostcode-data/data/json/930.json +3 -3
- data/jpostcode-data/data/json/949.json +3 -3
- data/jpostcode-data/data/json/969.json +0 -13
- data/jpostcode-data/data/json/971.json +13 -0
- data/jpostcode-data/data/json/980.json +3 -3
- data/jpostcode-data/data/json/981.json +2 -15
- data/jpostcode-data/data/json/983.json +26 -0
- data/jpostcode-data/data/json/984.json +2 -2
- data/jpostcode-data/data/json/985.json +0 -13
- data/jpostcode-data/data/json/989.json +1 -1
- data/jpostcode-data/data/json/997.json +13 -0
- data/lib/jpostcode/version.rb +1 -1
- data/lib/jpostcode.rb +1 -1
- metadata +3 -3
@@ -1587,19 +1587,6 @@
|
|
1587
1587
|
"office_name": "七ヶ浜町役場",
|
1588
1588
|
"office_name_kana": "シチガハママチヤクバ"
|
1589
1589
|
},
|
1590
|
-
"8589": {
|
1591
|
-
"postcode": "9858589",
|
1592
|
-
"prefecture": "宮城県",
|
1593
|
-
"prefecture_kana": "ミヤギケン",
|
1594
|
-
"prefecture_code": 4,
|
1595
|
-
"city": "多賀城市",
|
1596
|
-
"city_kana": "タガジョウシ",
|
1597
|
-
"town": "桜木",
|
1598
|
-
"town_kana": "サクラギ",
|
1599
|
-
"street": "3丁目4−1",
|
1600
|
-
"office_name": "みやぎ復興パーク",
|
1601
|
-
"office_name_kana": "ミヤギフツコウパ-ク"
|
1602
|
-
},
|
1603
1590
|
"8601": {
|
1604
1591
|
"postcode": "9858601",
|
1605
1592
|
"prefecture": "宮城県",
|
@@ -12952,7 +12952,7 @@
|
|
12952
12952
|
"city_kana": "オオサキシ",
|
12953
12953
|
"town": "鳴子温泉",
|
12954
12954
|
"town_kana": null,
|
12955
|
-
"street": "
|
12955
|
+
"street": "字鷲ノ巣86番地1",
|
12956
12956
|
"office_name": "大崎市 鳴子総合支所",
|
12957
12957
|
"office_name_kana": "オオサキシ ナルコソウゴウシシヨ"
|
12958
12958
|
},
|
@@ -3199,6 +3199,19 @@
|
|
3199
3199
|
"office_name": "鶴岡社会保険事務所",
|
3200
3200
|
"office_name_kana": "ツルオカシヤカイホケンジムシヨ"
|
3201
3201
|
},
|
3202
|
+
"8510": {
|
3203
|
+
"postcode": "9978510",
|
3204
|
+
"prefecture": "山形県",
|
3205
|
+
"prefecture_kana": "ヤマガタケン",
|
3206
|
+
"prefecture_code": 6,
|
3207
|
+
"city": "鶴岡市",
|
3208
|
+
"city_kana": "ツルオカシ",
|
3209
|
+
"town": "北茅原町",
|
3210
|
+
"town_kana": "キタチワラマチ",
|
3211
|
+
"street": "13番1号",
|
3212
|
+
"office_name": "山形県立こころの医療センター",
|
3213
|
+
"office_name_kana": "ヤマガタケンリツココロノイリヨウセンタ-"
|
3214
|
+
},
|
3202
3215
|
"8511": {
|
3203
3216
|
"postcode": "9978511",
|
3204
3217
|
"prefecture": "山形県",
|
data/lib/jpostcode/version.rb
CHANGED
data/lib/jpostcode.rb
CHANGED
@@ -16,7 +16,7 @@ module Jpostcode
|
|
16
16
|
json_file = "#{DATA_DIR}#{zip_code.slice(0, 3)}.json"
|
17
17
|
return nil unless File.exist?(json_file)
|
18
18
|
|
19
|
-
data = JSON.parse(File.
|
19
|
+
data = JSON.parse(File.read(json_file))
|
20
20
|
address_data = data[zip_code.slice(3, 4)]
|
21
21
|
return nil if address_data.nil?
|
22
22
|
|
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.20220201
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kakipo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -1192,7 +1192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1192
1192
|
- !ruby/object:Gem::Version
|
1193
1193
|
version: '0'
|
1194
1194
|
requirements: []
|
1195
|
-
rubygems_version: 3.
|
1195
|
+
rubygems_version: 3.3.3
|
1196
1196
|
signing_key:
|
1197
1197
|
specification_version: 4
|
1198
1198
|
summary: A Ruby implementation for Japan postcode.
|