dropped jsmin now that couch has no view size limit

This commit is contained in:
Chris Anderson 2008-06-20 13:26:11 -07:00
parent f71ab9a545
commit f54f19eb77

View file

@ -64,7 +64,6 @@ puts "Running #{command} into #{prefix} on #{dbname} from directory #{dirname}."
# __END__
require File.expand_path(File.dirname(__FILE__)) + '/../couchrest'
require File.expand_path(File.dirname(__FILE__)) + '/../vendor/jsmin/lib/jsmin'
require 'fileutils'
module Enumerable
@ -80,12 +79,6 @@ end
cr = CouchRest.new("http://localhost:5984")
db = cr.database(dbname)
def readjs(file, libs=nil)
st = open(file).read
st.sub!(/\/\/include-lib/,libs) if libs
JSMin.minify(st)
end
def readfile(file, libs=nil)
st = open(file).read
end