百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

iostreams

> 编程语言
开源

IOStreams 是一个针对 Ruby 的流库,它使压缩、加密、文件格式和存储位置对您的代码而言是透明的。读取和写入文件时,

99 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

IOStreams 是一个针对 Ruby 的流库,它使压缩、加密、文件格式和存储位置对您的代码而言是透明的。读取和写入文件时,

IOStreams

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.

Project Status

Production Ready, heavily used in production environments, many as part of Rocket Job.

Documentation

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.

Upgrading to v2.0

v2.0 is a major release with breaking changes. See the CHANGELOG for the full list. The changes most likely to affect you:

  • Ruby 3.2 or later is now required. Older Ruby versions are no longer supported.
  • Writing Zip files now requires the 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.
  • The deprecated pre-v1.6 API has been removed. The 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.
  • The deprecated PGP writer 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.

Upgrading to v1.6

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:

ruby
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.

Versioning

This project adheres to Semantic Versioning.

Contributing

Contributions are welcome. See CONTRIBUTING.md for guidelines on documentation updates, code changes, the project architecture, and the code of conduct.

Author

Reid Morrison

License

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.0

Unless 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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubycsvencryptiongnupggzip

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言