[Uw-ruby] More debugging in the "soup"

Ryan Davis ryand-uwruby at zenspider.com
Wed Dec 5 14:45:32 PST 2007


On Dec 1, 2007, at 15:14 , Steve Dame wrote:

> I followed some Google paths on a similar error message that had to  
> do with a mysql error that was the same.  Seems it is mostly a path  
> related thing and the Mac OSX install of Ruby perhaps.  I don't  
> know.  I'm not yet qualified to really understand or debug these  
> dependency issues.  That is very frustrating since this  should be a  
> non-issue.
>
> Anyway perhaps there was a problem with the way I had to hard code  
> my She-Bang for the Linux environment as Ryan discussed the other  
> night.  So, on my Mac as least, I changed the She-Bang back to
> #!/usr/bin/env ruby -w

That should be fine. The other way is to avoid it and just specify  
ruby directly:

% ruby myscript.rb

I have to do this with all the homework coming from windows developers  
anyhow since they don't add shebangs.

> That fixed part of the issue with "rubyful_soup" except now for an  
> annoying warning message coming from line 230 in ruby_soup.rb.
>  % ./txml.rb
> /usr/local/lib/ruby/gems/1.8/gems/rubyful_soup-1.0.4/lib/ 
> rubyful_soup.rb:230: warning: method redefined; discarding old attrs

lame. file a bug and tell them to clean up their stuff.

I've not used rubyful_soup. I've always used hpricot. how do you like  
it?


More information about the Uw-ruby mailing list