Provide a buffered stream implementation for Ruby, independent of the underlying IO.
Please see the project documentation for more details.
Please see the project releases for all releases.
- On Ruby v3.3+, use
IO#write
directly instead ofIO#write_nonblock
, for better performance. - Introduce support for
Readable#discard_until
method to discard data until a specific pattern is found.
- Split stream functionality into separate
Readable
andWritable
modules for better modularity and composition. - Remove unused timeout shim functionality.
- 100% documentation coverage.
- Fix compatibility with Ruby v3.3.0 - v3.3.6 where broken
@io.close
could hang.
- Improve compatibility of
gets
implementation to better match Ruby's IO#gets behavior.
- Add support for
read_until(limit:)
parameter to limit the amount of data read. - Minor documentation improvements.
- Add comprehensive tests for
buffered?
method onSSLSocket
. - Ensure TLS connections have correct buffering behavior.
- Improve test suite organization and readability.
- Add external test suite for better integration testing.
- Update dependencies and improve code style with RuboCop.
- Add compatibility fix for
SSLSocket
raisingEBADF
errors. - Fix
IO#close
hang issue in certain scenarios. - Add
#to_io
method toIO::Stream::Buffered
for better compatibility. - Modernize gem structure and dependencies.
- Add convenient
IO.Stream()
constructor method for creating buffered streams.
- Add support for timeouts with compatibility shims for various IO types.
- async-io — Where this implementation originally came from.
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin my-new-feature
). - Create new Pull Request.
In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.