Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Set up language runtime
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: '3.4'
ruby-version: '4.0'
bundler-cache: true

- name: Read version
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Set up language runtime
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: '3.4'
ruby-version: '4.0'
bundler-cache: true

- name: Publish package with attestation
Expand Down
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ source "https://rubygems.org"
# Specify your gem's dependencies in braintrust.gemspec
gemspec

# Pin openssl to the version bundled with the release runner (Ruby 4.0 ships 4.0.0).
# Keeps the CI lockfile in sync with the runner's default gem to avoid bundler
# activation conflicts. Update this when the ruby-version in release workflows changes.
# Does not affect gem consumers — they use the gemspec constraint (>= 3.3.1).
gem "openssl", "4.0.0"

# Development dependencies
gem "appraisal", "~> 2.5"
gem "climate_control", "~> 1.2"
Expand Down
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ GEM
minitest (>= 5.0)
ruby-progressbar
minitest-stub-const (0.6)
openssl (3.3.2)
openssl (4.0.0)
opentelemetry-api (1.7.0)
opentelemetry-common (0.23.0)
opentelemetry-api (~> 1.0)
Expand Down Expand Up @@ -142,6 +142,7 @@ DEPENDENCIES
minitest (~> 5.0)
minitest-reporters (~> 1.6)
minitest-stub-const (~> 0.6)
openssl (= 4.0.0)
rake (~> 13.0)
simplecov (~> 0.22)
standard (~> 1.0)
Expand All @@ -150,4 +151,4 @@ DEPENDENCIES
yard (~> 0.9)

BUNDLED WITH
4.0.8
4.0.8
6 changes: 4 additions & 2 deletions test/support/provider_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ module ProviderHelper
# Uses real key for recording, fake key for playback
# @return [String] API key
def get_anthropic_key
ENV["ANTHROPIC_API_KEY"] || "sk-ant-test-key-for-vcr"
key = ENV["ANTHROPIC_API_KEY"]
(key && !key.empty?) ? key : "sk-ant-test-key-for-vcr"
end

# Get OpenAI API key for tests
# Uses real key for recording, fake key for playback
# @return [String] API key
def get_openai_key
ENV["OPENAI_API_KEY"] || "sk-test-key-for-vcr"
key = ENV["OPENAI_API_KEY"]
(key && !key.empty?) ? key : "sk-test-key-for-vcr"
end
end
end
Expand Down