Skip to content

Commit

Permalink
try to support Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paddor committed Jan 7, 2024
1 parent 612870a commit de6c697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions cztop.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rspec-given", "~> 3.8.0"
spec.add_development_dependency "pry"
spec.add_development_dependency "yard"

if RUBY_VERSION >= '3.1'
spec.add_development_dependency "async", ">= 2.0.1"
end
spec.add_development_dependency "async"
end
4 changes: 1 addition & 3 deletions spec/cztop/send_receive_methods_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
end
end

# NOTE: Async 2 requires Ruby 3.1
# NOTE: IO::TimeoutError was introduced in 3.2, so let's focus on 3.2+
describe 'async IO with Fiber Scheduler', if: (RUBY_VERSION >= '3.2') do
describe 'Async with Fiber Scheduler' do
require 'async'

i = 0
Expand Down

0 comments on commit de6c697

Please sign in to comment.