lib/rack/less.rb in rack-less-1.5.0 vs lib/rack/less.rb in rack-less-2.0.0

- old
+ new

@@ -22,13 +22,13 @@ # run app module Rack::Less MIME_TYPE = "text/css" @@config = Config.new - + class << self - + # Configuration accessors for Rack::Less # (see config.rb for details) def configure yield @@config if block_given? end @@ -36,37 +36,31 @@ @@config end def config=(value) @@config = value end - + # Combinations config convenience method def combinations(key=nil) @@config.combinations(key) end - + # Stylesheet helper, config convenience method def stylesheet(key) @@config.stylesheet(key) end # Cache bust config convenience method def cache_bust @@config.cache_bust end - # <b>DEPRECATED:</b> Please use <tt>cache_bust</tt> instead. - def combination_timestamp - warn "[DEPRECATION] `combination_timestamp` is deprecated. Please use `cache_bust` instead." - cache_bust - end - end - # Create a new Rack::Less middleware component + # Create a new Rack::Less middleware component # => the +options+ Hash can be used to specify default configuration values # => (see Rack::Less::Options for possible key/values) def self.new(app, options={}, &block) Base.new(app, options, &block) end - + end