Mechanize v2.7.4 Release Notes

Release Date: 2015-12-31 // about 8 years ago
    • ๐Ÿ†• New Features

      • Accept array-like and hash-like values as query/parameter value. A new utility method Mechanize::Util.each_parameter is added, and Mechanize::Util.build_query_string is enhanced for this feature.
      • Allow passing a Form::FileUpload instance to #post. #350 by Sam Rawlins.
      • Capture link when scheme is unsupported. #362 by Jon Rowe.
      • Pre-defined User-Agent stings are updated to those of more recent versions, and new aliases for IE 10/11 and Edge are added.
      • Support for mime-types 1.x is restored while keeping compatible with mime-types 2.x.
      • Mechanize::Page now responds to #xpath, #css, #at_xpath, #at_css, and #%.
      • element(s)_with methods now accept :xpath and :css options for doing xpath/css selector searching.
      • Pass URI information to Nokogiri where applicable. #405 @lulalala
    • ๐Ÿ› Bug fix

      • Don't raise an exception if a connection has set a {read,open}_timeout and a file:// request is made. (#397)
      • Fix whitespace bug in WWW-Authenticate. #451, #450, by Rasmus Bergholdt
      • Don't allow redirect from a non-file URL to a file URL for security reasons. (#455)