Permalink
Browse files

Update builder and test suite app to use Juicer correctly

  • Loading branch information...
1 parent ff0664c commit b70382b3c51d9c624febc248a7475cebcd500de9 cjo committed Oct 5, 2009
Showing with 5 additions and 4 deletions.
  1. +4 −3 lib/vbuilder/vbuilder.rb
  2. +1 −1 test/validatious-suite.rb
View
@@ -31,14 +31,15 @@ def assemble(filename = nil, minify = true)
FileUtils.mkdir_p(File.dirname(fname))
# Merge files
- merger = Juicer::Merger::JavaScriptFileMerger.new(scripts)
+ merger = Juicer::Merger::JavaScriptMerger.new(scripts)
merger.save(fname)
# Minify
if minify
begin
- minifyer = Juicer::Minifyer::YuiCompressor.new
- minifyer.compress(fname, fname)
+ path = File.join(Juicer.home, "lib/yui_compressor/bin")
+ minifyer = Juicer::Minifyer::YuiCompressor.new(:bin_path => path)
+ minifyer.save(fname, fname)
rescue Exception => e
puts e.message
exit
@@ -34,7 +34,7 @@
"core/field_validator", "validators/standard", "messages/errors.en",
"extensions/reporting"].collect { |file| path("src/#{file}.js") }
- resolver = Juicer::Merger::JavaScriptFileMerger.new(files)
+ resolver = Juicer::Merger::JavaScriptMerger.new(files)
@scripts.concat(resolver.files.collect { |file| relative(file).sub(/\.js$/, "") })
end
end

0 comments on commit b70382b

Please sign in to comment.