diff --git a/async_scheduler.gemspec b/async_scheduler.gemspec index 9a53171..a2802dd 100644 --- a/async_scheduler.gemspec +++ b/async_scheduler.gemspec @@ -12,7 +12,10 @@ Gem::Specification.new do |spec| spec.description = "This is a task scheduler which implements the FiberScheduler interface" spec.homepage = "https://github.com/kudojp/async_scheduler" spec.license = "MIT" - spec.required_ruby_version = ">= 3.0.0" + # The interface of FiberScheduler#io_read had a breaking change from Ruby 3.0 to 3.1. + # (ruby 3.0) #io_read takes 4 arguments. -> (ruby 3.1) #io_read takes only 3 arguments. + # The implementation of scheduler#io_read in this gem takes only 3 arguments. + spec.required_ruby_version = "~> 3.1.0" spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"