japan_etc 0.5.2 → 0.6.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 +5 -5
- data/.rubocop_todo.yml +52 -8
- data/Gemfile +1 -1
- data/database/japan_etc_tollbooths.csv +7 -1
- data/japan_etc.gemspec +1 -1
- data/lib/japan_etc/tollbooth.rb +1 -1
- data/lib/japan_etc/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80927a63d2f7ab359f8d86a56fccff3c8ad59b35b09fa76bfcae424dfcb71baf
|
4
|
+
data.tar.gz: 7909db6b620d029a2858f18d5fbd80086c74443418d777957c2680e3a7640e40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8bb79c606c15be0e9239a236ec466d5dd20ba82dea755bc1ec1cb9b8b650184cd48d2f7e82f1532e3ee059af89783d36dfd3b5d295937f3f2e7561006868e4f
|
7
|
+
data.tar.gz: 4bb6922c5d20808bcafc6b3304a7fa7f687cda464dc9bc81f8b221a9175ba675a6d97128575f4333a76b697718e490119b218917e7c87d4d01a58fc25c348b93
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
2
|
|
3
|
+
Layout/LineLength:
|
4
|
+
Max: 100
|
5
|
+
Exclude:
|
6
|
+
- 'spec/**/*_spec.rb'
|
7
|
+
|
3
8
|
Lint/ShadowingOuterLocalVariable:
|
4
9
|
Enabled: false
|
5
10
|
|
@@ -10,11 +15,6 @@ Metrics/BlockLength:
|
|
10
15
|
Metrics/ClassLength:
|
11
16
|
Enabled: false
|
12
17
|
|
13
|
-
Metrics/LineLength:
|
14
|
-
Max: 100
|
15
|
-
Exclude:
|
16
|
-
- 'spec/**/*_spec.rb'
|
17
|
-
|
18
18
|
Metrics/ParameterLists:
|
19
19
|
Enabled: false
|
20
20
|
|
data/.rubocop_todo.yml
CHANGED
@@ -1,25 +1,69 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2020-03-09 22:15:16 +0900 using RuboCop version 0.80.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 4
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
12
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
13
|
+
Layout/MultilineMethodCallIndentation:
|
14
|
+
Exclude:
|
15
|
+
- 'lib/japan_etc/road.rb'
|
16
|
+
|
17
|
+
# Offense count: 5
|
10
18
|
Metrics/AbcSize:
|
11
|
-
Max:
|
19
|
+
Max: 25
|
12
20
|
|
13
21
|
# Offense count: 1
|
22
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
23
|
+
# ExcludedMethods: refine
|
24
|
+
Metrics/BlockLength:
|
25
|
+
Max: 44
|
26
|
+
|
27
|
+
# Offense count: 2
|
14
28
|
Metrics/CyclomaticComplexity:
|
15
29
|
Max: 9
|
16
30
|
|
17
|
-
# Offense count:
|
31
|
+
# Offense count: 7
|
18
32
|
# Configuration parameters: CountComments, ExcludedMethods.
|
19
33
|
Metrics/MethodLength:
|
20
|
-
Max:
|
34
|
+
Max: 21
|
21
35
|
|
22
36
|
# Offense count: 1
|
23
|
-
# Configuration parameters:
|
24
|
-
|
25
|
-
|
37
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
38
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
39
|
+
Naming/MemoizedInstanceVariableName:
|
40
|
+
Exclude:
|
41
|
+
- 'lib/japan_etc/tollbooth.rb'
|
42
|
+
|
43
|
+
# Offense count: 2
|
44
|
+
# Configuration parameters: .
|
45
|
+
# SupportedStyles: annotated, template, unannotated
|
46
|
+
Style/FormatStringToken:
|
47
|
+
EnforcedStyle: unannotated
|
48
|
+
|
49
|
+
# Offense count: 1
|
50
|
+
# Cop supports --auto-correct.
|
51
|
+
Style/IfUnlessModifier:
|
52
|
+
Exclude:
|
53
|
+
- 'lib/japan_etc/road.rb'
|
54
|
+
|
55
|
+
# Offense count: 1
|
56
|
+
# Cop supports --auto-correct.
|
57
|
+
# Configuration parameters: EnforcedStyle.
|
58
|
+
# SupportedStyles: literals, strict
|
59
|
+
Style/MutableConstant:
|
60
|
+
Exclude:
|
61
|
+
- 'lib/japan_etc/road.rb'
|
62
|
+
|
63
|
+
# Offense count: 2
|
64
|
+
# Cop supports --auto-correct.
|
65
|
+
# Configuration parameters: .
|
66
|
+
# SupportedStyles: percent, brackets
|
67
|
+
Style/SymbolArray:
|
68
|
+
EnforcedStyle: percent
|
69
|
+
MinSize: 3
|
data/Gemfile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
tollbooth_id,road_name,route_name,tollbooth_name,direction,entrance_or_exit,notes
|
2
|
-
01-
|
2
|
+
01-021,中央自動車道,,高井戸,,入口,
|
3
|
+
01-024,中央自動車道,,高井戸,,入口,
|
3
4
|
01-025,中央自動車道,,調布,,入口,
|
4
5
|
01-027,中央自動車道,,国立府中,,入口,
|
5
6
|
01-044,東水戸道路,,水戸南,,,
|
@@ -614,6 +615,7 @@ tollbooth_id,road_name,route_name,tollbooth_name,direction,entrance_or_exit,note
|
|
614
615
|
03-029,富津館山道路,,鋸南保田,,,
|
615
616
|
03-030,富津館山道路,,鋸南富山,,,
|
616
617
|
03-031,富津館山道路,,富浦,,,
|
618
|
+
03-040,首都圏中央連絡自動車道,,茂原長柄スマート,,,
|
617
619
|
03-043,東関東自動車道,,習志野本線,上り,,
|
618
620
|
03-045,首都圏中央連絡自動車道,,茂原北,,,
|
619
621
|
03-046,首都圏中央連絡自動車道,,茂原長南,,,
|
@@ -765,6 +767,7 @@ tollbooth_id,road_name,route_name,tollbooth_name,direction,entrance_or_exit,note
|
|
765
767
|
04-130,常磐自動車道,,鳥の海スマート,,,
|
766
768
|
04-131,常磐自動車道,,山元南スマート,,,
|
767
769
|
04-132,仙台東部道路,,名取中央スマート,,,
|
770
|
+
04-133,常磐自動車道,,常磐双葉,,,
|
768
771
|
04-134,常磐自動車道,,大熊,,,
|
769
772
|
04-222,常磐自動車道,,東海スマート,,,
|
770
773
|
04-268,常磐自動車道,,三郷スマート,,,
|
@@ -2432,7 +2435,9 @@ tollbooth_id,road_name,route_name,tollbooth_name,direction,entrance_or_exit,note
|
|
2432
2435
|
21-101,横浜新道,,新保土ヶ谷,下り,,
|
2433
2436
|
21-102,横浜新道,,今井,,,
|
2434
2437
|
21-104,横浜新道,,戸塚本線,下り,,
|
2438
|
+
21-201,横浜新道,,新保土ヶ谷,上り,,
|
2435
2439
|
21-204,横浜新道,,戸塚本線,上り,,
|
2440
|
+
21-301,横浜新道,,新保土ヶ谷,下り,,
|
2436
2441
|
21-304,横浜新道,,戸塚本線,下り,,
|
2437
2442
|
23-002,第二京阪道路,,伏見,,,
|
2438
2443
|
23-003,第二京阪道路,,城南宮南,,,
|
@@ -2782,6 +2787,7 @@ tollbooth_id,road_name,route_name,tollbooth_name,direction,entrance_or_exit,note
|
|
2782
2787
|
73-003,日光宇都宮道路,,日光本線,,,
|
2783
2788
|
73-004,日光宇都宮道路,,日光,,,
|
2784
2789
|
73-005,日光宇都宮道路,,篠井,,,
|
2790
|
+
73-011,日光宇都宮道路,,大沢本線,,,
|
2785
2791
|
74-310,日高自動車道,,苫小牧東本線,,,
|
2786
2792
|
78-001,山陰自動車道,,安来,,,
|
2787
2793
|
78-002,山陰自動車道,,安来本線,,,
|
data/japan_etc.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
|
-
spec.add_runtime_dependency 'faraday', '~> 0
|
27
|
+
spec.add_runtime_dependency 'faraday', '~> 1.0'
|
28
28
|
spec.add_runtime_dependency 'nokogiri'
|
29
29
|
spec.add_runtime_dependency 'pdf-reader', '~> 2.2'
|
30
30
|
spec.add_runtime_dependency 'spreadsheet', '~> 1.2'
|
data/lib/japan_etc/tollbooth.rb
CHANGED
@@ -28,7 +28,7 @@ module JapanETC
|
|
28
28
|
new(identifier, road, name, direction, entrance_or_exit, note)
|
29
29
|
end
|
30
30
|
|
31
|
-
def initialize(identifier, road, name, direction = nil, entrance_or_exit = nil, note = nil)
|
31
|
+
def initialize(identifier, road, name, direction = nil, entrance_or_exit = nil, note = nil)
|
32
32
|
raise ValidationError if identifier.nil? || road.nil? || name.nil?
|
33
33
|
|
34
34
|
@identifier = identifier
|
data/lib/japan_etc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: japan_etc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Nakayama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|