Sha256: 32371541b096b008ae64b368414bf7c63641a404547e2b91b752b0a0a2644688
Contents?: true
Size: 745 Bytes
Versions: 5
Compression:
Stored size: 745 Bytes
Contents
#!/usr/bin/env ruby require File.join(File.dirname(__FILE__), *%w[.. lib rainpress]) STDOUT.sync = true require 'rubygems' require 'optparse' options = {} opts = OptionParser.new do |opts| opts.banner = <<-EOF Usage: csspress [options] <inputfile> EOF opts.on('-c', "--comments", "Keep comments") { options[:comments] = false } opts.on('-n', "--newlines", "Keep newlines") { options[:newlines] = false } opts.on('-s', "--spaces", "Do NOT compress spaces") { options[:spaces] = false } opts.on('-k', "--colors", "Do NOT compress colors") { options[:colors] = false } opts.on('-m', "--misc", "Do NOT do misc compression") { options[:misc] = false } end opts.parse! puts Rainpress.new(File.read(ARGV[0]), options).compress!
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
rainpress-1.0.1 | bin/csspress |
sprsquish-rainpress-0.0.0 | bin/csspress |
sprsquish-rainpress-1.0.0 | bin/csspress |
sprsquish-rainpress-1.0 | bin/csspress |
rainpress-1.0 | bin/csspress |