IOStreams is a streaming library for Ruby that makes compression, encryption, file format, and storage location transparent to your code. Read and write files o
IOStreams is a streaming library for Ruby that makes compression, encryption, file format, and storage location transparent to your code. Read and write files o
IOStreams is a streaming library for Ruby that makes compression, encryption, file format, and storage location transparent to your code. Read and write files of any size, one block at a time, whether they are gzip, zip, or PGP encrypted, and whether they live on local disk, AWS S3, SFTP, or are fetched over HTTP.
Production Ready, heavily used in production environments, many as part of Rocket Job.
Start with the IOStreams tutorial to get a great introduction to IOStreams.
Next, checkout the remaining IOStreams documentation
See the CHANGELOG for the release history and notable changes.
v2.0 is a major release with breaking changes. See the CHANGELOG for the full list. The changes most likely to affect you:
zip_kit gem. The retired zip_tricks gem has been replaced by its successor, zip_kit. If your application writes Zip files, replace gem "zip_tricks" with gem "zip_kit" in your Gemfile. Reading Zip files is unaffected. The IOStreams API itself is unchanged.IOStreams::Deprecated mix-in described below no longer exists. Any code still using those old apis must move to the current IOStreams.path / IOStreams.stream API.compression: option has been removed. Use compress: instead (available since v1.11.0).IOStreams::Pgp.logger and IOStreams::Pgp.logger= have been removed. Logging is now configured centrally for the whole library via IOStreams.logger / IOStreams.logger=. Replace IOStreams::Pgp.logger = my_logger with IOStreams.logger = my_logger. Semantic Logger is detected automatically when loaded.The old, deprecated api's are no longer loaded by default with v1.6. To add back the deprecated api support, add the following line to your code:
IOStreams.include(IOStreams::Deprecated)It is important to move any of the old deprecated apis over to the new api, since they will be removed in a future release.
This project adheres to Semantic Versioning.
Contributions are welcome. See CONTRIBUTING.md for guidelines on documentation updates, code changes, the project architecture, and the code of conduct.
Copyright 2020 Reid Morrison
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
No open issues yet, or sync has not completed.