From 9e20e48c6e62b418bc84d56785aae1491df47438 Mon Sep 17 00:00:00 2001 From: Craig Zeise Date: Tue, 13 Feb 2024 13:42:58 -0600 Subject: [PATCH] Update rubocop to 1.60.2 Co-authored-by: Camilo Payan --- CHANGELOG.md | 12 +++++++----- Gemfile.lock | 8 ++++---- lib/standard/lsp/routes.rb | 2 +- standard.gemspec | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cdffb7d..dc748ff7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +* Updates rubocop to [1.60.2](https://github.com/rubocop/rubocop/releases/tag/v1.60.2) + ## 1.33.0 * Updates rubocop to [1.59.0](https://github.com/rubocop/rubocop/releases/tag/v1.59.0) @@ -59,9 +63,9 @@ plugin that mirrors a rubocop extension ## 1.28.3 * Older ruby support fixes from [@pboling](https://github.com/pboling): - - [#559](https://github.com/standardrb/standard/issues/559) - - [#561](https://github.com/standardrb/standard/issues/560) - - [#561](https://github.com/standardrb/standard/issues/561) + * [#559](https://github.com/standardrb/standard/issues/559) + * [#561](https://github.com/standardrb/standard/issues/560) + * [#561](https://github.com/standardrb/standard/issues/561) ## 1.28.2 @@ -546,7 +550,6 @@ mutations to RuboCop's default configuration) * [Performance/DeletePrefix](https://github.com/rubocop-hq/rubocop-performance/pull/105) * [Performance/DeleteSuffix](https://github.com/rubocop-hq/rubocop-performance/pull/105) - ## 0.4.6 * Disable `Naming/BinaryOperatorParameterName` because (when non-ascii method @@ -578,7 +581,6 @@ mutations to RuboCop's default configuration) safe * Allow comments in empty `when` blocks - ## 0.4.1 * add given/given! as `{}` friendly blocks [#172](https://github.com/testdouble/standard/pull/172) diff --git a/Gemfile.lock b/Gemfile.lock index 549b4aab..4b225c5f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,7 +4,7 @@ PATH standard (1.33.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.59.0) + rubocop (~> 1.60) standard-custom (~> 1.0.0) standard-performance (~> 1.3) @@ -23,7 +23,7 @@ GEM method_source (1.0.0) minitest (5.20.0) parallel (1.23.0) - parser (3.2.2.4) + parser (3.3.0.5) ast (~> 2.4.1) racc racc (1.7.1) @@ -31,11 +31,11 @@ GEM rake (13.0.6) regexp_parser (2.8.2) rexml (3.2.6) - rubocop (1.59.0) + rubocop (1.60.2) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.4) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) diff --git a/lib/standard/lsp/routes.rb b/lib/standard/lsp/routes.rb index 3afad197..e9f30acd 100644 --- a/lib/standard/lsp/routes.rb +++ b/lib/standard/lsp/routes.rb @@ -13,7 +13,7 @@ def initialize(writer, logger, standardizer) end def self.handle(name, &block) - define_method("handle_#{name}", &block) + define_method(:"handle_#{name}", &block) end def for(name) diff --git a/standard.gemspec b/standard.gemspec index 770195ad..8f323a97 100644 --- a/standard.gemspec +++ b/standard.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.metadata["rubygems_mfa_required"] = "true" - spec.add_dependency "rubocop", "~> 1.59.0" + spec.add_dependency "rubocop", "~> 1.60" spec.add_dependency "lint_roller", "~> 1.0" spec.add_dependency "standard-custom", "~> 1.0.0"