rubocop-rubycw 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 267e9277fc92afe3b044dcc764e15313316387553c4343b18bdddc61a70c82ce
4
- data.tar.gz: 9b0e4621f503b1163dc2be5f7bd593250a7f1ff95cff6008d0cb898ee3a162dd
3
+ metadata.gz: a5c26092534075459ba32b265307ae0e5091bb00dbd2edb7f3b9f56b4a067c23
4
+ data.tar.gz: 9773c0b1104531124f98ade8adb90085f862400efe1d9249a35ac6e6667c5b4f
5
5
  SHA512:
6
- metadata.gz: '0819b989df9b8d331f67d76872a9c7239e045fd1a32e4dd57b2ae508c6b388af1d88bc4a0d10786e0662d36b9701613771d660bdb0d657e436835d181952ef19'
7
- data.tar.gz: 19916ad772aa2cb71089d537d205b2c18e6fabbcaa51ce6214965f912b48edc7193527d9430073fdc15fa6f876b1ecae67f9693fcf4494e078da19320676d281
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
@@ -15,7 +15,7 @@ You can get Ruby's warning as a RuboCop offense by rubocop-rubycw.
15
15
  Add this line to your application's Gemfile:
16
16
 
17
17
  ```ruby
18
- gem 'rubocop-rubycw'
18
+ gem 'rubocop-rubycw', require: false
19
19
  ```
20
20
 
21
21
  And then execute:
@@ -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 < Cop
7
+ class Rubycw < Base
8
8
  include RangeHelp
9
9
 
10
- def investigate(processed_source)
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, location: range, message: message)
18
+ add_offense(range, message: message)
19
19
  end
20
20
  end
21
21
 
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Rubycw
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -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.3.0")
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
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: 2020-01-02 00:00:00.000000000 Z
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.3.0
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.1.2
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: []