jisx0402 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 174e630520237bdaa586ced9fb407cb5f9d29147
4
- data.tar.gz: 703a9a25cee1fc160cea4a868a1840f318855e96
2
+ SHA256:
3
+ metadata.gz: 4bee9f95a9f765f2e0a96589067570f54e11ac658ad601e6c2a83edc6349647b
4
+ data.tar.gz: d0e83b0b407286cd2de10a0adf0f38630de7fa01ec06fe188b6dfc65fbfc74ec
5
5
  SHA512:
6
- metadata.gz: 708281610f11bff82e87969ae22755829b9bef001550aa16fa0672f433460b9e1d675a0154da12e699e1f46de90a7fbe500fa1436c8050d803d2bd55647bd9ac
7
- data.tar.gz: 8297d0cf8e85d3edc5e5f03b30cf14058156b2b4ba2a36a851143e48c3aa6a0cb2c993ec80871efc8258360d733b50703a80f53ed5594f2fdfc9a5b79f3739a4
6
+ metadata.gz: 317ca91bf7b52954118742ba0c38af6080b05d5c4998be10b38c0f63895d467c2e475cb2a6bc6ff01d1b9f5ca9923298610341cc4395e01b8706bd5700ec893e
7
+ data.tar.gz: 884e19f1eaf2bd32b7d8bb61521d535be33e66f3c681167594dbfdb1c95aff989cf537bc890a159339b6a634cc70cfb2ddfc3dcb7267acf969d1cc26373bc1ad
@@ -73,8 +73,9 @@ module Jisx0402
73
73
  def zipcode_to_jisx0402_table
74
74
  @@zipcode_to_jisx0402_table ||= begin
75
75
  jisx0402_to_zipcode_table.map.with_object({}) do |(jisx0402, zipcodes), hash|
76
+ elem = forward_match_by_code(jisx0402).first
76
77
  zipcodes.map do |zipcode|
77
- hash[zipcode] = forward_match_by_code(jisx0402).first
78
+ hash[zipcode] = elem
78
79
  end
79
80
 
80
81
  hash
@@ -46,7 +46,7 @@ class Jisx0402::Tree
46
46
  end
47
47
 
48
48
  def values
49
- [value, @data.values.map(&:values)].flatten.compact
49
+ [value, *@data.values.map(&:values)].compact
50
50
  end
51
51
  end
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module Jisx0402
2
- VERSION = "1.3.1"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jisx0402
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - cnosuke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-17 00:00:00.000000000 Z
11
+ date: 2019-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -125,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubyforge_project:
129
- rubygems_version: 2.5.1
128
+ rubygems_version: 3.0.1
130
129
  signing_key:
131
130
  specification_version: 4
132
131
  summary: Library for search District Code(全国地方公共団体コード, JIS X 0402) of Japan.