= Universal Container Format (UCF) Ruby Library Authors:: Robert Haines Contact:: mailto:support@mygrid.org.uk Homepage:: http://mygrid.github.io/ruby-ucf Source code:: https://github.com/myGrid/ruby-ucf Licence:: BSD (See Licence file or http://www.opensource.org/licenses/bsd-license.php) Copyright:: (c) 2013, 2014 The University of Manchester, UK {Gem Version}[http://badge.fury.io/rb/ucf] {}[https://codeclimate.com/github/myGrid/ruby-ucf] {Build Status}[https://travis-ci.org/myGrid/ruby-ucf] {Coverage Status}[https://coveralls.io/r/myGrid/ruby-ucf?branch=master] == Synopsis This is a Ruby library for working with UCF documents. See {the specification}[https://learn.adobe.com/wiki/display/PDFNAV/Universal+Container+Format] for more details. UCF is a type of EPUB and very similar to the {EPUB Open Container Format (OCF)}[http://www.idpf.org/epub/30/spec/epub30-ocf.html]. This library is a work in progress! Until we release version 1.0.0 you can expect the API to change in incompatible ways, although we will try to keep this to an absolute minimum. Once version 1.0.0 is released we will be following the principles of {Semantic Versioning}[http://semver.org/] for our version numbering scheme. Most of this library's API is provided by the underlying {zip-container gem}[https://rubygems.org/gems/zip-container] so you will need to consult {that documentation as well}[http://mygrid.github.io/ruby-zip-container/] in addition to this. 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. == Files in the META-INF directory The UCF specification requires that files in the META-INF directory are validated against a schema if they are present. If the {nokogiri gem}[https://rubygems.org/gems/nokogiri] is available then this library will use it to validate the contents of the container.xml and manifest.xml files. This functionality is not enforced on the user in case they are not using the META-INF directory and so would not need the extra dependency on nokogiri. == Backwards incompatibility warning! The UCF::Container class is deprecated in favour of UCF::File. These classes are functionally identical; it is just a change of name. The new name brings this API into closer alignment with the underlying {zip-container API}[http://mygrid.github.io/ruby-zip-container/] (ZipContainer::File). UCF::Container is not available from version 1.0.0 onwards. == What this library can not do yet The basic requirements of a UCF document are all implemented but there are a number of optional features that are not yet provided. * Memory resident UCF documents. Presently all operations are performed on documents that are resident on disk as the underlying {rubyzip library}[https://github.com/aussiegeek/rubyzip] currently {cannot do anything else}[https://github.com/aussiegeek/rubyzip/issues/74]. * Validation of all file contents in the META-INF directory. The container.xml and manifest.xml files are validated but others are not yet. * Digital signatures (this feature has been deferred until a future revision of the UCF specification. It will be supported by this gem when it is added to the specification). * Encryption (this feature has been deferred until a future revision of the UCF specification. It will be supported by this gem when it is added to the specification).