Sha256: 4ccc14e4b1c74f798c8ca17e7c06fdb2a9eb28264b36cffe09865ee0570df683
Contents?: true
Size: 371 Bytes
Versions: 14
Compression:
Stored size: 371 Bytes
Contents
module Distil module YuiMinifiableFile def minified_content(source=content) # Run the Y!UI Compressor return source if !content_type buffer= "" IO.popen("java -jar #{COMPRESSOR} --type #{content_type}", "r+") { |pipe| pipe.puts(source) pipe.close_write buffer= pipe.read } buffer end end end
Version data entries
14 entries across 14 versions & 1 rubygems