Module: Assembly

Defined in:
lib/assembly-objectfile/version.rb,
lib/assembly-objectfile.rb,
lib/assembly-objectfile/object_file.rb,
lib/assembly-objectfile/object_fileable.rb,
lib/assembly-objectfile/content_metadata.rb

Overview

require ‘checksum-tools’

Defined Under Namespace

Modules: ObjectFileable Classes: ContentMetadata, ObjectFile

Constant Summary collapse

PATH_TO_GEM =

the path to the gem, used to access profiles stored with the gem

File.expand_path(File.dirname(__FILE__) + '/..')
VALID_IMAGE_MIMETYPES =

if input image is not one of these mime types, it will not be regarded as a valid image for the purpose of generating a JP2 derivative

["image/jpeg","image/tiff","image/tif","image/png"]
TRUSTED_MIMETYPES =

the list of mimetypes that will be “trusted” by the unix file command; if a mimetype other than one of these is returned

by the file command, then a check will be made to see if exif data exists...if so, the mimetype returned by the exif data will be used
if no exif data exists, then the mimetype returned by the unix file command will be used
["text/plain","plain/text","application/pdf","text/html","application/xml"]
FILE_ATTRIBUTES =

default publish/preserve/shelve attributes used in content metadata

Hash.new
SPECIAL_DPG_FOLDERS =
['31','50']