rubocop-rubycw 0.1.4 → 0.1.5
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/.circleci/config.yml +6 -7
- data/README.md +1 -1
- data/lib/rubocop/cop/rubycw/rubycw.rb +3 -3
- data/lib/rubocop/rubycw/version.rb +1 -1
- data/rubocop-rubycw.gemspec +2 -3
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5c26092534075459ba32b265307ae0e5091bb00dbd2edb7f3b9f56b4a067c23
|
4
|
+
data.tar.gz: 9773c0b1104531124f98ade8adb90085f862400efe1d9249a35ac6e6667c5b4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e03d4a522a88600d43b9688eaf013bce5ae1f654c36232210366022ae6e47dd87d2041fa190bbb1be93526233795fdfba4ca6f4ec6fe015a69dc17a2cbc0cd
|
7
|
+
data.tar.gz: 369fce7367f1cc72394d052a722955a545302a7429ceab1bcd38ffcec81e7c5945a90322383e757dffadc0ec2501ba188eee71bd41157f5adc3fc623ec645aed
|
data/.circleci/config.yml
CHANGED
@@ -7,12 +7,6 @@ steps: &steps
|
|
7
7
|
- run: bundle exec rake
|
8
8
|
|
9
9
|
jobs:
|
10
|
-
|
11
|
-
ruby-2.3:
|
12
|
-
docker:
|
13
|
-
- image: circleci/ruby:2.3
|
14
|
-
<<: *steps
|
15
|
-
|
16
10
|
ruby-2.4:
|
17
11
|
docker:
|
18
12
|
- image: circleci/ruby:2.4
|
@@ -33,6 +27,11 @@ jobs:
|
|
33
27
|
- image: circleci/ruby:2.7
|
34
28
|
<<: *steps
|
35
29
|
|
30
|
+
ruby-3.0:
|
31
|
+
docker:
|
32
|
+
- image: circleci/ruby:3.0
|
33
|
+
<<: *steps
|
34
|
+
|
36
35
|
ruby-head:
|
37
36
|
docker:
|
38
37
|
- image: rubocophq/circleci-ruby-snapshot:latest
|
@@ -42,9 +41,9 @@ workflows:
|
|
42
41
|
version: 2
|
43
42
|
build:
|
44
43
|
jobs:
|
45
|
-
- ruby-2.3
|
46
44
|
- ruby-2.4
|
47
45
|
- ruby-2.5
|
48
46
|
- ruby-2.6
|
49
47
|
- ruby-2.7
|
48
|
+
- ruby-3.0
|
50
49
|
- ruby-head
|
data/README.md
CHANGED
@@ -4,10 +4,10 @@ module RuboCop
|
|
4
4
|
module Cop
|
5
5
|
module Rubycw
|
6
6
|
# Execute `ruby -cw` and wrap the warning as RuboCop offense.
|
7
|
-
class Rubycw <
|
7
|
+
class Rubycw < Base
|
8
8
|
include RangeHelp
|
9
9
|
|
10
|
-
def
|
10
|
+
def on_new_investigation
|
11
11
|
source = processed_source.raw_source
|
12
12
|
|
13
13
|
warnings(source).each do |line|
|
@@ -15,7 +15,7 @@ module RuboCop
|
|
15
15
|
message = line[/.+:\d+: warning: (.+)$/, 1]
|
16
16
|
|
17
17
|
range = source_range(processed_source.buffer, lnum, 0)
|
18
|
-
add_offense(range,
|
18
|
+
add_offense(range, message: message)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
data/rubocop-rubycw.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.summary = %q{Integrate RuboCop and ruby -cw}
|
10
10
|
spec.description = %q{Integrate RuboCop and ruby -cw}
|
11
11
|
spec.homepage = "https://github.com/rubocop-hq/rubocop-rubycw"
|
12
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
15
15
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
@@ -27,6 +27,5 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
spec.add_runtime_dependency 'rubocop'
|
30
|
+
spec.add_runtime_dependency 'rubocop', '~> 1.0'
|
31
31
|
end
|
32
|
-
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rubycw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka Pocke Kuwabara
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
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
|
description: Integrate RuboCop and ruby -cw
|
28
28
|
email:
|
29
29
|
- kuwabara@pocke.me
|
@@ -56,7 +56,7 @@ licenses:
|
|
56
56
|
metadata:
|
57
57
|
homepage_uri: https://github.com/rubocop-hq/rubocop-rubycw
|
58
58
|
source_code_uri: https://github.com/rubocop-hq/rubocop-rubycw
|
59
|
-
post_install_message:
|
59
|
+
post_install_message:
|
60
60
|
rdoc_options: []
|
61
61
|
require_paths:
|
62
62
|
- lib
|
@@ -64,15 +64,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
65
65
|
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 2.
|
67
|
+
version: 2.4.0
|
68
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.
|
75
|
-
signing_key:
|
74
|
+
rubygems_version: 3.3.0.dev
|
75
|
+
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Integrate RuboCop and ruby -cw
|
78
78
|
test_files: []
|