diff --git a/instrumentation/action_mailer/Appraisals b/instrumentation/action_mailer/Appraisals index 8096ea089..e6c48d017 100644 --- a/instrumentation/action_mailer/Appraisals +++ b/instrumentation/action_mailer/Appraisals @@ -16,6 +16,8 @@ appraise 'rails-7.1' do gem 'rails', '~> 7.1.0' end -appraise 'rails-7.2' do - gem 'rails', '~> 7.2.0' +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0') + appraise 'rails-7.2' do + gem 'rails', '~> 7.2.0' + end end diff --git a/instrumentation/action_pack/Appraisals b/instrumentation/action_pack/Appraisals index 8096ea089..e6c48d017 100644 --- a/instrumentation/action_pack/Appraisals +++ b/instrumentation/action_pack/Appraisals @@ -16,6 +16,8 @@ appraise 'rails-7.1' do gem 'rails', '~> 7.1.0' end -appraise 'rails-7.2' do - gem 'rails', '~> 7.2.0' +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0') + appraise 'rails-7.2' do + gem 'rails', '~> 7.2.0' + end end diff --git a/instrumentation/action_view/Appraisals b/instrumentation/action_view/Appraisals index 8096ea089..e6c48d017 100644 --- a/instrumentation/action_view/Appraisals +++ b/instrumentation/action_view/Appraisals @@ -16,6 +16,8 @@ appraise 'rails-7.1' do gem 'rails', '~> 7.1.0' end -appraise 'rails-7.2' do - gem 'rails', '~> 7.2.0' +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0') + appraise 'rails-7.2' do + gem 'rails', '~> 7.2.0' + end end diff --git a/instrumentation/active_record/Appraisals b/instrumentation/active_record/Appraisals index 182dc6783..36f641b64 100644 --- a/instrumentation/active_record/Appraisals +++ b/instrumentation/active_record/Appraisals @@ -16,6 +16,8 @@ appraise 'activerecord-7.1' do gem 'activerecord', '~> 7.1.0' end -appraise 'activerecord-7.2' do - gem 'activerecord', '~> 7.2.0' +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0') + appraise 'activerecord-7.2' do + gem 'activerecord', '~> 7.2.0' + end end diff --git a/instrumentation/active_support/Appraisals b/instrumentation/active_support/Appraisals index 9ecb3e1ac..ef832823b 100644 --- a/instrumentation/active_support/Appraisals +++ b/instrumentation/active_support/Appraisals @@ -16,6 +16,8 @@ appraise 'activesupport-7.1' do gem 'activesupport', '~> 7.1.0' end -appraise 'activesupport-7.2' do - gem 'activesupport', '~> 7.2.0' +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0') + appraise 'activesupport-7.2' do + gem 'activesupport', '~> 7.2.0' + end end diff --git a/instrumentation/rails/Appraisals b/instrumentation/rails/Appraisals index 8096ea089..e6c48d017 100644 --- a/instrumentation/rails/Appraisals +++ b/instrumentation/rails/Appraisals @@ -16,6 +16,8 @@ appraise 'rails-7.1' do gem 'rails', '~> 7.1.0' end -appraise 'rails-7.2' do - gem 'rails', '~> 7.2.0' +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0') + appraise 'rails-7.2' do + gem 'rails', '~> 7.2.0' + end end