# File lib/juicer/install/yui_compressor_installer.rb, line 31 def install(version = nil) version = super(version) base = "yuicompressor-#{version}" filename = download(@cdn+@href) target = File.join(@install_dir, path) Zip::ZipFile.open(filename) do |file| file.extract("#{base}/doc/README", File.join(target, version, "README")) file.extract("#{base}/doc/CHANGELOG", File.join(target, version, "CHANGELOG")) file.extract("#{base}/build/#{base}.jar", File.join(target, "bin", "#{base}.jar")) end end