Skip to content

Commit 809e7ec

Browse files
test: Update que Appraisals (#1256)
* test: Update que Appraisals The latest version of the gem now supports Rails 7.2 * test: Appraise specific Active Record versions Active Record 7.2+ are only compatible with que 2.4.1+ * test: Add Ruby version constraint to activerecord * test: remove extra end * style: Rubocop indentation
1 parent 8ca4fc6 commit 809e7ec

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

instrumentation/que/Appraisals

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@
66

77
appraise 'que-1.x' do
88
gem 'que', '~> 1.4'
9+
gem 'activerecord', '~> 7.1.0'
910
end
1011

1112
appraise 'que-2.x' do
12-
gem 'que', '~> 2.3'
13+
gem 'que', '~> 2.4'
14+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0')
15+
gem 'activerecord', '~> 7.2.0'
16+
else
17+
gem 'activerecord'
18+
end
1319
end
1420

1521
appraise 'que-latest' do
1622
gem 'que'
23+
gem 'activerecord'
1724
end

instrumentation/que/Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ source 'https://rubygems.org'
99
gemspec
1010

1111
group :test do
12-
gem 'activerecord', '< 7.2.0', '> 7.0.0'
1312
gem 'pg'
1413
gem 'opentelemetry-helpers-sql', path: '../../helpers/sql'
1514
gem 'opentelemetry-helpers-sql-obfuscation', path: '../../helpers/sql-obfuscation'

0 commit comments

Comments
 (0)