From 1cdfe7607b70cbdcff32b74f9e8d2d84ae4a5b84 Mon Sep 17 00:00:00 2001 From: "Kayla Reopelle (she/her)" <87386821+kaylareopelle@users.noreply.github.com> Date: Thu, 22 Feb 2024 16:41:17 -0800 Subject: [PATCH] chore: Update rubocop and rubocop-performance in helper gems (#878) --- helpers/mysql/opentelemetry-helpers-mysql.gemspec | 4 ++-- .../opentelemetry-helpers-sql-obfuscation.gemspec | 4 ++-- helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helpers/mysql/opentelemetry-helpers-mysql.gemspec b/helpers/mysql/opentelemetry-helpers-mysql.gemspec index 6b2882279..37cd18746 100644 --- a/helpers/mysql/opentelemetry-helpers-mysql.gemspec +++ b/helpers/mysql/opentelemetry-helpers-mysql.gemspec @@ -32,8 +32,8 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'minitest', '~> 5.0' spec.add_development_dependency 'opentelemetry-test-helpers', '~> 0.3' spec.add_development_dependency 'rake', '~> 13.0' - spec.add_development_dependency 'rubocop', '~> 1.57.2' - spec.add_development_dependency 'rubocop-performance', '~> 1.19.1' + spec.add_development_dependency 'rubocop', '~> 1.60.2' + spec.add_development_dependency 'rubocop-performance', '~> 1.20.1' spec.add_development_dependency 'simplecov', '~> 0.22.0' spec.add_development_dependency 'yard', '~> 0.9' spec.add_development_dependency 'yard-doctest', '~> 0.1.6' diff --git a/helpers/sql-obfuscation/opentelemetry-helpers-sql-obfuscation.gemspec b/helpers/sql-obfuscation/opentelemetry-helpers-sql-obfuscation.gemspec index 6cf7cd965..e35142382 100644 --- a/helpers/sql-obfuscation/opentelemetry-helpers-sql-obfuscation.gemspec +++ b/helpers/sql-obfuscation/opentelemetry-helpers-sql-obfuscation.gemspec @@ -31,8 +31,8 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'minitest', '~> 5.0' spec.add_development_dependency 'opentelemetry-test-helpers', '~> 0.3' spec.add_development_dependency 'rake', '~> 13.0' - spec.add_development_dependency 'rubocop', '~> 1.57.2' - spec.add_development_dependency 'rubocop-performance', '~> 1.19.1' + spec.add_development_dependency 'rubocop', '~> 1.60.2' + spec.add_development_dependency 'rubocop-performance', '~> 1.20.1' spec.add_development_dependency 'yard', '~> 0.9' spec.add_development_dependency 'yard-doctest', '~> 0.1.6' diff --git a/helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb b/helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb index 650ba63a7..e340cbdb5 100644 --- a/helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb +++ b/helpers/sql-obfuscation/test/helpers/sql_obfuscation_test.rb @@ -96,7 +96,7 @@ def self.load_fixture acceptable_outputs << FAILED_TO_OBFUSCATE_MESSAGE if test_case['malformed'] dialects.each do |dialect| - define_method("test_sql_obfuscation_#{name}_#{dialect}") do + define_method(:"test_sql_obfuscation_#{name}_#{dialect}") do actual_obfuscated = OpenTelemetry::Helpers::SqlObfuscation.obfuscate_sql(query, adapter: dialect.to_sym) message = build_failure_message(query, dialect, acceptable_outputs, actual_obfuscated)