datarockets-style 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/Gemfile.lock +21 -19
- data/config/base.yml +40 -0
- data/datarockets-style.gemspec +3 -3
- data/lib/datarockets/style/version.rb +1 -1
- metadata +16 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6dc78f6cd8d3a32d136c4f7a9719ea01f5df29
|
4
|
+
data.tar.gz: e4dde397b38468d9d2323a15435bc0a44186bb52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8ced1a8863f844fa904ad34030a8fd7a1f52426fc7623d8e9171914d016a75040d9446e1aabb1daa6082f104a472f85bb93ee400d86566c3b32206e23d2922a
|
7
|
+
data.tar.gz: 7d0e9abce97cfea064339749a224f5db4fce7b44de4400218ede97fe42e05699a72a5bc0061d9abf61318d3da900c7449eaf3715326744e75eb3378fbbd1a5a0
|
data/CHANGELOG.md
CHANGED
@@ -4,13 +4,27 @@ The format is described in [Contributing notes](CONTRIBUTING.md#changelog-entry-
|
|
4
4
|
|
5
5
|
## master (unreleased)
|
6
6
|
|
7
|
+
## 0.10.0 (2020-07-17)
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
|
11
|
+
* Update rubocop to `0.88.0`. ([@r.dubrovsky][])
|
12
|
+
* Enable new cops `Lint/MixedRegexpCaptureTypes`, `Style/RedundantRegexpCharacterClass` and `Style/RedundantRegexpEscape`. Cops were added in version `0.85`.
|
13
|
+
* Enable new cop `Style/RedundantFetchBlock`. Cop was added in version `0.86`.
|
14
|
+
* Enable new cops `Style/AccessorGrouping`, `Style/BisectedAttrAccessor` and `Style/RedundantAssignment`. Cops were added in version `0.87`.
|
15
|
+
* Enable new cops `Lint/DuplicateElsifCondition`, `Style/ArrayCoercion`, `Style/CaseLikeIf`, `Style/HashAsLastArrayItem`, `Style/HashLikeCase` and `Style/RedundantFileExtensionInRequire`. Cops were added in version `0.88`.
|
16
|
+
* Update rubocop-rails to `2.6.0`.
|
17
|
+
* Update rubocop-rspec to `1.42.0`.
|
18
|
+
|
19
|
+
* Setup `no_braces` rule for `Style/HashAsLastArrayItem` cop which added in the rubocop version `0.88`.
|
20
|
+
|
7
21
|
## 0.9.0 (2020-05-27)
|
8
22
|
|
9
23
|
### Changed
|
10
24
|
|
11
25
|
* **(Breaking)** Drop support for Ruby 2.3. ([@r.dubrovsky][])
|
12
26
|
|
13
|
-
* Update rubocop to
|
27
|
+
* Update rubocop to `0.84.0`. ([@r.dubrovsky][])
|
14
28
|
* Enable new cops `Lint/RaiseException` and `Lint/StructNewOverride`. Cops were added in version `0.81`.
|
15
29
|
* Enable new cops `Layout/SpaceAroundMethodCallOperator` and `Style/ExponentialNotation`. Cops were added in version `0.82`.
|
16
30
|
* Enable new cops `Layout/EmptyLinesAroundAttributeAccessor` and `Style/SlicingWithRange`. Cops were added in version `0.83`.
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
datarockets-style (0.
|
5
|
-
rubocop (~> 0.
|
6
|
-
rubocop-rails (
|
7
|
-
rubocop-rspec (~> 1.
|
4
|
+
datarockets-style (0.10.0)
|
5
|
+
rubocop (~> 0.88)
|
6
|
+
rubocop-rails (>= 2.6.0, < 2.7.0)
|
7
|
+
rubocop-rspec (~> 1.42)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -14,27 +14,28 @@ GEM
|
|
14
14
|
i18n (>= 0.7, < 2)
|
15
15
|
minitest (~> 5.1)
|
16
16
|
tzinfo (~> 1.1)
|
17
|
-
ast (2.4.
|
17
|
+
ast (2.4.1)
|
18
18
|
byebug (11.1.3)
|
19
19
|
coderay (1.1.2)
|
20
20
|
concurrent-ruby (1.1.6)
|
21
21
|
diff-lcs (1.3)
|
22
|
-
i18n (1.8.
|
22
|
+
i18n (1.8.3)
|
23
23
|
concurrent-ruby (~> 1.0)
|
24
24
|
method_source (1.0.0)
|
25
25
|
minitest (5.14.1)
|
26
|
-
parallel (1.19.
|
27
|
-
parser (2.7.1.
|
28
|
-
ast (~> 2.4.
|
26
|
+
parallel (1.19.2)
|
27
|
+
parser (2.7.1.4)
|
28
|
+
ast (~> 2.4.1)
|
29
29
|
pry (0.13.1)
|
30
30
|
coderay (~> 1.1)
|
31
31
|
method_source (~> 1.0)
|
32
32
|
pry-byebug (3.9.0)
|
33
33
|
byebug (~> 11.0)
|
34
34
|
pry (~> 0.13.0)
|
35
|
-
rack (2.2.
|
35
|
+
rack (2.2.3)
|
36
36
|
rainbow (3.0.0)
|
37
37
|
rake (13.0.1)
|
38
|
+
regexp_parser (1.7.1)
|
38
39
|
rexml (3.2.4)
|
39
40
|
rspec (3.9.0)
|
40
41
|
rspec-core (~> 3.9.0)
|
@@ -49,22 +50,23 @@ GEM
|
|
49
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
51
|
rspec-support (~> 3.9.0)
|
51
52
|
rspec-support (3.9.0)
|
52
|
-
rubocop (0.
|
53
|
+
rubocop (0.88.0)
|
53
54
|
parallel (~> 1.10)
|
54
|
-
parser (>= 2.7.
|
55
|
+
parser (>= 2.7.1.1)
|
55
56
|
rainbow (>= 2.2.2, < 4.0)
|
57
|
+
regexp_parser (>= 1.7)
|
56
58
|
rexml
|
57
|
-
rubocop-ast (>= 0.0.
|
59
|
+
rubocop-ast (>= 0.1.0, < 1.0)
|
58
60
|
ruby-progressbar (~> 1.7)
|
59
61
|
unicode-display_width (>= 1.4.0, < 2.0)
|
60
|
-
rubocop-ast (0.0
|
62
|
+
rubocop-ast (0.1.0)
|
61
63
|
parser (>= 2.7.0.1)
|
62
|
-
rubocop-rails (2.
|
63
|
-
activesupport
|
64
|
+
rubocop-rails (2.6.0)
|
65
|
+
activesupport (>= 4.2.0)
|
64
66
|
rack (>= 1.1)
|
65
|
-
rubocop (>= 0.
|
66
|
-
rubocop-rspec (1.
|
67
|
-
rubocop (>= 0.
|
67
|
+
rubocop (>= 0.82.0)
|
68
|
+
rubocop-rspec (1.42.0)
|
69
|
+
rubocop (>= 0.87.0)
|
68
70
|
ruby-progressbar (1.10.1)
|
69
71
|
thread_safe (0.3.6)
|
70
72
|
tzinfo (1.2.7)
|
data/config/base.yml
CHANGED
@@ -57,6 +57,12 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
57
57
|
Lint/DeprecatedOpenSSLConstant:
|
58
58
|
Enabled: true
|
59
59
|
|
60
|
+
Lint/DuplicateElsifCondition:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Lint/MixedRegexpCaptureTypes:
|
64
|
+
Enabled: true
|
65
|
+
|
60
66
|
Lint/RaiseException:
|
61
67
|
Enabled: true
|
62
68
|
|
@@ -69,6 +75,18 @@ Naming/MemoizedInstanceVariableName:
|
|
69
75
|
Naming/RescuedExceptionsVariableName:
|
70
76
|
PreferredName: error
|
71
77
|
|
78
|
+
Style/AccessorGrouping:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
Style/ArrayCoercion:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
Style/BisectedAttrAccessor:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
Style/CaseLikeIf:
|
88
|
+
Enabled: true
|
89
|
+
|
72
90
|
Style/ClassAndModuleChildren:
|
73
91
|
EnforcedStyle: nested
|
74
92
|
|
@@ -78,9 +96,16 @@ Style/EmptyMethod:
|
|
78
96
|
Style/ExponentialNotation:
|
79
97
|
Enabled: true
|
80
98
|
|
99
|
+
Style/HashAsLastArrayItem:
|
100
|
+
Enabled: true
|
101
|
+
EnforcedStyle: no_braces
|
102
|
+
|
81
103
|
Style/HashEachMethods:
|
82
104
|
Enabled: true
|
83
105
|
|
106
|
+
Style/HashLikeCase:
|
107
|
+
Enabled: true
|
108
|
+
|
84
109
|
Style/HashTransformKeys:
|
85
110
|
Enabled: true
|
86
111
|
|
@@ -93,6 +118,21 @@ Style/FrozenStringLiteralComment:
|
|
93
118
|
Style/NestedInterpolation:
|
94
119
|
Enabled: true
|
95
120
|
|
121
|
+
Style/RedundantAssignment:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
Style/RedundantFetchBlock:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
Style/RedundantFileExtensionInRequire:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
Style/RedundantRegexpCharacterClass:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
Style/RedundantRegexpEscape:
|
134
|
+
Enabled: true
|
135
|
+
|
96
136
|
Style/SlicingWithRange:
|
97
137
|
Enabled: true
|
98
138
|
|
data/datarockets-style.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.add_dependency "rubocop", "~> 0.
|
34
|
-
spec.add_dependency "rubocop-rails", "
|
35
|
-
spec.add_dependency "rubocop-rspec", "~> 1.
|
33
|
+
spec.add_dependency "rubocop", "~> 0.88"
|
34
|
+
spec.add_dependency "rubocop-rails", ">= 2.6.0", "< 2.7.0"
|
35
|
+
spec.add_dependency "rubocop-rspec", "~> 1.42"
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datarockets-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Dubrovsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,42 +16,48 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.88'
|
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: '0.88'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.6.0
|
34
|
+
- - "<"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
36
|
+
version: 2.7.0
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.6.0
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
46
|
+
version: 2.7.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rubocop-rspec
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
53
|
+
version: '1.42'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
60
|
+
version: '1.42'
|
55
61
|
description:
|
56
62
|
email:
|
57
63
|
- r.dubrovsky@datarockets.com
|