Posted By: Aaron Patterson
Date: 2006-07-12 08:19
Summary: WWW::Mechanize 0.5.0
Project: Mechanize

Mechanize 0.5.0 is now available!

= Mechanize Release Notes

== 0.5.0

Good News first:

This release has many new great features! Mechanize has been updated to
handle any content type a web server returns using a system called "Pluggable
Parsers". Mechanize has always been able to handle any content type
(sort of), but the pluggable parser system lets us cleanly handle any
content type by instantiating a class for the content type returned from the
server. For example, a web server returns type 'text/html', mechanize asks
the pluggable parser for a class to instantiate for 'text/html'. Mechanize
then instantiates that class and returns it. Users can define their own
parsers, and register them with the Pluggable Parser so that mechanize will
instantiate your class when the content type you specify is returned. This
allows you to easily preprocess your HTML, or even use other HTML parsers.
Content types that the pluggable parser doesn't know how to handle will
return WWW::Mechanize::File which has basic functionality like a 'save_as'
method. For more information, see the RDoc for
WWW::Mechanize::PluggableParser also see the EXAMPLES file.

A 'save_as' method has been added so that any page downloaded can be easily
saved to a file.

The cookie jar for mechanize can now be saved to disk and loaded back up at
another time. If your script needs to save cookie state between executions,
you can now use the 'save_as' and 'load' methods on WWW::Mechanize::CookieJar.

Form fields can now be treated as accessors. This means that if you have a
form with the fields 'username' and 'password', you could manipulate them like
this:

form.username = 'test'
form.password = 'testing'
puts "username: #{form.username}"
puts "password: #{form.password}"

Form fields can still be accessed in the usual way in case there are multiple
input fields with the same name.

Bad news second:

In this release, the name space has been altered to be more consistent. Many
classes used to be under WWW directly, they are now all under WWW::Mechanize.
For example, in 0.4.7 Page was WWW::Page, in this release it is now
WWW::Mechanize::Page. This may break your code, but if you aren't using
class names directly, everything should be fine.

Body filters have been removed in favor of Pluggable Parsers.

= Mechanize CHANGELOG

== 0.5.0

* Added pluggable parsers. (Thanks to Eric Kolve for the idea)
* Changed namespace so all classes are under WWW::Mechanize.
* Updating Forms so that fields can be used as accessors (Thanks Gregory Brown)
* Added WWW::Mechanize::File as default object used for unknown content types.
* Added 'save_as' method to Mechanize::File, so any page can be saved.
* Adding 'save_as' and 'load' to CookieJar so that cookies can be saved
between sessions.
* Added WWW::Mechanize::FileSaver pluggable parser to automatically save files.
* Added WWW::Mechanize::Page#title for page titles
* Added OpenSSL certificate support (Thanks Mike Dalessio)
* Removed support for body filters in favor of pluggable parsers.
* Fixed cookie bug adding a '/' when the url is missing one (Thanks Nick Dainty)

Latest News
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11
kramdown 1.0.2 released
    Thomas Leitner - 2013-05-09 06:58
mime-types 1.23 Released
    Austin Ziegler - 2013-04-21 01:41
diff-lcs 1.2.4 Released
    Austin Ziegler - 2013-04-21 00:08

 

Forums | Admin

Discussion Forums: www--mechanize-0.5.0

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post