cjohansen / juicer

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

Unable to install yui_compressor #52

Closed schack closed 12 years ago

schack commented 12 years ago

juicer install yui_compressor returns

.gem/ruby/1.9.1/gems/juicer-1.0.13/lib/juicer/install/yui_compressor_installer.rb:66:in latest': undefined method[]' for nil:NilClass (NoMethodError) from /home/henj/.gem/ruby/1.9.1/gems/juicer-1.0.13/lib/juicer/command/install.rb:57:in version' from /home/henj/.gem/ruby/1.9.1/gems/juicer-1.0.13/lib/juicer/command/install.rb:42:inblock in execute' from /home/henj/.gem/ruby/1.9.1/gems/juicer-1.0.13/lib/juicer/command/install.rb:39:in each' from /home/henj/.gem/ruby/1.9.1/gems/juicer-1.0.13/lib/juicer/command/install.rb:39:inexecute' from /pack/ruby-1.9.3-p125/lib/ruby/gems/1.9.1/gems/cmdparse-2.0.3/lib/cmdparse.rb:436:in parse' from /home/henj/.gem/ruby/1.9.1/gems/juicer-1.0.13/lib/juicer/cli.rb:27:inparse' from /home/henj/.gem/ruby/1.9.1/gems/juicer-1.0.13/lib/juicer/cli.rb:37:in run' from /home/henj/.gem/ruby/1.9.1/gems/juicer-1.0.13/bin/juicer:6:in<top (required)>' from /home/henj/.gem/ruby/1.9.1/bin/juicer:19:in load' from /home/henj/.gem/ruby/1.9.1/bin/juicer:19:in

'

What am I missing ?

cjohansen commented 12 years ago

I'm guessing they changed the site markup again? Did the problem persist? Or are you perhaps behind some proxy/firewall?

schack commented 12 years ago

Markup hasn't changed, I fixet it with a minor change in the install/Ruby code. yui_compressor_installer.rb line 63 changed: webpage = Nokogiri::HTML(open(@website)) to webpage = Nokogiri::HTML(open(@website).read)

I did the same thing for the other installers.

cjohansen commented 12 years ago

Thanks, fixed and released as 1.0.14