From 25db273bad97984937fad1cc9cef0d1a01ea17e9 Mon Sep 17 00:00:00 2001 From: Christian Petersen Date: Fri, 19 Jun 2026 12:44:46 +0200 Subject: [PATCH] Declare required_ruby_version >= 3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gemspec set no required_ruby_version, so Bundler/RubyGems would let the gem install on Rubies it isn't tested against, then fail at runtime on syntax/APIs it relies on (e.g. delete_suffix, 2.5+). The CI matrix runs 3.1–head and .standard.yml pins 3.1.4, so >= 3.1 matches the actually-supported range and surfaces unsupported Rubies at install time with a clear error instead of an obscure runtime crash. Co-Authored-By: Claude Opus 4.8 --- interactor.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interactor.gemspec b/interactor.gemspec index c99e59e..a90cd7b 100644 --- a/interactor.gemspec +++ b/interactor.gemspec @@ -11,6 +11,8 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/Bidsketch/interactor" spec.license = "MIT" + spec.required_ruby_version = ">= 3.1" + spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) spec.add_dependency "ostruct"