From df529441691e9152a5dcebedbe5393c8245b70c5 Mon Sep 17 00:00:00 2001 From: Kayla Reopelle Date: Wed, 20 Nov 2024 17:12:01 -0800 Subject: [PATCH] test: Add Ruby version constraint to activerecord --- instrumentation/que/Appraisals | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/instrumentation/que/Appraisals b/instrumentation/que/Appraisals index a3b7a215b..373a2b940 100644 --- a/instrumentation/que/Appraisals +++ b/instrumentation/que/Appraisals @@ -11,10 +11,15 @@ end appraise 'que-2.x' do gem 'que', '~> 2.4' - gem 'activerecord', '~> 7.2.0' -end + if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0') + gem 'activerecord', '~> 7.2.0' + else + gem 'activerecord' + end + end -appraise 'que-latest' do - gem 'que' - gem 'activerecord' + appraise 'que-latest' do + gem 'que' + gem 'activerecord' + end end