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.
- rubyzip Read and write CBZ comic book archives in Ruby with rubyzip: list pages in natural order, extract the cover, read ComicInfo.xml with REXML.