Sha256: 612aaa22b955f61d396fa2c7af89ddef2a9a51cecfc9f472151dea444bbdc2c8

Contents?: true

Size: 868 Bytes

Versions: 4

Compression:

Stored size: 868 Bytes

Contents

require "sprockets"
require "sprockets/compressors"
require "sprockets/static_compiler"

## override a compass function that appears to contain a typo
module Compass
  module Configuration
    def self.add_configuration_property(name, comment = nil, &default)
      ATTRIBUTES << name
      if comment.is_a?(String)
        unless comment[0..0] == "#"
          comment = "# #{comment}"
        end
        unless comment[-1..-1] == "\n"
          comment = comment + "\n"
        end
        Data.class_eval <<-COMMENT
          def comment_for_#{name}
            #{comment.inspect}
          end
        COMMENT
      end
      Data.send(:define_method, :"default_#{name}", &default) if default
      Data.inherited_accessor(name)
      if name.to_s =~ /dir|path/
        Data.strip_trailing_separator(name)
      end
    end
  end
end

require "compass/sprockets"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mobox-0.0.3 vendor/compass-sprockets/lib/compass-sprockets.rb
mobox-0.0.2 vendor/compass-sprockets/lib/compass-sprockets.rb
mobox-0.0.1.1 vendor/compass-sprockets/lib/compass-sprockets.rb
mobox-0.0.1 vendor/compass-sprockets/lib/compass-sprockets.rb