This provides a Bzip::Reader analogous to Crystal's Gzip::Reader. It isn't the most efficient as it calls bzcat and loads the file into memory, but works for now.
Add this to your application's shard.yml
:
dependencies:
Bzip:
github: jhbadger/Bzip
require "Bzip"
Bzip::Reader.new("foo.bz2").each_line do |line|
p line
end
TODO: Write usage instructions here
TODO: Write development instructions here
- Fork it ( https://github.com/[your-github-name]/Bzip/fork )
- 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 a new Pull Request
- [your-github-name] Jonathan Badger - creator, maintainer