# \[ANN\] mechanize 2.3 Released

**URL:** <https://rubytalk.org/t/ann-mechanize-2-3-released/64923>\
**Category:** ruby-talk\
**Created:** [21 February 2012 01:18 UTC](https://rubytalk.org/t/ann-mechanize-2-3-released/64923 "2012-02-21T01:18:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [21 February 2012 01:18 UTC](https://rubytalk.org/t/ann-mechanize-2-3-released/64923/1 "2012-02-21T01:18:32Z")

</div>

mechanize version 2.3 has been released!

\* [http://mechanize.rubyforge.org](http://mechanize.rubyforge.org)  
\* [https://github.com/tenderlove/mechanize](https://github.com/tenderlove/mechanize)

The Mechanize library is used for automating interaction with websites.  
Mechanize automatically stores and sends cookies, follows redirects,  
and can follow links and submit forms. Form fields can be populated and  
submitted. Mechanize also keeps track of the sites that you have visited as  
a history.

=== 2.3 / 2012-02-20

\* Minor enhancement  
&nbsp;&nbsp;\* Add support for the Max-Age attribute in the Set-Cookie header.  
&nbsp;&nbsp;\* Added Mechanize::Download#body for compatibility with Mechanize::File when  
&nbsp;&nbsp;&nbsp;&nbsp;using Mechanize#get\_file with Mechanize::Image or other Download-based  
&nbsp;&nbsp;&nbsp;&nbsp;pluggable parser. Issue #202 by angas  
&nbsp;&nbsp;\* Mechanize#max\_file\_buffer may be set to nil to disable creation of  
&nbsp;&nbsp;&nbsp;&nbsp;Tempfiles.

\* Bug fixes  
&nbsp;&nbsp;\* Applied Mechanize#max\_file\_buffer to the Content-Encoding handlers as well  
&nbsp;&nbsp;&nbsp;&nbsp;to prevent extra Tempfiles for small gzip or deflate response  
&nbsp;&nbsp;\* Increased the default Mechanize#max\_file\_buffer to 100,000 bytes. This  
&nbsp;&nbsp;&nbsp;&nbsp;gives ~5MB of response bodies in memory with the default history setting  
&nbsp;&nbsp;&nbsp;&nbsp;of 50 pages (depending on GC behavior).  
&nbsp;&nbsp;\* Ignore empty path/domain attributes.  
&nbsp;&nbsp;\* Cookies with an empty Expires attribute value were stored as session  
&nbsp;&nbsp;&nbsp;&nbsp;cookies but cookies without the Expires attribute were not. Issue #78
