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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile.lock +10 -10
  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 +3 -3
  8. data/jpostcode-data/data/json/102.json +14 -1
  9. data/jpostcode-data/data/json/105.json +13 -0
  10. data/jpostcode-data/data/json/125.json +0 -13
  11. data/jpostcode-data/data/json/135.json +2 -28
  12. data/jpostcode-data/data/json/141.json +1 -1
  13. data/jpostcode-data/data/json/150.json +0 -13
  14. data/jpostcode-data/data/json/163.json +3 -3
  15. data/jpostcode-data/data/json/252.json +13 -0
  16. data/jpostcode-data/data/json/260.json +2 -2
  17. data/jpostcode-data/data/json/299.json +1 -1
  18. data/jpostcode-data/data/json/310.json +3 -3
  19. data/jpostcode-data/data/json/436.json +13 -0
  20. data/jpostcode-data/data/json/454.json +2 -2
  21. data/jpostcode-data/data/json/462.json +5 -5
  22. data/jpostcode-data/data/json/484.json +3 -3
  23. data/jpostcode-data/data/json/491.json +5 -5
  24. data/jpostcode-data/data/json/494.json +2 -2
  25. data/jpostcode-data/data/json/541.json +3 -3
  26. data/jpostcode-data/data/json/543.json +0 -13
  27. data/jpostcode-data/data/json/601.json +137 -328
  28. data/jpostcode-data/data/json/630.json +1 -1
  29. data/jpostcode-data/data/json/811.json +26 -0
  30. data/jpostcode-data/data/json/812.json +1 -1
  31. data/jpostcode-data/data/json/813.json +16 -31
  32. data/jpostcode-data/data/json/820.json +1 -1
  33. data/jpostcode-data/data/json/930.json +0 -13
  34. data/jpostcode-data/data/json/979.json +2 -2
  35. data/lib/jpostcode/version.rb +1 -1
  36. data/lib/jpostcode.rb +1 -1
  37. metadata +2 -2
@@ -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
  },
@@ -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": "字前沖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.20220901'
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.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-08-01 00:00:00.000000000 Z
11
+ date: 2022-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler