Sha256: 71b48b5a6f1be5e071bef5b5ebf5a69909bc0bdd8bc3b1a6aaa4515611639c88

Contents?: true

Size: 241 Bytes

Versions: 14

Compression:

Stored size: 241 Bytes

Contents

module Sinatra::AssetPack
  class SimpleEngine < Engine
    def css(str, options={})
      str.gsub! /[ \r\n\t]+/m, ' '
      str.gsub! %r{ *([;\{\},:]) *}, '\1'
      str
    end
  end

  Compressor.register :css, :simple, SimpleEngine
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
sinatra-assetpack-0.1.7 lib/sinatra/assetpack/engines/simple.rb
sundawg-sinatra-assetpack-fork-0.1.6 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.1.6 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.1.5 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.1.4 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.1.3 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.1.2 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.1.1 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.1.0 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-flexible-compression-0.0.1 lib/sinatra/assetpack/engines/simple.rb
sundawg-sinatra-assetpack-fork-0.0.12.pre1 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.0.12.pre1 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.0.11 lib/sinatra/assetpack/engines/simple.rb
sinatra-assetpack-0.0.10 lib/sinatra/assetpack/engines/simple.rb