jpostcode 1.0.0.20201001 → 1.0.0.20201101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +12 -0
  3. data/CHANGELOG.md +11 -1
  4. data/Gemfile.lock +20 -20
  5. data/jpostcode-data/data/json/004.json +13 -0
  6. data/jpostcode-data/data/json/038.json +5 -5
  7. data/jpostcode-data/data/json/060.json +0 -13
  8. data/jpostcode-data/data/json/063.json +13 -0
  9. data/jpostcode-data/data/json/079.json +8 -73
  10. data/jpostcode-data/data/json/102.json +3 -3
  11. data/jpostcode-data/data/json/103.json +4 -4
  12. data/jpostcode-data/data/json/105.json +26 -26
  13. data/jpostcode-data/data/json/113.json +13 -28
  14. data/jpostcode-data/data/json/135.json +0 -13
  15. data/jpostcode-data/data/json/150.json +5 -5
  16. data/jpostcode-data/data/json/163.json +1 -1
  17. data/jpostcode-data/data/json/203.json +3 -3
  18. data/jpostcode-data/data/json/210.json +0 -26
  19. data/jpostcode-data/data/json/212.json +0 -52
  20. data/jpostcode-data/data/json/220.json +13 -0
  21. data/jpostcode-data/data/json/223.json +3 -3
  22. data/jpostcode-data/data/json/224.json +2 -2
  23. data/jpostcode-data/data/json/235.json +2 -2
  24. data/jpostcode-data/data/json/237.json +0 -26
  25. data/jpostcode-data/data/json/241.json +3 -3
  26. data/jpostcode-data/data/json/242.json +2 -15
  27. data/jpostcode-data/data/json/248.json +1 -1
  28. data/jpostcode-data/data/json/253.json +4 -30
  29. data/jpostcode-data/data/json/259.json +3 -16
  30. data/jpostcode-data/data/json/301.json +6 -6
  31. data/jpostcode-data/data/json/310.json +1 -1
  32. data/jpostcode-data/data/json/395.json +13 -0
  33. data/jpostcode-data/data/json/399.json +5 -5
  34. data/jpostcode-data/data/json/400.json +3 -3
  35. data/jpostcode-data/data/json/453.json +0 -13
  36. data/jpostcode-data/data/json/515.json +2 -2
  37. data/jpostcode-data/data/json/525.json +28 -13
  38. data/jpostcode-data/data/json/564.json +5 -5
  39. data/jpostcode-data/data/json/651.json +3 -3
  40. data/jpostcode-data/data/json/720.json +2 -2
  41. data/jpostcode-data/data/json/742.json +3 -3
  42. data/jpostcode-data/data/json/760.json +13 -0
  43. data/jpostcode-data/data/json/810.json +0 -13
  44. data/jpostcode-data/data/json/819.json +26 -0
  45. data/jpostcode-data/data/json/849.json +5 -5
  46. data/jpostcode-data/data/json/852.json +1 -1
  47. data/jpostcode-data/data/json/907.json +13 -0
  48. data/jpostcode-data/data/json/920.json +65 -0
  49. data/jpostcode-data/data/json/958.json +5 -5
  50. data/jpostcode-data/data/json/984.json +3 -3
  51. data/lib/jpostcode.rb +2 -2
  52. data/lib/jpostcode/version.rb +1 -1
  53. metadata +2 -2
@@ -1930,11 +1930,11 @@
1930
1930
  "prefecture_code": 15,
1931
1931
  "city": "村上市",
1932
1932
  "city_kana": "ムラカミシ",
1933
- "town": "田端町",
1934
- "town_kana": "タバタマチ",
1935
- "street": "2−17",
1936
- "office_name": "村上総合病院",
1937
- "office_name_kana": "ムラカミソウゴウビヨウイン"
1933
+ "town": "緑町",
1934
+ "town_kana": "ミドリマチ",
1935
+ "street": "5丁目8番1号",
1936
+ "office_name": "新潟県厚生農業協同組合連合会 村上総合病院",
1937
+ "office_name_kana": "ニイガタケンコウセイノウギヨウキヨウドウクミアイレンゴウカイ ムラカミソウゴウビヨウイン"
1938
1938
  },
1939
1939
  "8555": {
1940
1940
  "postcode": "9588555",
@@ -1241,9 +1241,9 @@
1241
1241
  "prefecture_code": 4,
1242
1242
  "city": "仙台市若林区",
1243
1243
  "city_kana": "センダイシワカバヤシク",
1244
- "town": "荒井",
1245
- "town_kana": "アライ",
1246
- "street": "7−5−1",
1244
+ "town": "荒井東",
1245
+ "town_kana": "アライヒガシ",
1246
+ "street": "1−1−10",
1247
1247
  "office_name": "ダイト薬品 株式会社",
1248
1248
  "office_name_kana": "ダイトヤクヒン カブシキガイシヤ"
1249
1249
  },
@@ -5,7 +5,7 @@ require 'jpostcode/address'
5
5
  require 'json'
6
6
 
7
7
  module Jpostcode
8
- DATA_DIR = File.dirname(__FILE__) + '/../jpostcode-data/data/json/'
8
+ DATA_DIR = "#{File.dirname(__FILE__)}/../jpostcode-data/data/json/"
9
9
 
10
10
  module_function
11
11
 
@@ -13,7 +13,7 @@ module Jpostcode
13
13
  zip_code = raw_zip_code.to_s.delete('-')
14
14
  return nil unless /^\d{7,7}$/ =~ zip_code
15
15
 
16
- json_file = DATA_DIR + zip_code.slice(0, 3) + '.json'
16
+ json_file = "#{DATA_DIR}#{zip_code.slice(0, 3)}.json"
17
17
  return nil unless File.exist?(json_file)
18
18
 
19
19
  data = JSON.parse(File.open(json_file).read)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jpostcode
4
- VERSION = '1.0.0.20201001'
4
+ VERSION = '1.0.0.20201101'
5
5
  end
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.20201001
4
+ version: 1.0.0.20201101
5
5
  platform: ruby
6
6
  authors:
7
7
  - kakipo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2020-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler