From 79d3c1ccb00eb0d76d35ae8d5d273959d082f187 Mon Sep 17 00:00:00 2001 From: Kayla Reopelle Date: Mon, 12 Aug 2024 12:19:02 -0700 Subject: [PATCH] chore: Restrain pg and que to use Rails < 7.2.0 There is also a bottom constraint of Rails (or Rails-related gems) 6.1.0 to prevent cases where Rails 3.2.0 was installed instead. The gems need updates to support Rails 7.2. --- instrumentation/pg/opentelemetry-instrumentation-pg.gemspec | 2 +- instrumentation/que/Gemfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/pg/opentelemetry-instrumentation-pg.gemspec b/instrumentation/pg/opentelemetry-instrumentation-pg.gemspec index e193ee246..8ac730c83 100644 --- a/instrumentation/pg/opentelemetry-instrumentation-pg.gemspec +++ b/instrumentation/pg/opentelemetry-instrumentation-pg.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'opentelemetry-helpers-sql-obfuscation' spec.add_dependency 'opentelemetry-instrumentation-base', '~> 0.22.1' - spec.add_development_dependency 'activerecord' + spec.add_development_dependency 'activerecord', '< 7.2.0', '> 6.1.0' spec.add_development_dependency 'appraisal', '~> 2.5' spec.add_development_dependency 'bundler', '~> 2.4' spec.add_development_dependency 'minitest', '~> 5.0' diff --git a/instrumentation/que/Gemfile b/instrumentation/que/Gemfile index 46bfbfb01..af89399b5 100644 --- a/instrumentation/que/Gemfile +++ b/instrumentation/que/Gemfile @@ -9,7 +9,7 @@ source 'https://rubygems.org' gemspec group :test do - gem 'activerecord' + gem 'activerecord', '< 7.2.0', '> 6.1.0' gem 'pg' gem 'opentelemetry-helpers-sql-obfuscation', path: '../../helpers/sql-obfuscation' gem 'opentelemetry-instrumentation-base', path: '../base'