lib/ucf.rb in ucf-0.7.0 vs lib/ucf.rb in ucf-1.0.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2013 The University of Manchester, UK.
+# Copyright (c) 2013, 2014 The University of Manchester, UK.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -28,30 +28,22 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Author: Robert Haines
-require 'yaml'
+require 'rubygems'
+require 'bundler/setup'
+
require 'zip-container'
+require 'ucf/version'
require 'ucf/meta-inf'
-require 'ucf/container'
+require 'ucf/file'
# This is a ruby library to read and write UCF files in PK Zip format. See the
-# UCF::Container class for more information.
+# UCF::File class for more information.
#
# See
# {the UCF specification}[https://learn.adobe.com/wiki/display/PDFNAV/Universal+Container+Format]
# for more details.
module UCF
-
- # Library version information.
- module Version
- # Version information in a Hash
- INFO = YAML.load_file(File.join(File.dirname(__FILE__), "..",
- "version.yml"))
-
- # Version number as a String
- STRING = [:major, :minor, :patch].map {|d| INFO[d]}.compact.join('.')
- end
-
end