Sha256: 4b288a1654a8d412318bf13dcc099f975f41254bd852419a6d7fb3a91042c5a8

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

require 'digest/sha2'
require 'erb'
require 'pathname'
require 'yaml'

# Gems.
require 'rmagick'

# On with the library...
require 'montage/core_ext'
require 'montage/project'
require 'montage/sass_builder'
require 'montage/source'
require 'montage/sprite'
require 'montage/sprite_definition'
require 'montage/version'

module Montage
  # Generic exception for all Montage exception classes.
  MontageError = Class.new(StandardError)

  # Raised when a project directory couldn't be found.
  MissingProject = Class.new(MontageError)

  # Raised when a creating a new project in an existing project directory.
  ProjectExists = Class.new(MontageError)

  # Raised when a sprite set expects a source image, but none could be found.
  MissingSource = Class.new(MontageError)

  # Raised when a sprite can't be saved due to incorrect permissions.
  TargetNotWritable = Class.new(MontageError)

  # Raised when a sprite defintion doesn't include a name.
  MissingName = Class.new(MontageError)

  # Raised when a sprite defines a :name path segment, and a name option.
  DuplicateName = Class.new(MontageError)

  # Raised when a sprite definition doesn't have a to option.
  MissingTo = Class.new(MontageError)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
montage-0.4.0 lib/montage.rb
montage-0.3.0 lib/montage.rb