jipcode-address_locator 0.1.2 → 3.0.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
2
  SHA256:
3
- metadata.gz: 5872bdfefa7c475edb16ff88c5bd801acdbb54497dd83d9f74fd903b1831cf2b
4
- data.tar.gz: f6d7b489e89071702af28f13e71a0a4de91e14caaa97d70b8bb856e58d6d78ee
3
+ metadata.gz: c8fb0e1df3739ff41305aa26517b6e94f6d26a5d576a1338bf2a995ca6df807d
4
+ data.tar.gz: 8636df1a0aab36c354f11d8c057b7df351df9600d0cf720db66070d3fe2b5f2c
5
5
  SHA512:
6
- metadata.gz: f4cfe55f2198406bc506e20dc69239aadd61d9734c6700fca94cd563a1f124488628f3c7caf541df14894a8c082134716e3b4bbfadee1070bab013da8ce08187
7
- data.tar.gz: 0dc49d8471c64732fb9e741f74a5fa04440ffe5d5c2e58fc905cd02bb2250d97d5e1cb1eb4b680c697054ee0543224f0e3998eb7f8b484cdfd01e24e0d4fb072
6
+ metadata.gz: 4b9a03d622369f457a0c9ec99fe8343fd7a9b8d2e29494c432f57eade5910270eaec1f7e90277cfd518387827b12a7f4a92b2e1248b23e4bca6c5dda411f04b0
7
+ data.tar.gz: 9b27fc26da58939c9497bac86efe4092b94f0a3c9fc0906c74fce62145ba5998a13706f32b1b766a0e178d55ba78dc8d5775a0c0a9e83950d710814a47c6520d
data/.rubocop.yml CHANGED
@@ -5,6 +5,9 @@ require:
5
5
  AllCops:
6
6
  NewCops: enable
7
7
 
8
+ Layout/LineLength:
9
+ Max: 130
10
+
8
11
  Naming/FileName:
9
12
  Enabled: false
10
13
 
@@ -12,8 +15,11 @@ Metrics/BlockLength:
12
15
  Exclude:
13
16
  - 'spec/**/*'
14
17
 
15
- Metrics/LineLength:
16
- Max: 130
18
+ Metrics/MethodLength:
19
+ CountAsOne:
20
+ - array
21
+ - hash
22
+ - heredoc
17
23
 
18
24
  Style/Documentation:
19
25
  Enabled: false
@@ -27,5 +33,11 @@ RSpec/ContextWording:
27
33
  RSpec/FilePath:
28
34
  Enabled: false
29
35
 
36
+ RSpec/ExampleLength:
37
+ CountAsOne:
38
+ - array
39
+ - hash
40
+ - heredoc
41
+
30
42
  RSpec/NamedSubject:
31
43
  Enabled: false
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ['lib']
23
23
 
24
24
  spec.add_dependency 'jaro_winkler', '~> 1.5.3'
25
- spec.add_dependency 'jipcode', '>= 1.5.0', '< 3.0'
25
+ spec.add_dependency 'jipcode', '>= 3.0.0'
26
26
  spec.metadata['rubygems_mfa_required'] = 'true'
27
27
  end
@@ -54,7 +54,16 @@ module Jipcode
54
54
  index.each do |prefecture_code, rows|
55
55
  rows.sort_by! { |row| [row[0], row[2], row[3]] }
56
56
  CSV.open("#{INDEX_PATH}/#{prefecture_code}.csv", 'wb') do |csv|
57
- csv << %w[zipcode prefecture_name city town normalized_address]
57
+ csv << %w[
58
+ zipcode
59
+ prefecture_name
60
+ city
61
+ town
62
+ prefecture_kana
63
+ city_kana
64
+ town_kana
65
+ normalized_address
66
+ ]
58
67
  rows.each { |row| csv << row }
59
68
  end
60
69
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jipcode
4
4
  module AddressLocator
5
- VERSION = '0.1.2'
5
+ VERSION = '3.0.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jipcode-address_locator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - oieioi
@@ -30,20 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.0
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '3.0'
33
+ version: 3.0.0
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - ">="
42
39
  - !ruby/object:Gem::Version
43
- version: 1.5.0
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
40
+ version: 3.0.0
47
41
  description: Extend jipcode.gem to locate zipcode data by address
48
42
  email:
49
43
  - atsuinatsu.samuifuyu@gmail.com