pronto-rubocop 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/checks.yml +5 -1
- data/lib/pronto/rubocop/patch_cop.rb +9 -4
- data/lib/pronto/rubocop/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 756b96b9e8df77b37193360fe3fe6ecf809b78da8aa71b3efe7a87926dfc4607
|
4
|
+
data.tar.gz: e9a6a56746f4fd1b4ed40679b9233a5d364d0663a9249fd57ba43c03a988a954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66ee070e5860a174b28e19e36e52b76465fba4b0ea87497c13b4acf5a321c5a49381c97dbe5689fa4aa9666b2efff1a1e52258ec85b1762f504dec8cf99aaf61
|
7
|
+
data.tar.gz: d3ee6497d266630e4a38cfed9561ad13562a40b3662c340877086e35a8b8962dbf9bcab607391becde855545804b27655603dfd5aa40e78ad605609fe5e9128b
|
@@ -15,7 +15,7 @@ jobs:
|
|
15
15
|
strategy:
|
16
16
|
matrix:
|
17
17
|
ruby: ['2.4', '2.5', '2.6', '2.7', '3.0']
|
18
|
-
rubocop: ['0.63.1', '0.81.0', '0.84.0', '0.85.0', '0.86.0', '0.87.0', '< 1.0', '1.0.0', '1.29.1', '1.30.0', '< 2.0']
|
18
|
+
rubocop: ['0.63.1', '0.81.0', '0.84.0', '0.85.0', '0.86.0', '0.87.0', '< 1.0', '1.0.0', '1.29.1', '1.30.0', '1.38.0', '< 2.0']
|
19
19
|
include:
|
20
20
|
- ruby: '2.3'
|
21
21
|
rubocop: '0.63.1'
|
@@ -26,10 +26,14 @@ jobs:
|
|
26
26
|
rubocop: '1.29.1'
|
27
27
|
- ruby: '2.4'
|
28
28
|
rubocop: '1.30.0'
|
29
|
+
- ruby: '2.4'
|
30
|
+
rubocop: '1.38.0'
|
29
31
|
- ruby: '2.5'
|
30
32
|
rubocop: '1.29.1'
|
31
33
|
- ruby: '2.5'
|
32
34
|
rubocop: '1.30.0'
|
35
|
+
- ruby: '2.5'
|
36
|
+
rubocop: '1.38.0'
|
33
37
|
fail-fast: false
|
34
38
|
steps:
|
35
39
|
- uses: actions/checkout@v2
|
@@ -22,10 +22,15 @@ module Pronto
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def processed_source
|
25
|
-
@processed_source ||=
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
@processed_source ||= begin
|
26
|
+
processed_source = ::RuboCop::ProcessedSource.from_file(
|
27
|
+
path,
|
28
|
+
rubocop_config.target_ruby_version
|
29
|
+
)
|
30
|
+
processed_source.registry = registry if processed_source.respond_to?(:registry=)
|
31
|
+
processed_source.config = rubocop_config if processed_source.respond_to?(:config=)
|
32
|
+
processed_source
|
33
|
+
end
|
29
34
|
end
|
30
35
|
|
31
36
|
def registry
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -86,7 +86,7 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '1.2'
|
89
|
-
description:
|
89
|
+
description:
|
90
90
|
email: mindaugas.mozuras@gmail.com
|
91
91
|
executables: []
|
92
92
|
extensions: []
|
@@ -107,7 +107,7 @@ homepage: http://github.com/mmozuras/pronto-rubocop
|
|
107
107
|
licenses:
|
108
108
|
- MIT
|
109
109
|
metadata: {}
|
110
|
-
post_install_message:
|
110
|
+
post_install_message:
|
111
111
|
rdoc_options: []
|
112
112
|
require_paths:
|
113
113
|
- lib
|
@@ -122,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
126
|
-
signing_key:
|
125
|
+
rubygems_version: 3.3.15
|
126
|
+
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Pronto runner for Rubocop, ruby code analyzer
|
129
129
|
test_files: []
|