Skip to content

Commit

Permalink
Async 2 requires Ruby 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
paddor committed Jan 4, 2024
1 parent a10ff0d commit 2b94943
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/stable_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
strategy:
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ On macOS using Homebrew, run:

### Supported Rubies

* MRI (3.0, 3.2, 3.3)
* MRI (3.1, 3.2, 3.3)
* JRuby
* TruffleRuby

Expand Down
7 changes: 5 additions & 2 deletions cztop.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "pry"
spec.add_development_dependency "yard"
spec.add_development_dependency "rubocop", "~> 1.36.0"
spec.add_development_dependency "async", ">= 2.0.1"
spec.add_development_dependency "async-io"

if RUBY_VERSION >= '3.1'
spec.add_development_dependency "async", ">= 2.0.1"
spec.add_development_dependency "async-io"
end
end
6 changes: 4 additions & 2 deletions spec/cztop/async_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# frozen_string_literal: true

require_relative 'spec_helper'
require_relative '../../lib/cztop/async'

describe Async::IO::CZTopSocket do
# NOTE: Async 2 requires Ruby 3.1
describe 'Async::IO::CZTopSocket', if: RUBY_VERSION >= '3.1' do
require_relative '../../lib/cztop/async'

i = 0
let(:endpoint) { "inproc://async_endpoint_socket_spec_reqrep_#{i += 1}" }
let(:req_socket) { CZTop::Socket::REQ.new(endpoint) }
Expand Down

0 comments on commit 2b94943

Please sign in to comment.