Sha256: 861e354508a484b2a31f2f2c29b7a5d931c76725c1cd6398e2212b7de431f589

Contents?: true

Size: 783 Bytes

Versions: 2

Compression:

Stored size: 783 Bytes

Contents

require 'riiif/version'
require 'deprecation'
require 'riiif/engine'
module Riiif
  extend ActiveSupport::Autoload
  autoload :Image
  autoload :AbstractFileSystemResolver
  autoload :FileSystemFileResolver
  autoload :HTTPFileResolver
  autoload :Routes
  autoload :AkubraSystemFileResolver
  autoload :NilAuthorizationService

  class Error < RuntimeError; end
  class InvalidAttributeError < Error; end
  class ImageNotFoundError < Error; end

  # This error is raised when Riiif can't convert an image
  class ConversionError < Error; end

  Transformation = Struct.new(:crop, :size, :quality, :rotation, :format)
  mattr_accessor :not_found_image # the image to use when a lookup fails
  mattr_accessor :unauthorized_image # the image to use when a user doesn't have access
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
riiif-1.7.1 lib/riiif.rb
riiif-1.7.0 lib/riiif.rb