Giter Club home page Giter Club logo

ruby-zip-container's Introduction

ZIP Container Format Ruby Library

Authors

Robert Haines

Contact

[email protected]

Homepage

mygrid.github.io/ruby-zip-container

Source code

github.com/myGrid/ruby-zip-container

Licence

BSD (See Licence file or www.opensource.org/licenses/bsd-license.php)

Copyright

© 2013-2015 The University of Manchester, UK

<img src=“https://badge.fury.io/rb/zip-container.svg” alt=“Gem Version” /> <img src=“https://codeclimate.com/github/myGrid/ruby-zip-container.svg” /> <img src=“https://travis-ci.org/myGrid/ruby-zip-container.svg?branch=master” alt=“Build Status” /> <img src=“https://coveralls.io/repos/myGrid/ruby-zip-container/badge.svg?branch=master” alt=“Coverage Status” />

Synopsis

This is a Ruby library for working with ZIP Container files. See the ODF and UDF specifications for more details.

We follow the principles of Semantic Versioning for our releases.

Backwards incompatibility warnings!

ZipContainer

The ZipContainer::Container class is now a common superclass of ZipContainer::Dir and ZipContainer::File. You can use ZipContainer::File as a direct replacement for ZipContainer::Container as the functionality is preserved. The new names bring this API into closer alignment with the underlying rubyzip API (Zip::File) and allows this library to work with “exploded” or unpacked containers directly.

ZipContainer::Container should not be used directly from version 2.0.0 onwards.

ContainerError

This class has been renamed in version 3.0.0. It is now simply called Error so that its fully qualified name is the more sensible ZipContainer::Error.

Rubyzip

Version 1.0.0 and up of this gem uses version 1.0.0 and up of the rubyzip library. This has a backwards incompatible API that may clash with other gems that you are using. Please see the important note in the rubyzip readme for a workaround.

Usage

This library has two entry points.

The main ZipContainer::File class largely mimics the rubyzip Zip::File and Zip::FileSystem APIs so much of what you can do with them are supported for ZIP Containers. There is also API documentation with much more detail and any differences explained.

The ZipContainer::Dir class mimics, where possible, the core ruby Dir API.

There are some examples of how to use the library provided in the examples directory. See the contents of the tests directory for even more.

What this library can not do yet

The basic requirements of a ZIP Container are all implemented but memory resident ZIP Container files are not yet supported. Presently all operations are performed on files that are resident on disk.

ruby-zip-container's People

Contributors

fbacall avatar hainesr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.