Skip to content

Conversation

Watson1978
Copy link
Contributor

Ractor#take was replaced at Ruby 3.5.
https://bugs.ruby-lang.org/issues/21262

This patch will fix following error with Ruby 3.5 dev:

Failures:

  1) Zstd::StreamingCompress Ractor should be supported
     Failure/Error: expect(Zstd.decompress(r.take)).to eq('abcdef')
     
     NoMethodError:
       undefined method 'take' for an instance of Ractor
     # ./spec/zstd-ruby-streaming-compress_spec.rb:118:in 'block (3 levels) in <top (required)>'

  2) Zstd::StreamingDecompress Ractor should be supported
     Failure/Error: expect(r.take).to eq('foo bar buzz')
     
     NoMethodError:
       undefined method 'take' for an instance of Ractor
     # ./spec/zstd-ruby-streaming-decompress_spec.rb:172:in 'block (3 levels) in <top (required)>'

  3) Zstd Ractor should be supported
     Failure/Error: expect(Zstd.decompress(r.take)).to eq('abc')
     
     NoMethodError:
       undefined method 'take' for an instance of Ractor
     # ./spec/zstd-ruby_spec.rb:121:in 'block (3 levels) in <top (required)>'

Ractor#take was replaced at Ruby 3.5.
https://bugs.ruby-lang.org/issues/21262
@SpringMT SpringMT merged commit 7cc7e95 into SpringMT:main Oct 18, 2025
6 checks passed
@Watson1978 Watson1978 deleted the ruby-3.5 branch October 18, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants