All formats

CBZ libraries for Ruby

rubyzip is the standard ZIP gem for Ruby. It reads the central directory, gives random access to each entry, and writes new archives with stored or deflated entries. Add natural sorting and parse ComicInfo.xml with REXML (a bundled gem) or Nokogiri.

For CBR, CB7 and CBT in Ruby, use ffi-libarchive, a binding to libarchive.