Skip to content

Commit 8961153

Browse files
committed
chore: only appraise anthropic on ruby >= 3.2
1 parent d8636c6 commit 8961153

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

instrumentation/anthropic/Appraisals

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7-
appraise 'anthropic-latest' do
8-
gem 'anthropic'
9-
end
7+
# Anthropic gem requires Ruby 3.2
8+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.2.0')
9+
appraise 'anthropic-latest' do
10+
gem 'anthropic'
11+
end
1012

11-
appraise 'anthropic-1.9.0' do
12-
gem 'anthropic', '~> 1.9.0'
13-
end
13+
appraise 'anthropic-1.9.0' do
14+
gem 'anthropic', '~> 1.9.0'
15+
end
16+
end

0 commit comments

Comments
 (0)