<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: mechanize version 0.6.7 has been released!</title>
	<atom:link href="http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/</link>
	<description>The act of making love, tenderly.</description>
	<pubDate>Thu, 20 Nov 2008 14:26:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4999</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Fri, 13 Apr 2007 20:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4999</guid>
		<description>&lt;p&gt;Hey Tim.  I'm working on in.  Unfortunately this is a pretty big change.  Also, I seem to have found a bug in the latest hpricot gem.  The bug causes my unit tests to fail, but it is a bug with hpricot.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey Tim.  I&#8217;m working on in.  Unfortunately this is a pretty big change.  Also, I seem to have found a bug in the latest hpricot gem.  The bug causes my unit tests to fail, but it is a bug with hpricot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Kersey</title>
		<link>http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4919</link>
		<dc:creator>Tim Kersey</dc:creator>
		<pubDate>Thu, 12 Apr 2007 15:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4919</guid>
		<description>&lt;p&gt;I don't mean to be a bother but I was wondering how the progress is going with updating Mechanize to work with the latest Hpricot gem?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I don&#8217;t mean to be a bother but I was wondering how the progress is going with updating Mechanize to work with the latest Hpricot gem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Kersey</title>
		<link>http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4683</link>
		<dc:creator>Tim Kersey</dc:creator>
		<pubDate>Mon, 09 Apr 2007 17:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4683</guid>
		<description>&lt;p&gt;Here's the exchange from the Hpricot mailing list that talks about the changes to attributes. This is where I'm guess my issue is coming from.&lt;/p&gt;

&lt;p&gt;On Fri, Mar 30, 2007 at 03:16:08AM -0400, Craig Davey wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;or how about:&lt;/p&gt;
  
  &lt;p&gt;doc.at(:a).attributes['href']
  #=&#62; "http://google.com/search?q=hpricot&#38;l=en"&lt;/p&gt;
  
  &lt;p&gt;doc.at(:a).raw_attributes['href']
  #=&#62; "http://google.com/search?q=hpricot&#38;l=en"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Yes, can do.  The real hash will be in raw&lt;em&gt;attributes and
&lt;code&gt;attributes&lt;/code&gt; will return an unescaped Hash.  So, using &lt;code&gt;attributes&lt;/code&gt;
directly isn't recommended, as it's slower, use Element#[] or
Element#get&lt;/em&gt;attribute instead.&lt;/p&gt;

&lt;p&gt;Ok ok ok, salutations!!&lt;/p&gt;

&lt;p&gt;_why&lt;/p&gt;

&lt;p&gt;Here's the error I'm getting when trying to crawl a website
/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/xchar.rb:89:in &lt;code&gt;uxs': private method&lt;/code&gt;gsub' called for nil:NilClass (NoMethodError)
        from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/tag.rb:58:in &lt;code&gt;attributes'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in&lt;/code&gt;inject'
        from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/tag.rb:57:in &lt;code&gt;each'
        from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/tag.rb:57:in&lt;/code&gt;inject'
        from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/tag.rb:57:in &lt;code&gt;attributes'
        from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.7/lib/mechanize/form_elements.rb:220:in&lt;/code&gt;initialize'
        from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.7/lib/mechanize/form&lt;em&gt;elements.rb:125:in &lt;code&gt;new'
        from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.7/lib/mechanize/form_elements.rb:125:in&lt;/code&gt;initialize'
         ... 31 levels...
        from ./scripts/../grays/book&lt;/em&gt;adoptions/book&lt;em&gt;adoptions.rb:15:in &lt;code&gt;new'
        from ./scripts/../grays/book_adoptions/book_adoptions.rb:15:in&lt;/code&gt;get'
        from scripts/get&lt;/em&gt;adoptions.rb:29:in `get&lt;em&gt;adoptions'
        from scripts/get&lt;/em&gt;adoptions.rb:51&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the exchange from the Hpricot mailing list that talks about the changes to attributes. This is where I&#8217;m guess my issue is coming from.</p>
<p>On Fri, Mar 30, 2007 at 03:16:08AM -0400, Craig Davey wrote:</p>
<blockquote>
<p>or how about:</p>
<p>doc.at(:a).attributes['href']<br />
  #=&gt; &#8220;http://google.com/search?q=hpricot&amp;l=en&#8221;</p>
<p>doc.at(:a).raw_attributes['href']<br />
  #=&gt; &#8220;http://google.com/search?q=hpricot&amp;l=en&#8221;</p>
</blockquote>
<p>Yes, can do.  The real hash will be in raw<em>attributes and</em></p>
<div class="codesnip-container" >attributes</div>
<p> will return an unescaped Hash.  So, using
<div class="codesnip-container" >attributes</div>
</p><p>directly isn&#8217;t recommended, as it&#8217;s slower, use Element#[] or<br />
Element#getattribute instead.</p>
<p>Ok ok ok, salutations!!</p>
<p>_why</p>
<p>Here&#8217;s the error I&#8217;m getting when trying to crawl a website<br />
/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/xchar.rb:89:in
<div class="codesnip-container" >uxs&#8217;: private method</div>
</p><p>gsub&#8217; called for nil:NilClass (NoMethodError)<br />
        from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/tag.rb:58:in
<div class="codesnip-container" >attributes&#8217;<br />
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in</div>
</p><p>inject&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/tag.rb:57:in
<div class="codesnip-container" >each&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/tag.rb:57:in</div>
</p><p>inject&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5.136/lib/hpricot/tag.rb:57:in
<div class="codesnip-container" >attributes&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.7/lib/mechanize/form_elements.rb:220:in</div>
</p><p>initialize&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.7/lib/mechanize/form<em>elements.rb:125:in
<div class="codesnip-container" >new&#8217;<br />
        from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.7/lib/mechanize/form_elements.rb:125:in</div>
<p>initialize&#8217;<br />
         &#8230; 31 levels&#8230;<br />
        from ./scripts/../grays/book</p></em>adoptions/book<em>adoptions.rb:15:in
<div class="codesnip-container" >new&#8217;<br />
        from ./scripts/../grays/book_adoptions/book_adoptions.rb:15:in</div>
<p>get&#8217;<br />
        from scripts/get</p></em>adoptions.rb:29:in `get<em>adoptions&#8217;<br />
        from scripts/get</em>adoptions.rb:51</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Patterson</title>
		<link>http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4679</link>
		<dc:creator>Aaron Patterson</dc:creator>
		<pubDate>Mon, 09 Apr 2007 17:26:50 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4679</guid>
		<description>&lt;p&gt;Typically I keep mechanize working with gems that _why publishes on Rubyforge.  I'll install the latest from _why's site and see if I can't get it working with the next release.&lt;/p&gt;

&lt;p&gt;Is there any specific problem you are seeing?  I'd like to make sure I can reproduce the error you're getting.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Typically I keep mechanize working with gems that _why publishes on Rubyforge.  I&#8217;ll install the latest from _why&#8217;s site and see if I can&#8217;t get it working with the next release.</p>
<p>Is there any specific problem you are seeing?  I&#8217;d like to make sure I can reproduce the error you&#8217;re getting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Kersey</title>
		<link>http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4676</link>
		<dc:creator>Tim Kersey</dc:creator>
		<pubDate>Mon, 09 Apr 2007 17:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4676</guid>
		<description>&lt;p&gt;When do you think you will update mechanize to work with the latest stable version of Hpricot (0.5.134)? There are a few changes that were made with attributes that is tripping up mechanize 0.6.7.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>When do you think you will update mechanize to work with the latest stable version of Hpricot (0.5.134)? There are a few changes that were made with attributes that is tripping up mechanize 0.6.7.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Annie</title>
		<link>http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4596</link>
		<dc:creator>Annie</dc:creator>
		<pubDate>Sat, 07 Apr 2007 23:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4596</guid>
		<description>&lt;p&gt;touche.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>touche.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jax</title>
		<link>http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4221</link>
		<dc:creator>jax</dc:creator>
		<pubDate>Tue, 03 Apr 2007 01:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/2007/03/29/mechanize-version-067-has-been-released-2/#comment-4221</guid>
		<description>&lt;p&gt;I think you should have less of this tech talk and put more of your poetry on your blog.  Really.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think you should have less of this tech talk and put more of your poetry on your blog.  Really.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
