Skip to content

Commit

Permalink
Fix supported Ruby version to be only 3.1.x (#32)
Browse files Browse the repository at this point in the history
* Update spec.required_ruby_version = "~> 3.1.0"

* Don't run ci test with ruby 3.0 which is not supported
  • Loading branch information
kudojp authored Sep 3, 2023
1 parent cfc404d commit cd62479
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
ruby: [3.0, 3.1]
ruby: ['3.1']
runs-on: ${{ matrix.os }}
steps:
- uses: ruby/setup-ruby@v1
Expand Down
6 changes: 5 additions & 1 deletion async_scheduler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ 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 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'"

Expand Down

0 comments on commit cd62479

Please sign in to comment.