Posted By: Aaron Patterson
Date: 2006-10-11 06:08
Summary: Ruby Mechanize 0.6.2 (Bridget)
Project: Mechanize
The latest version of Ruby Mechanize (Bridget) is ready to go. Make sure to
get the new version as it contains some new features and a few bugfixes as
well!
= Mechanize Release Notes
== 0.6.2 (Bridget)
Mechanize 0.6.2 (Bridget) is a fairly small bug fix release. You can now
access the parsed page when a ResponseCodeError is thrown. For example, this
loads a page that doesn't exist, but gives you access to the parsed 404 page:
begin
WWW::Mechanize.new().get('http://google.com/asdfasdfadsf.html')
rescue WWW::Mechanize::ResponseCodeError => ex
puts ex.page
end
Accessing forms is now more DSL like. When manipulating a form, for example,
you can use the following syntax:
page.form('formname') { |form|
form.first_name = "Aaron"
}.submit
Documentation has also been updated thanks to Paul Smith.
= Mechanize CHANGELOG
== 0.6.2
* Added a yield to Page#form so that dealing with forms can be more DSL like.
* Added the parsed page to the ResponseCodeError so that the parsed results
can be accessed even in the event of an error.
http://rubyforge.org/pipermail/mechanize-users/2006-September/000007.html
* Updated documentation (Thanks to Paul Smith) |
|