From a33486fd83a4d06901622b407be7edaa7b7cab26 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Tue, 3 Nov 2026 13:57:39 -0500 Subject: [PATCH] fix(ci): drop Ruby 3.2 and bump lockfile Bundler to 4.0.23 Ruby 3.2 is EOL and rb-sys's bindgen step fails against its headers ("unknown type name 'bool'"). Bundler 2.6.9 references Pathname::SEPARATOR_PAT, which ruby-head removed, so bundle install crashes there. --- .github/workflows/build.yml | 2 +- Gemfile.lock | 2 +- tiktoken_ruby.gemspec | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdc5019..fcf0e97 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - ruby: ["ruby-head", "4.0", "3.4", "3.3", "3.2"] + ruby: ["ruby-head", "4.0", "3.4", "3.3"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v7 diff --git a/Gemfile.lock b/Gemfile.lock index 840d89e..c3244b7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -96,4 +96,4 @@ DEPENDENCIES yard-doctest BUNDLED WITH - 2.6.9 + 4.0.23 diff --git a/tiktoken_ruby.gemspec b/tiktoken_ruby.gemspec index e0013f4..8e17cfa 100644 --- a/tiktoken_ruby.gemspec +++ b/tiktoken_ruby.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |spec| "count the number of tokens in text before sending it to OpenAI APIs." spec.homepage = "https://github.com/IAPark/tiktoken_ruby" spec.license = "MIT" - spec.required_ruby_version = ">= 3.2.0" + spec.required_ruby_version = ">= 3.3.0" spec.required_rubygems_version = ">= 3.4.0" spec.platform = Gem::Platform::RUBY