cjohansen / juicer

A command line tool for JavaScript and CSS developers
630 stars 47 forks source link

yui_compressor doesn't install #6

Closed craveytrain closed 15 years ago

craveytrain commented 15 years ago

when installing yui_compressor I get this error: /Library/Ruby/Gems/1.8/gems/juicer-0.2.5/lib/juicer/install/yui_compressor_installer.rb:64:in latest': undefined methodget_attribute' for nil:NilClass (NoMethodError)

It looks like Julien isn't hosting the compressor for download on his own site any more (http://www.julienlecomte.net/yuicompressor/) and the URL gets redirected to http://yuilibrary.com/downloads/#yuicompressor.

cjohansen commented 15 years ago

Fixed in 0.2.6 which should be on gem servers shortly

jsahlen commented 14 years ago

This has broken again – the path for finding the latest version doesn't work anymore. Changing line 63 to the following will do the trick: @latest = (webpage / "//h3[@id='yuicompressor']/..//a")[1].text