From 12454c25a3a4418cc2aaec50838c91e9655667a8 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 26 Feb 2026 10:30:57 -0500 Subject: [PATCH 1/2] Allow ruby version 4.0 in gemspec --- chewy.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chewy.gemspec b/chewy.gemspec index fd6bdf284..57aba4036 100644 --- a/chewy.gemspec +++ b/chewy.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.description = 'Chewy provides functionality for Elasticsearch index handling, documents import mappings and chainable query DSL' spec.homepage = 'https://github.com/toptal/chewy' spec.license = 'MIT' - spec.required_ruby_version = '~> 3.2' + spec.required_ruby_version = '>= 3.2' spec.files = Dir['CHANGELOG.md', 'LICENSE.txt', 'README.md', 'lib/**/*'] spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } From c7977377797e5b128db7578fd0ed5c0b0471ca12 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 26 Feb 2026 10:31:12 -0500 Subject: [PATCH 2/2] Add ruby 4.0 to CI matrix --- .github/workflows/ruby.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 2bd59d4af..a89c174c2 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: [ '3.2', '3.3', '3.4' ] + ruby: [ '3.2', '3.3', '3.4', '4.0' ] gemfile: [rails.7.2.activerecord, rails.8.0.activerecord, rails.8.1.activerecord] name: ${{ matrix.ruby }}-${{ matrix.gemfile }}