rubocopital 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +52 -0
- data/.gitlab-ci.yml +3 -17
- data/.rubocop-performance.yml +7 -0
- data/default.yml +22 -6
- data/lib/rubocopital/version.rb +1 -1
- data/rubocopital.gemspec +2 -1
- metadata +20 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7651fef82b8bde7a33fc9b00acb986a10fc26781b1fa9a7e2e7317199ed13886
|
|
4
|
+
data.tar.gz: 0026601405735f8393291eec398feb58ba33855ba0cac7461950aa7d5d7f1b1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b093f210b6387f332025ab9574b54074b05a86c62973186ba0b8d37389ac20647cc732a066348633bce56914f345eaf2972c814f7045bfa1ef916aedabb7ae76
|
|
7
|
+
data.tar.gz: 5dcc0a424e884ea10186394657a03f3ac8ec2ade616d7fb076ed9ac0a3d53cffac111fcd576c94e97c2e66459ca027ae5b4cfe7f7b58bad360fcd926c624dc79
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Ruby
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build-ruby-26:
|
|
7
|
+
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v1
|
|
12
|
+
- name: Set up Ruby 2.6
|
|
13
|
+
uses: actions/setup-ruby@v1
|
|
14
|
+
with:
|
|
15
|
+
ruby-version: 2.6.x
|
|
16
|
+
- name: Build and test with Rake
|
|
17
|
+
run: |
|
|
18
|
+
gem install bundler
|
|
19
|
+
bundle install --jobs 4 --retry 3
|
|
20
|
+
bundle exec rake
|
|
21
|
+
|
|
22
|
+
build-ruby-25:
|
|
23
|
+
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v1
|
|
28
|
+
- name: Set up Ruby 2.5
|
|
29
|
+
uses: actions/setup-ruby@v1
|
|
30
|
+
with:
|
|
31
|
+
ruby-version: 2.5.x
|
|
32
|
+
- name: Build and test with Rake
|
|
33
|
+
run: |
|
|
34
|
+
gem install bundler
|
|
35
|
+
bundle install --jobs 4 --retry 3
|
|
36
|
+
bundle exec rake
|
|
37
|
+
|
|
38
|
+
build-ruby-24:
|
|
39
|
+
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v1
|
|
44
|
+
- name: Set up Ruby 2.5
|
|
45
|
+
uses: actions/setup-ruby@v1
|
|
46
|
+
with:
|
|
47
|
+
ruby-version: 2.5.x
|
|
48
|
+
- name: Build and test with Rake
|
|
49
|
+
run: |
|
|
50
|
+
gem install bundler
|
|
51
|
+
bundle install --jobs 4 --retry 3
|
|
52
|
+
bundle exec rake
|
data/.gitlab-ci.yml
CHANGED
|
@@ -1,36 +1,22 @@
|
|
|
1
1
|
stages:
|
|
2
2
|
- test
|
|
3
3
|
|
|
4
|
-
test_ruby_2_2:
|
|
5
|
-
image: ruby:2.2.10
|
|
6
|
-
stage: test
|
|
7
|
-
script:
|
|
8
|
-
- bundle install
|
|
9
|
-
- bundle exec rake
|
|
10
|
-
|
|
11
|
-
test_ruby_2_3:
|
|
12
|
-
image: ruby:2.3.7
|
|
13
|
-
stage: test
|
|
14
|
-
script:
|
|
15
|
-
- bundle install
|
|
16
|
-
- bundle exec rake
|
|
17
|
-
|
|
18
4
|
test_ruby_2_4:
|
|
19
|
-
image: ruby:2.4.
|
|
5
|
+
image: ruby:2.4.9
|
|
20
6
|
stage: test
|
|
21
7
|
script:
|
|
22
8
|
- bundle install
|
|
23
9
|
- bundle exec rake
|
|
24
10
|
|
|
25
11
|
test_ruby_2_5:
|
|
26
|
-
image: ruby:2.5.
|
|
12
|
+
image: ruby:2.5.7
|
|
27
13
|
stage: test
|
|
28
14
|
script:
|
|
29
15
|
- bundle install
|
|
30
16
|
- bundle exec rake
|
|
31
17
|
|
|
32
18
|
test_ruby_2_6:
|
|
33
|
-
image: ruby:2.6
|
|
19
|
+
image: ruby:2.6.5
|
|
34
20
|
stage: test
|
|
35
21
|
script:
|
|
36
22
|
- bundle install
|
data/default.yml
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
inherit_from: .rubocop-performance.yml
|
|
2
|
+
|
|
1
3
|
AllCops:
|
|
2
4
|
TargetRubyVersion: 2.3
|
|
3
5
|
Exclude:
|
|
@@ -108,6 +110,13 @@ Layout/EndAlignment:
|
|
|
108
110
|
# YC Compliant
|
|
109
111
|
EnforcedStyleAlignWith: variable
|
|
110
112
|
|
|
113
|
+
Layout/HeredocArgumentClosingParenthesis:
|
|
114
|
+
Enabled: true
|
|
115
|
+
|
|
116
|
+
Layout/IndentFirstParameter:
|
|
117
|
+
Enabled: true
|
|
118
|
+
EnforcedStyle: consistent
|
|
119
|
+
|
|
111
120
|
Layout/MultilineMethodCallIndentation:
|
|
112
121
|
EnforcedStyle: indented
|
|
113
122
|
|
|
@@ -147,12 +156,6 @@ Metrics/ModuleLength:
|
|
|
147
156
|
# YC Compliant
|
|
148
157
|
Enabled: false
|
|
149
158
|
|
|
150
|
-
Performance/ChainArrayAllocation:
|
|
151
|
-
Enabled: true
|
|
152
|
-
|
|
153
|
-
Performance/OpenStruct:
|
|
154
|
-
Enabled: true
|
|
155
|
-
|
|
156
159
|
Documentation:
|
|
157
160
|
# YC Compliant
|
|
158
161
|
Enabled: false
|
|
@@ -214,6 +217,10 @@ Style/ModuleFunction:
|
|
|
214
217
|
Style/MultilineMethodSignature:
|
|
215
218
|
Enabled: true
|
|
216
219
|
|
|
220
|
+
Style/NegatedUnless:
|
|
221
|
+
Enabled: true
|
|
222
|
+
EnforcedStyle: both
|
|
223
|
+
|
|
217
224
|
Style/StringLiterals:
|
|
218
225
|
# YC Compliant
|
|
219
226
|
Enabled: false
|
|
@@ -225,6 +232,15 @@ Style/StringLiteralsInInterpolation:
|
|
|
225
232
|
Lint/DisjunctiveAssignmentInConstructor:
|
|
226
233
|
Enabled: true
|
|
227
234
|
|
|
235
|
+
Lint/HeredocMethodCallPosition:
|
|
236
|
+
Enabled: true
|
|
237
|
+
|
|
238
|
+
Lint/SafeNavigationWithEmpty:
|
|
239
|
+
Enabled: true
|
|
240
|
+
|
|
241
|
+
Lint/ToJSON:
|
|
242
|
+
Enabled: true
|
|
243
|
+
|
|
228
244
|
Rails/UnknownEnv:
|
|
229
245
|
Environments:
|
|
230
246
|
- development
|
data/lib/rubocopital/version.rb
CHANGED
data/rubocopital.gemspec
CHANGED
|
@@ -32,7 +32,8 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
33
33
|
spec.require_paths = ["lib"]
|
|
34
34
|
|
|
35
|
-
spec.add_runtime_dependency "rubocop", "~> 0.
|
|
35
|
+
spec.add_runtime_dependency "rubocop", "~> 0.70.0"
|
|
36
|
+
spec.add_runtime_dependency "rubocop-performance", "1.0.0"
|
|
36
37
|
spec.add_runtime_dependency "rubocop-rspec", "1.32.0"
|
|
37
38
|
|
|
38
39
|
spec.add_development_dependency "bundler"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocopital
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcel Eeken
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-12-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rubocop
|
|
@@ -17,14 +17,28 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: 0.
|
|
20
|
+
version: 0.70.0
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: 0.
|
|
27
|
+
version: 0.70.0
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: rubocop-performance
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - '='
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: 1.0.0
|
|
35
|
+
type: :runtime
|
|
36
|
+
prerelease: false
|
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - '='
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: 1.0.0
|
|
28
42
|
- !ruby/object:Gem::Dependency
|
|
29
43
|
name: rubocop-rspec
|
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -91,9 +105,11 @@ executables: []
|
|
|
91
105
|
extensions: []
|
|
92
106
|
extra_rdoc_files: []
|
|
93
107
|
files:
|
|
108
|
+
- ".github/workflows/ruby.yml"
|
|
94
109
|
- ".gitignore"
|
|
95
110
|
- ".gitlab-ci.yml"
|
|
96
111
|
- ".rspec"
|
|
112
|
+
- ".rubocop-performance.yml"
|
|
97
113
|
- ".rubocop-rspec.yml"
|
|
98
114
|
- ".rubocop.yml"
|
|
99
115
|
- ".travis.yml"
|