jpostcode 1.0.0.20210901 → 1.0.0.20220101

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +17 -1
  3. data/.rubocop.yml +1 -0
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +61 -0
  6. data/CODE_OF_CONDUCT.md +1 -1
  7. data/Gemfile.lock +22 -16
  8. data/jpostcode-data/data/json/060.json +5 -5
  9. data/jpostcode-data/data/json/100.json +39 -13
  10. data/jpostcode-data/data/json/101.json +16 -29
  11. data/jpostcode-data/data/json/102.json +13 -0
  12. data/jpostcode-data/data/json/103.json +7 -33
  13. data/jpostcode-data/data/json/104.json +6 -240
  14. data/jpostcode-data/data/json/105.json +32 -552
  15. data/jpostcode-data/data/json/107.json +1 -1
  16. data/jpostcode-data/data/json/108.json +0 -13
  17. data/jpostcode-data/data/json/110.json +1 -1
  18. data/jpostcode-data/data/json/114.json +13 -0
  19. data/jpostcode-data/data/json/123.json +13 -0
  20. data/jpostcode-data/data/json/130.json +3 -3
  21. data/jpostcode-data/data/json/134.json +3 -3
  22. data/jpostcode-data/data/json/135.json +3 -3
  23. data/jpostcode-data/data/json/136.json +3 -3
  24. data/jpostcode-data/data/json/140.json +18 -5
  25. data/jpostcode-data/data/json/150.json +8 -8
  26. data/jpostcode-data/data/json/151.json +28 -13
  27. data/jpostcode-data/data/json/160.json +13 -0
  28. data/jpostcode-data/data/json/164.json +3 -3
  29. data/jpostcode-data/data/json/169.json +0 -13
  30. data/jpostcode-data/data/json/210.json +2 -2
  31. data/jpostcode-data/data/json/211.json +1 -1
  32. data/jpostcode-data/data/json/220.json +13 -0
  33. data/jpostcode-data/data/json/232.json +2 -2
  34. data/jpostcode-data/data/json/247.json +39 -0
  35. data/jpostcode-data/data/json/260.json +8 -8
  36. data/jpostcode-data/data/json/261.json +26 -0
  37. data/jpostcode-data/data/json/262.json +13 -0
  38. data/jpostcode-data/data/json/284.json +13 -0
  39. data/jpostcode-data/data/json/297.json +13 -0
  40. data/jpostcode-data/data/json/308.json +13 -0
  41. data/jpostcode-data/data/json/310.json +13 -0
  42. data/jpostcode-data/data/json/312.json +3 -3
  43. data/jpostcode-data/data/json/317.json +2 -2
  44. data/jpostcode-data/data/json/320.json +1 -1
  45. data/jpostcode-data/data/json/329.json +13 -0
  46. data/jpostcode-data/data/json/331.json +3 -3
  47. data/jpostcode-data/data/json/335.json +13 -0
  48. data/jpostcode-data/data/json/350.json +2 -2
  49. data/jpostcode-data/data/json/363.json +13 -0
  50. data/jpostcode-data/data/json/366.json +13 -0
  51. data/jpostcode-data/data/json/391.json +13 -0
  52. data/jpostcode-data/data/json/403.json +1 -1
  53. data/jpostcode-data/data/json/409.json +4 -4
  54. data/jpostcode-data/data/json/410.json +14 -14
  55. data/jpostcode-data/data/json/420.json +0 -13
  56. data/jpostcode-data/data/json/443.json +112 -52
  57. data/jpostcode-data/data/json/450.json +0 -13
  58. data/jpostcode-data/data/json/460.json +3 -3
  59. data/jpostcode-data/data/json/462.json +13 -0
  60. data/jpostcode-data/data/json/500.json +4 -4
  61. data/jpostcode-data/data/json/505.json +7 -7
  62. data/jpostcode-data/data/json/511.json +17 -4
  63. data/jpostcode-data/data/json/525.json +6 -6
  64. data/jpostcode-data/data/json/570.json +16 -3
  65. data/jpostcode-data/data/json/602.json +1 -1
  66. data/jpostcode-data/data/json/617.json +2 -2
  67. data/jpostcode-data/data/json/622.json +1 -1
  68. data/jpostcode-data/data/json/660.json +13 -0
  69. data/jpostcode-data/data/json/670.json +13 -0
  70. data/jpostcode-data/data/json/673.json +31 -5
  71. data/jpostcode-data/data/json/674.json +0 -13
  72. data/jpostcode-data/data/json/675.json +13 -0
  73. data/jpostcode-data/data/json/693.json +13 -0
  74. data/jpostcode-data/data/json/706.json +16 -3
  75. data/jpostcode-data/data/json/731.json +3 -3
  76. data/jpostcode-data/data/json/761.json +22 -22
  77. data/jpostcode-data/data/json/766.json +26 -56
  78. data/jpostcode-data/data/json/779.json +1 -1
  79. data/jpostcode-data/data/json/799.json +2 -2
  80. data/jpostcode-data/data/json/804.json +8 -8
  81. data/jpostcode-data/data/json/805.json +2 -2
  82. data/jpostcode-data/data/json/812.json +17 -4
  83. data/jpostcode-data/data/json/813.json +2 -2
  84. data/jpostcode-data/data/json/843.json +1 -1
  85. data/jpostcode-data/data/json/857.json +13 -0
  86. data/jpostcode-data/data/json/860.json +15 -15
  87. data/jpostcode-data/data/json/870.json +177 -65
  88. data/jpostcode-data/data/json/879.json +13 -0
  89. data/jpostcode-data/data/json/907.json +3 -3
  90. data/jpostcode-data/data/json/910.json +2 -2
  91. data/jpostcode-data/data/json/917.json +3 -3
  92. data/jpostcode-data/data/json/918.json +2 -2
  93. data/jpostcode-data/data/json/920.json +80 -13
  94. data/jpostcode-data/data/json/926.json +15 -2
  95. data/jpostcode-data/data/json/929.json +2 -2
  96. data/jpostcode-data/data/json/930.json +1 -1
  97. data/jpostcode-data/data/json/946.json +2 -2
  98. data/jpostcode-data/data/json/949.json +3 -3
  99. data/jpostcode-data/data/json/950.json +9 -35
  100. data/jpostcode-data/data/json/971.json +13 -0
  101. data/jpostcode-data/data/json/980.json +3 -3
  102. data/jpostcode-data/data/json/981.json +2 -15
  103. data/jpostcode-data/data/json/982.json +13 -0
  104. data/jpostcode-data/data/json/983.json +26 -0
  105. data/jpostcode-data/data/json/984.json +2 -2
  106. data/jpostcode-data/data/json/985.json +0 -13
  107. data/jpostcode-data/data/json/986.json +13 -0
  108. data/jpostcode-data/data/json/989.json +1 -1
  109. data/jpostcode-data/data/json/997.json +13 -0
  110. data/jpostcode.gemspec +2 -0
  111. data/lib/jpostcode/version.rb +1 -1
  112. data/lib/jpostcode.rb +1 -1
  113. metadata +31 -3
@@ -7432,8 +7432,8 @@
7432
7432
  "town": "吉岡",
7433
7433
  "town_kana": "ヨシオカ",
7434
7434
  "street": "字北原西72",
7435
- "office_name": "株式会社 エーコープ宮城",
7436
- "office_name_kana": "カブシキガイシヤ エ-コ-プミヤギ"
7435
+ "office_name": "株式会社 Aコープ東日本 宮城営業所",
7436
+ "office_name_kana": "カブシキガイシヤ エ-コ-プヒガシニホン ミヤギエイギヨウシヨ"
7437
7437
  },
7438
7438
  "3688": {
7439
7439
  "postcode": "9813688",
@@ -9452,19 +9452,6 @@
9452
9452
  "office_name": "宮城県 仙台北県税事務所",
9453
9453
  "office_name_kana": "ミヤギケン センダイキタケンゼイジムシヨ"
9454
9454
  },
9455
- "8511": {
9456
- "postcode": "9818511",
9457
- "prefecture": "宮城県",
9458
- "prefecture_kana": "ミヤギケン",
9459
- "prefecture_code": 4,
9460
- "city": "仙台市青葉区",
9461
- "city_kana": "センダイシアオバク",
9462
- "town": "双葉ケ丘",
9463
- "town_kana": "フタバガオカ",
9464
- "street": "2丁目9−1",
9465
- "office_name": "株式会社 東日本放送",
9466
- "office_name_kana": "カブシキガイシヤ ヒガシニツポンホウソウ"
9467
- },
9468
9455
  "8522": {
9469
9456
  "postcode": "9818522",
9470
9457
  "prefecture": "宮城県",
@@ -1093,6 +1093,19 @@
1093
1093
  "office_name": "仙台市立病院",
1094
1094
  "office_name_kana": "センダイシリツビヨウイン"
1095
1095
  },
1096
+ "8505": {
1097
+ "postcode": "9828505",
1098
+ "prefecture": "宮城県",
1099
+ "prefecture_kana": "ミヤギケン",
1100
+ "prefecture_code": 4,
1101
+ "city": "仙台市太白区",
1102
+ "city_kana": "センダイシタイハクク",
1103
+ "town": "あすと長町",
1104
+ "town_kana": "アストナガマチ",
1105
+ "street": "一丁目3番15号",
1106
+ "office_name": "株式会社 東日本放送",
1107
+ "office_name_kana": "カブシキガイシヤ ヒガシニツポンホウソウ"
1108
+ },
1096
1109
  "8510": {
1097
1110
  "postcode": "9828510",
1098
1111
  "prefecture": "宮城県",
@@ -976,6 +976,19 @@
976
976
  "office_name": null,
977
977
  "office_name_kana": null
978
978
  },
979
+ "8477": {
980
+ "postcode": "9838477",
981
+ "prefecture": "宮城県",
982
+ "prefecture_kana": "ミヤギケン",
983
+ "prefecture_code": 4,
984
+ "city": "仙台市宮城野区",
985
+ "city_kana": "センダイシミヤギノク",
986
+ "town": "榴岡",
987
+ "town_kana": "ツツジガオカ",
988
+ "street": "1丁目1番1号",
989
+ "office_name": "JR仙台イーストゲートビル",
990
+ "office_name_kana": "ジエイア-ルセンダイイ-ストゲ-トビル"
991
+ },
979
992
  "8501": {
980
993
  "postcode": "9838501",
981
994
  "prefecture": "宮城県",
@@ -1249,6 +1262,19 @@
1249
1262
  "office_name": "新宮城日野自動車 株式会社",
1250
1263
  "office_name_kana": "シンミヤギヒノジドウシヤ カブシキガイシヤ"
1251
1264
  },
1265
+ "8562": {
1266
+ "postcode": "9838562",
1267
+ "prefecture": "宮城県",
1268
+ "prefecture_kana": "ミヤギケン",
1269
+ "prefecture_code": 4,
1270
+ "city": "仙台市宮城野区",
1271
+ "city_kana": "センダイシミヤギノク",
1272
+ "town": "榴岡",
1273
+ "town_kana": "ツツジガオカ",
1274
+ "street": "5−11−1仙台サンプラザ内",
1275
+ "office_name": "仙台市郵送事務センター",
1276
+ "office_name_kana": "センダイシユウソウジムセンタ-"
1277
+ },
1252
1278
  "8565": {
1253
1279
  "postcode": "9838565",
1254
1280
  "prefecture": "宮城県",
@@ -1192,8 +1192,8 @@
1192
1192
  "town": "舟丁",
1193
1193
  "town_kana": "フナチョウ",
1194
1194
  "street": "18−2",
1195
- "office_name": "株式会社 廣済堂 仙台情報センター",
1196
- "office_name_kana": "カブシキガイシヤ コウサイドウ センダイジヨウホウセンタ-"
1195
+ "office_name": "株式会社 広済堂HRソリューションズ 仙台営業所",
1196
+ "office_name_kana": "カブシキガイシヤ コウサイドウエイチア-ルソリユ-シヨンズ センダイエイギヨウシヨ"
1197
1197
  },
1198
1198
  "8519": {
1199
1199
  "postcode": "9848519",
@@ -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": "宮城県",
@@ -259,6 +259,19 @@
259
259
  "office_name": null,
260
260
  "office_name_kana": null
261
261
  },
262
+ "0029": {
263
+ "postcode": "9860029",
264
+ "prefecture": "宮城県",
265
+ "prefecture_kana": "ミヤギケン",
266
+ "prefecture_code": 4,
267
+ "city": "石巻市",
268
+ "city_kana": "イシノマキシ",
269
+ "town": "湊西",
270
+ "town_kana": "ミナトニシ",
271
+ "street": null,
272
+ "office_name": null,
273
+ "office_name_kana": null
274
+ },
262
275
  "0031": {
263
276
  "postcode": "9860031",
264
277
  "prefecture": "宮城県",
@@ -12952,7 +12952,7 @@
12952
12952
  "city_kana": "オオサキシ",
12953
12953
  "town": "鳴子温泉",
12954
12954
  "town_kana": null,
12955
- "street": "字新屋敷65",
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/jpostcode.gemspec CHANGED
@@ -38,6 +38,8 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency 'pry'
39
39
  spec.add_development_dependency 'pry-byebug'
40
40
  spec.add_development_dependency 'rubocop'
41
+ spec.add_development_dependency 'rubocop-rake'
42
+ spec.add_development_dependency 'rubocop-rspec'
41
43
  spec.add_development_dependency 'rubocop-performance'
42
44
  spec.add_development_dependency 'rake', '~> 13'
43
45
  spec.add_development_dependency 'rspec'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jpostcode
4
- VERSION = '1.0.0.20210901'
4
+ VERSION = '1.0.0.20220101'
5
5
  end
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.open(json_file).read)
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.20210901
4
+ version: 1.0.0.20220101
5
5
  platform: ruby
6
6
  authors:
7
7
  - kakipo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-01 00:00:00.000000000 Z
11
+ date: 2021-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,6 +122,34 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop-rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: rubocop-performance
127
155
  requirement: !ruby/object:Gem::Requirement
@@ -1164,7 +1192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1164
1192
  - !ruby/object:Gem::Version
1165
1193
  version: '0'
1166
1194
  requirements: []
1167
- rubygems_version: 3.2.22
1195
+ rubygems_version: 3.3.3
1168
1196
  signing_key:
1169
1197
  specification_version: 4
1170
1198
  summary: A Ruby implementation for Japan postcode.