Skip to content

Commit

Permalink
Update RuboCop to 1.12.1
Browse files Browse the repository at this point in the history
This PR updates RuboCop to 1.12.1.
rubocop/rubocop@v1.11.0...v1.12.1

It supports private API change from `RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP`
to `RuboCop::DirectiveComment::COMMENT_DIRECTIVE_REGEXP`.

- rubocop/rubocop@7f1f75c
- rubocop/rubocop@0421710

And `Style/StringChars` cop is added in RuboCop 1.12. It is up to maintainers to
decide whether to enable it :-)
rubocop/rubocop#9615
  • Loading branch information
koic committed Apr 5, 2021
1 parent f3d896c commit cfd3a54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
standard (1.0.4)
rubocop (= 1.11.0)
rubocop (= 1.12.1)
rubocop-performance (= 1.10.1)

GEM
Expand All @@ -24,7 +24,7 @@ GEM
rake (13.0.3)
regexp_parser (2.1.1)
rexml (3.2.4)
rubocop (1.11.0)
rubocop (1.12.1)
parallel (~> 1.10)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
Expand Down
6 changes: 3 additions & 3 deletions lib/standard/rubocop/ext.rb
Expand Up @@ -6,9 +6,9 @@ def message(_)
end
end

class CommentConfig
remove_const :COMMENT_DIRECTIVE_REGEXP
COMMENT_DIRECTIVE_REGEXP = Regexp.new(
class DirectiveComment
remove_const :DIRECTIVE_COMMENT_REGEXP
DIRECTIVE_COMMENT_REGEXP = Regexp.new(
('# (?:standard|rubocop) : ((?:disable|enable|todo))\b ' + COPS_PATTERN)
.gsub(" ", '\s*')
)
Expand Down
2 changes: 1 addition & 1 deletion standard.gemspec
Expand Up @@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "rubocop", "1.11.0"
spec.add_dependency "rubocop", "1.12.1"
spec.add_dependency "rubocop-performance", "1.10.1"
end

0 comments on commit cfd3a54

Please sign in to comment.