jpostcode 1.0.0.20220801 → 1.0.0.20221001

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile.lock +17 -17
  4. data/jpostcode-data/data/json/027.json +3 -3
  5. data/jpostcode-data/data/json/029.json +1 -1
  6. data/jpostcode-data/data/json/044.json +65 -0
  7. data/jpostcode-data/data/json/100.json +16 -3
  8. data/jpostcode-data/data/json/101.json +2 -2
  9. data/jpostcode-data/data/json/102.json +15 -2
  10. data/jpostcode-data/data/json/103.json +0 -13
  11. data/jpostcode-data/data/json/104.json +0 -13
  12. data/jpostcode-data/data/json/105.json +39 -0
  13. data/jpostcode-data/data/json/107.json +0 -13
  14. data/jpostcode-data/data/json/110.json +0 -13
  15. data/jpostcode-data/data/json/112.json +14 -1
  16. data/jpostcode-data/data/json/125.json +0 -13
  17. data/jpostcode-data/data/json/135.json +2 -28
  18. data/jpostcode-data/data/json/141.json +1 -1
  19. data/jpostcode-data/data/json/150.json +2 -15
  20. data/jpostcode-data/data/json/151.json +13 -0
  21. data/jpostcode-data/data/json/160.json +1 -1
  22. data/jpostcode-data/data/json/163.json +3 -3
  23. data/jpostcode-data/data/json/181.json +0 -13
  24. data/jpostcode-data/data/json/243.json +13 -0
  25. data/jpostcode-data/data/json/244.json +16 -3
  26. data/jpostcode-data/data/json/252.json +13 -0
  27. data/jpostcode-data/data/json/260.json +2 -2
  28. data/jpostcode-data/data/json/290.json +3 -3
  29. data/jpostcode-data/data/json/299.json +1 -1
  30. data/jpostcode-data/data/json/303.json +2 -2
  31. data/jpostcode-data/data/json/310.json +3 -3
  32. data/jpostcode-data/data/json/321.json +13 -0
  33. data/jpostcode-data/data/json/330.json +2 -2
  34. data/jpostcode-data/data/json/341.json +5 -5
  35. data/jpostcode-data/data/json/405.json +2 -2
  36. data/jpostcode-data/data/json/436.json +13 -0
  37. data/jpostcode-data/data/json/437.json +13 -0
  38. data/jpostcode-data/data/json/454.json +2 -2
  39. data/jpostcode-data/data/json/462.json +5 -5
  40. data/jpostcode-data/data/json/470.json +13 -0
  41. data/jpostcode-data/data/json/484.json +3 -3
  42. data/jpostcode-data/data/json/491.json +5 -5
  43. data/jpostcode-data/data/json/492.json +2 -2
  44. data/jpostcode-data/data/json/494.json +2 -2
  45. data/jpostcode-data/data/json/541.json +3 -3
  46. data/jpostcode-data/data/json/543.json +0 -13
  47. data/jpostcode-data/data/json/571.json +13 -0
  48. data/jpostcode-data/data/json/601.json +137 -328
  49. data/jpostcode-data/data/json/630.json +1 -1
  50. data/jpostcode-data/data/json/673.json +13 -0
  51. data/jpostcode-data/data/json/690.json +3 -3
  52. data/jpostcode-data/data/json/761.json +10 -10
  53. data/jpostcode-data/data/json/770.json +3 -3
  54. data/jpostcode-data/data/json/811.json +26 -0
  55. data/jpostcode-data/data/json/812.json +1 -1
  56. data/jpostcode-data/data/json/813.json +16 -31
  57. data/jpostcode-data/data/json/820.json +1 -1
  58. data/jpostcode-data/data/json/910.json +13 -0
  59. data/jpostcode-data/data/json/930.json +0 -13
  60. data/jpostcode-data/data/json/940.json +4 -4
  61. data/jpostcode-data/data/json/951.json +3 -3
  62. data/jpostcode-data/data/json/955.json +3 -3
  63. data/jpostcode-data/data/json/979.json +2 -2
  64. data/lib/jpostcode/version.rb +1 -1
  65. data/lib/jpostcode.rb +1 -1
  66. metadata +2 -2
@@ -2653,6 +2653,19 @@
2653
2653
  "office_name": null,
2654
2654
  "office_name_kana": null
2655
2655
  },
2656
+ "2321": {
2657
+ "postcode": "8112321",
2658
+ "prefecture": "福岡県",
2659
+ "prefecture_kana": "フクオカケン",
2660
+ "prefecture_code": 40,
2661
+ "city": "糟屋郡粕屋町",
2662
+ "city_kana": "カスヤグンカスヤマチ",
2663
+ "town": "内橋西",
2664
+ "town_kana": "ウチハシニシ",
2665
+ "street": null,
2666
+ "office_name": null,
2667
+ "office_name_kana": null
2668
+ },
2656
2669
  "2392": {
2657
2670
  "postcode": "8112392",
2658
2671
  "prefecture": "福岡県",
@@ -2666,6 +2679,19 @@
2666
2679
  "office_name": "粕屋町役場",
2667
2680
  "office_name_kana": "カスヤマチヤクバ"
2668
2681
  },
2682
+ "2393": {
2683
+ "postcode": "8112393",
2684
+ "prefecture": "福岡県",
2685
+ "prefecture_kana": "フクオカケン",
2686
+ "prefecture_code": 40,
2687
+ "city": "糟屋郡粕屋町",
2688
+ "city_kana": "カスヤグンカスヤマチ",
2689
+ "town": "大字上大隈",
2690
+ "town_kana": null,
2691
+ "street": "字部木原758GLP福岡粕屋",
2692
+ "office_name": "JP楽天ロジスティクス 株式会社 楽天フルフィルメントセンター福岡",
2693
+ "office_name_kana": "ジエイピ-ラクテンロジステイクス カブシキガイシヤ ラクテンフルフイルメントセンタ-フクオカ"
2694
+ },
2669
2695
  "2395": {
2670
2696
  "postcode": "8112395",
2671
2697
  "prefecture": "福岡県",
@@ -1685,7 +1685,7 @@
1685
1685
  "city_kana": "フクオカシハカタク",
1686
1686
  "town": "博多駅東",
1687
1687
  "town_kana": "ハカタエキヒガシ",
1688
- "street": "3−15−23",
1688
+ "street": "3−14−1T−BuildingHAKATAEAST4−5階",
1689
1689
  "office_name": "日本年金機構 博多年金事務所",
1690
1690
  "office_name_kana": "ニツポンネンキンキコウ ハカタネンキンジムシヨ"
1691
1691
  },
@@ -77,34 +77,19 @@
77
77
  "office_name": null,
78
78
  "office_name_kana": null
79
79
  },
80
- "0008": [
81
- {
82
- "postcode": "8130008",
83
- "prefecture": "福岡県",
84
- "prefecture_kana": "フクオカケン",
85
- "prefecture_code": 40,
86
- "city": "糟屋郡粕屋町",
87
- "city_kana": "カスヤグンカスヤマチ",
88
- "town": "内橋790の1",
89
- "town_kana": "ウチハシ790-1",
90
- "street": null,
91
- "office_name": null,
92
- "office_name_kana": null
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": "3丁目21−1",
555
+ "town": "香椎浜ふ頭",
556
+ "town_kana": "カシイハマフトウ",
557
+ "street": "1丁目2−17",
573
558
  "office_name": "アビスパ福岡 株式会社",
574
559
  "office_name_kana": "アビスパフクオカ カブシキガイシヤ"
575
560
  },
@@ -2140,7 +2140,7 @@
2140
2140
  "city_kana": "イイヅカシ",
2141
2141
  "town": "伊川",
2142
2142
  "town_kana": "イカワ",
2143
- "street": "1115(飯塚郵便局私書箱第1号)",
2143
+ "street": "1115",
2144
2144
  "office_name": "一番食品 株式会社",
2145
2145
  "office_name_kana": "イチバンシヨクヒン カブシキガイシヤ"
2146
2146
  },
@@ -4631,6 +4631,19 @@
4631
4631
  "office_name": null,
4632
4632
  "office_name_kana": null
4633
4633
  },
4634
+ "2149": {
4635
+ "postcode": "9102149",
4636
+ "prefecture": "福井県",
4637
+ "prefecture_kana": "フクイケン",
4638
+ "prefecture_code": 18,
4639
+ "city": "福井市",
4640
+ "city_kana": "フクイシ",
4641
+ "town": "東郷美里町",
4642
+ "town_kana": "トウゴウミサトチョウ",
4643
+ "street": null,
4644
+ "office_name": null,
4645
+ "office_name_kana": null
4646
+ },
4634
4647
  "2151": {
4635
4648
  "postcode": "9102151",
4636
4649
  "prefecture": "福井県",
@@ -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": "富山県",
@@ -6187,11 +6187,11 @@
6187
6187
  "prefecture_code": 15,
6188
6188
  "city": "長岡市",
6189
6189
  "city_kana": "ナガオカシ",
6190
- "town": "東蔵王",
6191
- "town_kana": "ヒガシザオウ",
6192
- "street": "2丁目580−47",
6190
+ "town": "北陽",
6191
+ "town_kana": "ホクヨウ",
6192
+ "street": "2丁目14番地16",
6193
6193
  "office_name": "新潟トーヨー 株式会社",
6194
- "office_name_kana": "ニイガタト-ヨ- カブシキカイシヤ"
6194
+ "office_name_kana": "ニイガタト-ヨ- カブシキガイシヤ"
6195
6195
  },
6196
6196
  "8585": {
6197
6197
  "postcode": "9408585",
@@ -2218,9 +2218,9 @@
2218
2218
  "prefecture_code": 15,
2219
2219
  "city": "新潟市中央区",
2220
2220
  "city_kana": "ニイガタシチュウオウク",
2221
- "town": "川岸町",
2222
- "town_kana": "カワギシチョウ",
2223
- "street": "1丁目47番地1",
2221
+ "town": "古町通7番町",
2222
+ "town_kana": null,
2223
+ "street": "1010番地",
2224
2224
  "office_name": "新潟県信用保証協会",
2225
2225
  "office_name_kana": "ニイガタケンシンヨウホシヨウキヨウカイ"
2226
2226
  },
@@ -1923,9 +1923,9 @@
1923
1923
  "city_kana": "サンジョウシ",
1924
1924
  "town": "上須頃",
1925
1925
  "town_kana": "カミスゴロ",
1926
- "street": "445",
1927
- "office_name": "アークランドサカモト 株式会社",
1928
- "office_name_kana": "ア-クランドサカモト カブシキガイシヤ"
1926
+ "street": "445番地",
1927
+ "office_name": "アークランズ 株式会社",
1928
+ "office_name_kana": "ア-クランズ カブシキガイシヤ"
1929
1929
  },
1930
1930
  "8503": {
1931
1931
  "postcode": "9558503",
@@ -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": "字前沖28番地",
1676
+ "street": "字町西73番地4",
1677
1677
  "office_name": "双葉町役場",
1678
1678
  "office_name_kana": "フタバマチヤクバ"
1679
1679
  },
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jpostcode
4
- VERSION = '1.0.0.20220801'
4
+ VERSION = '1.0.0.20221001'
5
5
  end
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}$/ =~ zip_code
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.20220801
4
+ version: 1.0.0.20221001
5
5
  platform: ruby
6
6
  authors:
7
7
  - kakipo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler