diff --git a/.instrumentation_generator/templates/Gemfile b/.instrumentation_generator/templates/Gemfile index 3723fca98e..579438213d 100644 --- a/.instrumentation_generator/templates/Gemfile +++ b/.instrumentation_generator/templates/Gemfile @@ -20,7 +20,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.0' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.17.1' gem 'webmock', '~> 3.24' diff --git a/Gemfile b/Gemfile index 18df87d61b..0c317a23b9 100644 --- a/Gemfile +++ b/Gemfile @@ -7,5 +7,5 @@ source 'https://rubygems.org' gem 'rake', '~> 13.0' -gem 'rubocop', '~> 1.75.1' +gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' diff --git a/helpers/mysql/Gemfile b/helpers/mysql/Gemfile index 3d1086e0fb..7cb7b668fa 100644 --- a/helpers/mysql/Gemfile +++ b/helpers/mysql/Gemfile @@ -13,7 +13,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/helpers/sql-obfuscation/Gemfile b/helpers/sql-obfuscation/Gemfile index 3d1086e0fb..7cb7b668fa 100644 --- a/helpers/sql-obfuscation/Gemfile +++ b/helpers/sql-obfuscation/Gemfile @@ -13,7 +13,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/helpers/sql/Gemfile b/helpers/sql/Gemfile index d9711191f1..d14143591b 100644 --- a/helpers/sql/Gemfile +++ b/helpers/sql/Gemfile @@ -18,7 +18,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/action_mailer/Gemfile b/instrumentation/action_mailer/Gemfile index 1433110629..9737b82a6c 100644 --- a/instrumentation/action_mailer/Gemfile +++ b/instrumentation/action_mailer/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/action_pack/Gemfile b/instrumentation/action_pack/Gemfile index cc0e435d99..61c7975c49 100644 --- a/instrumentation/action_pack/Gemfile +++ b/instrumentation/action_pack/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/action_view/Gemfile b/instrumentation/action_view/Gemfile index afbb2d8e11..911fcfc676 100644 --- a/instrumentation/action_view/Gemfile +++ b/instrumentation/action_view/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/active_job/Gemfile b/instrumentation/active_job/Gemfile index a2eceb969b..35abd9d688 100644 --- a/instrumentation/active_job/Gemfile +++ b/instrumentation/active_job/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/active_model_serializers/Gemfile b/instrumentation/active_model_serializers/Gemfile index eaa2d79162..174682f81f 100644 --- a/instrumentation/active_model_serializers/Gemfile +++ b/instrumentation/active_model_serializers/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/active_record/Gemfile b/instrumentation/active_record/Gemfile index a2eceb969b..35abd9d688 100644 --- a/instrumentation/active_record/Gemfile +++ b/instrumentation/active_record/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/active_storage/Gemfile b/instrumentation/active_storage/Gemfile index afbb2d8e11..911fcfc676 100644 --- a/instrumentation/active_storage/Gemfile +++ b/instrumentation/active_storage/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/active_support/Gemfile b/instrumentation/active_support/Gemfile index 21723b363c..eac033c5e2 100644 --- a/instrumentation/active_support/Gemfile +++ b/instrumentation/active_support/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/all/Gemfile b/instrumentation/all/Gemfile index 4e664ef1c5..1e9fb077cc 100644 --- a/instrumentation/all/Gemfile +++ b/instrumentation/all/Gemfile @@ -12,7 +12,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/aws_lambda/Gemfile b/instrumentation/aws_lambda/Gemfile index a30cb0e121..204d0e0b36 100644 --- a/instrumentation/aws_lambda/Gemfile +++ b/instrumentation/aws_lambda/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/aws_sdk/Gemfile b/instrumentation/aws_sdk/Gemfile index a30cb0e121..204d0e0b36 100644 --- a/instrumentation/aws_sdk/Gemfile +++ b/instrumentation/aws_sdk/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/base/Gemfile b/instrumentation/base/Gemfile index 7974f37165..ba339ca68d 100644 --- a/instrumentation/base/Gemfile +++ b/instrumentation/base/Gemfile @@ -13,7 +13,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/bunny/Gemfile b/instrumentation/bunny/Gemfile index 8f27a80732..8933592e8d 100644 --- a/instrumentation/bunny/Gemfile +++ b/instrumentation/bunny/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/concurrent_ruby/Gemfile b/instrumentation/concurrent_ruby/Gemfile index 8f27a80732..8933592e8d 100644 --- a/instrumentation/concurrent_ruby/Gemfile +++ b/instrumentation/concurrent_ruby/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/dalli/Gemfile b/instrumentation/dalli/Gemfile index 8f27a80732..8933592e8d 100644 --- a/instrumentation/dalli/Gemfile +++ b/instrumentation/dalli/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/delayed_job/Gemfile b/instrumentation/delayed_job/Gemfile index 648e7a08f1..67252ecfd3 100644 --- a/instrumentation/delayed_job/Gemfile +++ b/instrumentation/delayed_job/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/delayed_job/test/opentelemetry/instrumentation/delayed_job_test.rb b/instrumentation/delayed_job/test/opentelemetry/instrumentation/delayed_job_test.rb index 907122b347..561cc67164 100644 --- a/instrumentation/delayed_job/test/opentelemetry/instrumentation/delayed_job_test.rb +++ b/instrumentation/delayed_job/test/opentelemetry/instrumentation/delayed_job_test.rb @@ -55,9 +55,11 @@ it 'after job' do payload = Class.new do + # rubocop:disable Naming/PredicateMethod def perform true end + # rubocop:enable Naming/PredicateMethod end job = Delayed::Job.enqueue(payload.new) diff --git a/instrumentation/ethon/Gemfile b/instrumentation/ethon/Gemfile index 8f27a80732..8933592e8d 100644 --- a/instrumentation/ethon/Gemfile +++ b/instrumentation/ethon/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/excon/Gemfile b/instrumentation/excon/Gemfile index 33388452b1..9484691699 100644 --- a/instrumentation/excon/Gemfile +++ b/instrumentation/excon/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/faraday/Gemfile b/instrumentation/faraday/Gemfile index 33388452b1..9484691699 100644 --- a/instrumentation/faraday/Gemfile +++ b/instrumentation/faraday/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/grape/Gemfile b/instrumentation/grape/Gemfile index 95a1c92820..33a221f896 100644 --- a/instrumentation/grape/Gemfile +++ b/instrumentation/grape/Gemfile @@ -18,7 +18,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/graphql/Gemfile b/instrumentation/graphql/Gemfile index a2eceb969b..35abd9d688 100644 --- a/instrumentation/graphql/Gemfile +++ b/instrumentation/graphql/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/grpc/Gemfile b/instrumentation/grpc/Gemfile index 529d14941a..e6a605279b 100644 --- a/instrumentation/grpc/Gemfile +++ b/instrumentation/grpc/Gemfile @@ -18,7 +18,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.4' gem 'rake', '~> 13.2' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/gruf/Gemfile b/instrumentation/gruf/Gemfile index 82410bca6d..6113ae0fa6 100644 --- a/instrumentation/gruf/Gemfile +++ b/instrumentation/gruf/Gemfile @@ -18,7 +18,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.0' gem 'rake', '~> 12.3.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/http/Gemfile b/instrumentation/http/Gemfile index a07a1265b1..60447ac0ab 100644 --- a/instrumentation/http/Gemfile +++ b/instrumentation/http/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/http_client/Gemfile b/instrumentation/http_client/Gemfile index a2eceb969b..35abd9d688 100644 --- a/instrumentation/http_client/Gemfile +++ b/instrumentation/http_client/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/httpx/Gemfile b/instrumentation/httpx/Gemfile index a07a1265b1..60447ac0ab 100644 --- a/instrumentation/httpx/Gemfile +++ b/instrumentation/httpx/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/koala/Gemfile b/instrumentation/koala/Gemfile index a07a1265b1..60447ac0ab 100644 --- a/instrumentation/koala/Gemfile +++ b/instrumentation/koala/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/lmdb/Gemfile b/instrumentation/lmdb/Gemfile index a2eceb969b..35abd9d688 100644 --- a/instrumentation/lmdb/Gemfile +++ b/instrumentation/lmdb/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/mongo/Gemfile b/instrumentation/mongo/Gemfile index 0378df5f77..1ed03c3be7 100644 --- a/instrumentation/mongo/Gemfile +++ b/instrumentation/mongo/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/mysql2/Gemfile b/instrumentation/mysql2/Gemfile index c9fadb8134..93fb6fe9d9 100644 --- a/instrumentation/mysql2/Gemfile +++ b/instrumentation/mysql2/Gemfile @@ -18,7 +18,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/net_http/Gemfile b/instrumentation/net_http/Gemfile index 31b475bb19..a2a8674575 100644 --- a/instrumentation/net_http/Gemfile +++ b/instrumentation/net_http/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0.1' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/pg/Gemfile b/instrumentation/pg/Gemfile index 912305ffee..9cd578b547 100644 --- a/instrumentation/pg/Gemfile +++ b/instrumentation/pg/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/que/Gemfile b/instrumentation/que/Gemfile index 2c835fa4c6..faa7562f6c 100644 --- a/instrumentation/que/Gemfile +++ b/instrumentation/que/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/racecar/Gemfile b/instrumentation/racecar/Gemfile index 57d90e370f..3e17908bf9 100644 --- a/instrumentation/racecar/Gemfile +++ b/instrumentation/racecar/Gemfile @@ -23,7 +23,7 @@ group :test do gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' gem 'rspec-mocks' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/rack/Gemfile b/instrumentation/rack/Gemfile index c6751136e2..2d7875a45f 100644 --- a/instrumentation/rack/Gemfile +++ b/instrumentation/rack/Gemfile @@ -16,7 +16,7 @@ group :test do gem 'opentelemetry-sdk-experimental', '~> 0.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/rails/Gemfile b/instrumentation/rails/Gemfile index ef771300ff..59101eee6e 100644 --- a/instrumentation/rails/Gemfile +++ b/instrumentation/rails/Gemfile @@ -16,7 +16,7 @@ group :test do gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rack-test', '~> 2.1.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/rake/Gemfile b/instrumentation/rake/Gemfile index b7ae0066e5..286f809466 100644 --- a/instrumentation/rake/Gemfile +++ b/instrumentation/rake/Gemfile @@ -18,7 +18,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.0' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/rdkafka/Gemfile b/instrumentation/rdkafka/Gemfile index e152bbd50f..496c887e72 100644 --- a/instrumentation/rdkafka/Gemfile +++ b/instrumentation/rdkafka/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/redis/Gemfile b/instrumentation/redis/Gemfile index 8f27a80732..8933592e8d 100644 --- a/instrumentation/redis/Gemfile +++ b/instrumentation/redis/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/resque/Gemfile b/instrumentation/resque/Gemfile index 0a1b56028d..d34d609ceb 100644 --- a/instrumentation/resque/Gemfile +++ b/instrumentation/resque/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/restclient/Gemfile b/instrumentation/restclient/Gemfile index 33388452b1..9484691699 100644 --- a/instrumentation/restclient/Gemfile +++ b/instrumentation/restclient/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/rspec/Gemfile b/instrumentation/rspec/Gemfile index be2d93adde..2539442e57 100644 --- a/instrumentation/rspec/Gemfile +++ b/instrumentation/rspec/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/ruby_kafka/Gemfile b/instrumentation/ruby_kafka/Gemfile index 07ac19d13b..6dbb02d0c7 100644 --- a/instrumentation/ruby_kafka/Gemfile +++ b/instrumentation/ruby_kafka/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/sidekiq/Gemfile b/instrumentation/sidekiq/Gemfile index db0968f4c8..99f0a8f43e 100644 --- a/instrumentation/sidekiq/Gemfile +++ b/instrumentation/sidekiq/Gemfile @@ -14,7 +14,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/instrumentation/sinatra/Gemfile b/instrumentation/sinatra/Gemfile index 5c2bbcf78b..e34da4052b 100644 --- a/instrumentation/sinatra/Gemfile +++ b/instrumentation/sinatra/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rack-test', '~> 2.1' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/instrumentation/trilogy/Gemfile b/instrumentation/trilogy/Gemfile index 852411dbbb..1b269dddd6 100644 --- a/instrumentation/trilogy/Gemfile +++ b/instrumentation/trilogy/Gemfile @@ -15,7 +15,7 @@ group :test do gem 'opentelemetry-sdk', '~> 1.1' gem 'opentelemetry-test-helpers', '~> 0.3' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/processor/baggage/Gemfile b/processor/baggage/Gemfile index d0f1fbee53..62d3167c48 100644 --- a/processor/baggage/Gemfile +++ b/processor/baggage/Gemfile @@ -10,7 +10,7 @@ group :test do gem 'minitest', '~> 5.0' gem 'opentelemetry-sdk', '~> 1.1' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/propagator/google_cloud_trace_context/Gemfile b/propagator/google_cloud_trace_context/Gemfile index 32cf4f817d..dcb12336fd 100644 --- a/propagator/google_cloud_trace_context/Gemfile +++ b/propagator/google_cloud_trace_context/Gemfile @@ -8,7 +8,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/propagator/ottrace/Gemfile b/propagator/ottrace/Gemfile index 9708a23451..bf02a254dc 100644 --- a/propagator/ottrace/Gemfile +++ b/propagator/ottrace/Gemfile @@ -9,7 +9,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/propagator/vitess/Gemfile b/propagator/vitess/Gemfile index e7c1bde87c..4dc6e68538 100644 --- a/propagator/vitess/Gemfile +++ b/propagator/vitess/Gemfile @@ -9,7 +9,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/propagator/xray/Gemfile b/propagator/xray/Gemfile index 5516c83446..e111f7525a 100644 --- a/propagator/xray/Gemfile +++ b/propagator/xray/Gemfile @@ -12,7 +12,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/resources/aws/Gemfile b/resources/aws/Gemfile index b55c4be964..351b117b66 100644 --- a/resources/aws/Gemfile +++ b/resources/aws/Gemfile @@ -12,7 +12,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.2' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/resources/aws/lib/opentelemetry/resource/detector/aws/ecs.rb b/resources/aws/lib/opentelemetry/resource/detector/aws/ecs.rb index 422769b151..667d07a969 100644 --- a/resources/aws/lib/opentelemetry/resource/detector/aws/ecs.rb +++ b/resources/aws/lib/opentelemetry/resource/detector/aws/ecs.rb @@ -52,7 +52,7 @@ def detect task_metadata = JSON.parse(http_get("#{metadata_uri_v4}/task")) task_arn = task_metadata['TaskARN'] - base_arn = task_arn[0..task_arn.rindex(':') - 1] + base_arn = task_arn[0..(task_arn.rindex(':') - 1)] cluster = task_metadata['Cluster'] cluster_arn = cluster.start_with?('arn:') ? cluster : "#{base_arn}:cluster/#{cluster}" diff --git a/resources/azure/Gemfile b/resources/azure/Gemfile index cb9965eb44..351b117b66 100644 --- a/resources/azure/Gemfile +++ b/resources/azure/Gemfile @@ -12,7 +12,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/resources/container/Gemfile b/resources/container/Gemfile index 8bf2eb907b..a7675baf59 100644 --- a/resources/container/Gemfile +++ b/resources/container/Gemfile @@ -12,7 +12,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/resources/google_cloud_platform/Gemfile b/resources/google_cloud_platform/Gemfile index cb9965eb44..351b117b66 100644 --- a/resources/google_cloud_platform/Gemfile +++ b/resources/google_cloud_platform/Gemfile @@ -12,7 +12,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.1' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'webmock', '~> 3.24' diff --git a/sampler/xray/Gemfile b/sampler/xray/Gemfile index 1b6d489203..8d900ea2d5 100644 --- a/sampler/xray/Gemfile +++ b/sampler/xray/Gemfile @@ -12,7 +12,7 @@ group :test do gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'rake', '~> 13.0' - gem 'rubocop', '~> 1.75.2' + gem 'rubocop', '~> 1.76.2' gem 'rubocop-performance', '~> 1.24.0' gem 'simplecov', '~> 0.22.0' gem 'yard', '~> 0.9' diff --git a/sampler/xray/lib/opentelemetry/sampler/xray/sampling_rule_applier.rb b/sampler/xray/lib/opentelemetry/sampler/xray/sampling_rule_applier.rb index 507e226c1c..0863d738c5 100644 --- a/sampler/xray/lib/opentelemetry/sampler/xray/sampling_rule_applier.rb +++ b/sampler/xray/lib/opentelemetry/sampler/xray/sampling_rule_applier.rb @@ -68,7 +68,7 @@ def matches?(attributes, resource) http_target = '/' end - OpenTelemetry::Sampler::XRay::Utils.attribute_match(attributes, @sampling_rule.attributes) && + OpenTelemetry::Sampler::XRay::Utils.attribute_match?(attributes, @sampling_rule.attributes) && OpenTelemetry::Sampler::XRay::Utils.wildcard_match(@sampling_rule.host, http_host) && OpenTelemetry::Sampler::XRay::Utils.wildcard_match(@sampling_rule.http_method, http_method) && OpenTelemetry::Sampler::XRay::Utils.wildcard_match(@sampling_rule.service_name, service_name) && diff --git a/sampler/xray/lib/opentelemetry/sampler/xray/utils.rb b/sampler/xray/lib/opentelemetry/sampler/xray/utils.rb index 15698b622e..a5913e0163 100644 --- a/sampler/xray/lib/opentelemetry/sampler/xray/utils.rb +++ b/sampler/xray/lib/opentelemetry/sampler/xray/utils.rb @@ -45,7 +45,7 @@ def wildcard_match(pattern = nil, text = nil) match end - def attribute_match(attributes = nil, rule_attributes = nil) + def attribute_match?(attributes = nil, rule_attributes = nil) return true if rule_attributes.nil? || rule_attributes.empty? return false if attributes.nil? || diff --git a/sampler/xray/test/utils_test.rb b/sampler/xray/test/utils_test.rb index fdcf29952b..fc95dbe0b1 100644 --- a/sampler/xray/test/utils_test.rb +++ b/sampler/xray/test/utils_test.rb @@ -99,9 +99,9 @@ it 'test_attribute_match_with_undefined_attributes' do rule_attributes = { 'string' => 'string', 'string2' => 'string2' } - refute OpenTelemetry::Sampler::XRay::Utils.attribute_match(nil, rule_attributes) - refute OpenTelemetry::Sampler::XRay::Utils.attribute_match({}, rule_attributes) - refute OpenTelemetry::Sampler::XRay::Utils.attribute_match({ 'string' => 'string' }, rule_attributes) + refute OpenTelemetry::Sampler::XRay::Utils.attribute_match?(nil, rule_attributes) + refute OpenTelemetry::Sampler::XRay::Utils.attribute_match?({}, rule_attributes) + refute OpenTelemetry::Sampler::XRay::Utils.attribute_match?({ 'string' => 'string' }, rule_attributes) end it 'test_attribute_match_with_undefined_rule_attributes' do @@ -111,19 +111,19 @@ 'undefined' => nil, 'boolean' => true } - assert OpenTelemetry::Sampler::XRay::Utils.attribute_match(attr, nil) + assert OpenTelemetry::Sampler::XRay::Utils.attribute_match?(attr, nil) end it 'test_attribute_match_successful_match' do attr = { 'language' => 'english' } rule_attribute = { 'language' => 'en*sh' } - assert OpenTelemetry::Sampler::XRay::Utils.attribute_match(attr, rule_attribute) + assert OpenTelemetry::Sampler::XRay::Utils.attribute_match?(attr, rule_attribute) end it 'test_attribute_match_failed_match' do attr = { 'language' => 'french' } rule_attribute = { 'language' => 'en*sh' } - refute OpenTelemetry::Sampler::XRay::Utils.attribute_match(attr, rule_attribute) + refute OpenTelemetry::Sampler::XRay::Utils.attribute_match?(attr, rule_attribute) end it 'test_attribute_match_extra_attributes_success' do @@ -134,7 +134,7 @@ 'boolean' => true } rule_attribute = { 'string' => 'string' } - assert OpenTelemetry::Sampler::XRay::Utils.attribute_match(attr, rule_attribute) + assert OpenTelemetry::Sampler::XRay::Utils.attribute_match?(attr, rule_attribute) end it 'test_attribute_match_extra_attributes_failure' do @@ -145,6 +145,6 @@ 'boolean' => true } rule_attribute = { 'string' => 'string', 'number' => '1' } - refute OpenTelemetry::Sampler::XRay::Utils.attribute_match(attr, rule_attribute) + refute OpenTelemetry::Sampler::XRay::Utils.attribute_match?(attr, rule_attribute) end end