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 +4 -4
- data/.rubocop.yml +14 -2
- data/jipcode-address_locator.gemspec +1 -1
- data/lib/jipcode/address_locator/indexer.rb +10 -1
- data/lib/jipcode/address_locator/version.rb +1 -1
- metadata +3 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8fb0e1df3739ff41305aa26517b6e94f6d26a5d576a1338bf2a995ca6df807d
|
4
|
+
data.tar.gz: 8636df1a0aab36c354f11d8c057b7df351df9600d0cf720db66070d3fe2b5f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
16
|
-
|
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', '>=
|
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[
|
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
|
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.
|
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:
|
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:
|
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
|