Sha256: b1898ff0bfa5eb97ff6eea85e5c1c20d2e9d31c688bc1fd1060ba899b1801700

Contents?: true

Size: 1.38 KB

Versions: 4

Compression:

Stored size: 1.38 KB

Contents

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

# Gems.
require 'rmagick'

# On with the library...
require 'polymer/cache'
require 'polymer/core_ext'
require 'polymer/css_generator'
require 'polymer/deviant_finder'
require 'polymer/dsl'
require 'polymer/optimisation'
require 'polymer/project'
require 'polymer/sass_generator'
require 'polymer/source'
require 'polymer/sprite'
require 'polymer/version'

module Polymer
  # Generic exception for all Polymer exception classes.
  PolymerError = Class.new(StandardError)

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

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

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

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

  # Raised when an error happens using the DSL.
  DslError = Class.new(PolymerError)

  # Raised when a sprite definition is lacking a { source => sprite } pair.
  MissingMap = Class.new(DslError)

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

  # Raised when sprite is defined with a name which has already been used.
  DuplicateName = Class.new(DslError)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
polymer-1.0.0.beta.6 lib/polymer.rb
polymer-1.0.0.beta.5 lib/polymer.rb
polymer-1.0.0.beta.4 lib/polymer.rb
polymer-1.0.0.beta.3 lib/polymer.rb