Posted By: Aaron Patterson
Date: 2006-09-01 10:03
Summary: WWW::Mechanize 0.4.5 (Sylvester)
Project: Mechanize
== 0.5.4 (Sylvester)
WWW::Mechanize 0.5.4 aka Sylvester is fresh out the the frying pan and in to
the fire! It is also ready for you to download and use.
New features include WWW::Mechanize#transact (thanks to Johan Kiviniemi) which
lets you maintain your history state between transactions. Forms can now be
accessed as a hash. For example, to set the value of an input field, you can
do the following:
form['name'] = "Aaron"
Doing this assumes that you are setting the first field. If there are multiple
fields with the same name, you must use a different method to set the value.
Form file uploads will now read the file specified by FileUpload#file_name.
The mime type will also be automatically determined for you! Take a look
at the EXAMPLES file for a new flickr upload script.
Lastly, gzip encoding is now supported! WWW::Mechanize now supports pages
being sent gzip encoded. This means less network bandwidth. Yay!
== 0.5.4
* Added WWW::Mechanize#trasact for saving history state between in a
transaction. See the EXAMPLES file. Thanks Johan Kiviniemi.
* Added support for gzip compressed pages
* Forms can now be accessed like a hash. For example, to set the value
of an input field named 'name' to "Aaron", you can do this:
form['name'] = "Aaron"
Or to get the value of a field named 'name', do this:
puts form['name']
* File uploads will now read the file specified in FileUpload#file_name
* FileUpload can use an IO object in FileUpload#file_data
* Fixed a bug with saving files on windows
* Fixed a bug with the filename being set in forms |
|