Tenderlove Making

Ruby WWW::Mechanize 0.6.1 (Chuck)

I thought that while I was traveling in Europe I would be able to work on WWW::Mechanize, but then I found out that I can’t do anything when I’m travling. Traveling is too much work for me to do anything productive. Luckily I took a day off after my travels, and I was able to complete my work on Mechanize only a couple days late. I think Mechanize is getting more popular, judging from the number of bug submitted. I’ve fixed more bugs this release than any other. Check out the CHANGELOG for more details on the bug fixes.

As far as new features are concerned, I’ve added a submit method to forms. Before, you had to call submit on the mechanize object and pass in the form like this: ~~~ ruby page = agent.submit form ~~~ Now you can just call the submit method on the form like this: ~~~ ruby page = form.submit ~~~ Along the same line, I’ve added a click method to links. Instead of passing a link to the agent object, you can just call the click method on the link like so: ~~~ ruby page = link.click ~~~ I wonder when people will figure out where the release names come from. Nobody has said anything about them to me….. So far I have:

  • Twan
  • Sylvester
  • Rufus
  • Chuck
« go back