Skip to content

Commit 919ca0b

Browse files
committed
Restrict async to MRI Ruby only
1 parent 3e3b2c8 commit 919ca0b

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

.github/workflows/test.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ jobs:
2828
experimental: [false]
2929

3030
include:
31-
- os: ubuntu
32-
ruby: truffleruby
33-
experimental: true
34-
- os: ubuntu
35-
ruby: jruby
36-
experimental: true
3731
- os: ubuntu
3832
ruby: head
3933
experimental: true

async.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
2424
spec.files = Dir.glob(["{lib}/**/*", "*.md"], File::FNM_DOTMATCH, base: __dir__)
2525

2626
spec.required_ruby_version = ">= 3.2"
27+
spec.required_ruby_engine = "ruby"
2728

2829
spec.add_dependency "console", "~> 1.29"
2930
spec.add_dependency "fiber-annotation"

lib/async/scheduler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def io_read(io, buffer, length, offset = 0)
347347
timer&.cancel!
348348
end
349349

350-
if RUBY_ENGINE != "ruby" || RUBY_VERSION >= "3.3.1"
350+
if RUBY_VERSION >= "3.3.1"
351351
# Write the specified buffer to the IO.
352352
#
353353
# @public Since *Async v2* and *Ruby v3.3.1* with `IO::Buffer` support.

0 commit comments

Comments
 (0)