Update www/ruby-mechanize package to 2.0.1.

=== 2.0.1 / 2011-06-28

Mechanize now uses minitest to avoid 1.9 vs 1.8 assertion availability in
test/unit

* Bug Fixes
  * Restored Mechanize#set_proxy.  Issue #117, #118, #119
  * Mechanize::CookieJar#load now lazy-loads YAML.  Issue #118
  * Mechanize#keep_alive_time no longer crashes but does nothing as
    net-http-persistent does not support HTTP/1.0 keep-alive extensions.

=== 2.0 / 2011-06-27

Mechanize is now under the MIT license

* API changes
  * WWW::Mechanize has been removed.  Use Mechanize.
  * Pre connect hooks are now called with the agent and the request.  See
    Mechanize#pre_connect_hooks.
  * Post connect hooks are now called with the agent and the response.  See
    Mechanize#post_connect_hooks.
  * Mechanize::Chain is gone, as an internal API this should cause no problems.
  * Mechanize#fetch_page no longer accepts an options Hash.
  * Mechanize#put now accepts headers instead of an options Hash as the last
    argument
  * Mechanize#delete now accepts headers instead of an options Hash as the
    last argument
  * Mechanize#request_with_entity now accepts headers instead of an options
    Hash as the last argument
  * Mechanize no longer raises RuntimeError directly, Mechanize::Error or
    ArgumentError are raised instead.
  * The User-Agent header has changed.  It no longer includes the WWW- prefix
    and now includes the ruby version.  The URL has been updated as well.
  * Mechanize now requires ruby 1.8.7 or newer.
  * Hpricot support has been removed as webrobots requires nokogiri.
  * Mechanize#get no longer accepts the referer as the second argument.
  * Mechanize#get no longer allows the HTTP method to be changed (:verb
    option).
  * Mechanize::Page::Meta is now Mechanize::Page::MetaRefresh to accurately
    depict its responsibilities.
  * Mechanize::Page#meta is now Mechanize::Page#meta_refresh as it only
    contains meta elements with http-equiv of "refresh"
  * Mechanize::Page#charset is now Mechanize::Page::charset.  GH #112, patch
    by Godfrey Chan.

* Deprecations
  * Mechanize#get with an options hash is deprecated and will be removed after
    October, 2011.
  * Mechanize::Util::to_native_charset is deprecated as it is no longer used
    by Mechanize.

* New Features

  * Add header reference methods to Mechanize::File so that a reponse
    object gets compatible with Net::HTTPResponse.
  * Mechanize#click accepts a regexp or string to click a button/link in the
    current page. It works as expected when not passed a string or regexp.
  * Provide a way to only follow permanent redirects (301)
    automatically: <tt>agent.redirect_ok = :permanent</tt>  GH #73
  * Mechanize now supports HTML5 meta charset.  GH #113
  * Documented various Mechanize accessors.  GH #66
  * Mechanize now uses net-http-digest_auth.  GH #31
  * Mechanize now implements session cookies.  GH #78
  * Mechanize now implements deflate decoding.  GH #40
  * Mechanize now allows a certificate and key to be passed directly.  GH #71
  * Mechanize::Form::MultiSelectList now implements #option_with and
    #options_with.  GH #42
  * Add Mechanize::Page::Link#rel and #rel?(kind) to read and test the rel
    attribute.
  * Add Mechanize::Page#canonical_uri to read a </tt><link
    rel="canonical"></tt> tag.
  * Add support for Robots Exclusion Protocol (i.e. robots.txt) and
    nofollow/noindex in meta tags and the rel attribute.  Automatic
    exclusion can be turned on by setting:
      agent.robots = true
  * Manual robots.txt test can be performed with
    Mechanize#robots_allowed? and #robots_disallowed?.
  * Mechanize::Form now supports the accept-charset attribute.  GH #96
  * Mechanize::ResponseReadError is raised if there is an exception while
    reading the response body.  This allows recovery from broken HTTP servers
    (or connections).  GH #90
  * Mechanize#follow_meta_refresh set to :anywhere will follow meta refresh
    found outside of a document's head.  GH #99
  * Add support for HTML5's rel="noreferrer" attribute which indicates
    no "Referer" information should be sent when following the link.
  * A frame will now load its content when #content is called.  GH #111
  * Added Mechanize#default_encoding to provide a default for pages with no
    encoding specified.  GH #104
  * Added Mechanize#force_default_encoding which only uses
    Mechanize#default_encoding for parsing HTML.  GH #104

* Bug Fixes:

  * Fixed a bug where Referer is not sent when accessing a relative
    URI starting with "http".
  * Fix handling of Meta Refresh with relative paths.  GH #39
  * Mechanize::CookieJar now supports RFC 2109 correctly.  GH #85
  * Fixed typo in EXAMPLES.rdoc.  GH #74
  * The base element is now handled correctly for images.  GH #72
  * Image buttons with no name attribute are now included in the form's button
    list.  GH#56
  * Improved handling of non ASCII-7bit compatible characters in links (only
    an issue on ruby 1.8).  GH #36, GH #75
  * Loading cookies.txt is faster.  GH #38
  * Mechanize no longer sends cookies for a.b.example to axb.example.  GH #41
  * Mechanize no longer sends the button name as a form field for image
    buttons.  GH #45
  * Blank cookie values are now skipped.  GH #80
  * Mechanize now adds a '.' to cookie domains if no '.' was sent.  This is
    not allowed by RFC 2109 but does appear in RFC 2965.  GH #86
  * file URIs are now read in binary mode.  GH #83
  * Content-Encoding: x-gzip is now treated like gzip per RFC 2616.
  * Mechanize now unescapes URIs for meta refresh.  GH #68
  * Mechanize now has more robust HTML charset detection.  GH #43
  * Mechanize::Form::Textarea is now created from a textarea element.  GH #94
  * A meta content-type now overrides the HTTP content type.  GH #114
  * Mechanize::Page::Link#uri now handles both escaped and unescaped hrefs.
    GH #107
This commit is contained in:
taca 2011-08-13 00:29:32 +00:00
parent d5724b4fa9
commit 136aae85d8
3 changed files with 57 additions and 61 deletions

View file

@ -1,16 +1,19 @@
# $NetBSD: Makefile,v 1.4 2010/09/10 13:54:48 taca Exp $
# $NetBSD: Makefile,v 1.5 2011/08/13 00:29:32 taca Exp $
DISTNAME= mechanize-1.0.0
DISTNAME= mechanize-2.0.1
CATEGORIES= www
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://mechanize.rubyforge.org/
COMMENT= Library to automate interaction with websites
LICENSE= gnu-gpl-v2
LICENSE= mit
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= ${RUBY_PKGPREFIX}-nokogiri>=1.2.1:../../textproc/ruby-nokogiri
DEPENDS+= ${RUBY_PKGPREFIX}-nokogiri>=1.4<2:../../textproc/ruby-nokogiri
DEPENDS+= ${RUBY_PKGPREFIX}-net-http-persistent>=1.8<2:../../www/ruby-net-http-persistent
DEPENDS+= ${RUBY_PKGPREFIX}-net-http-digest_auth>=1.1<2:../../www/ruby-net-http-digest_auth
DEPENDS+= ${RUBY_PKGPREFIX}-webrobots>=0.0<1:../../www/ruby-webrobots
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,5 +1,7 @@
@comment $NetBSD: PLIST,v 1.5 2010/09/10 13:54:48 taca Exp $
@comment $NetBSD: PLIST,v 1.6 2011/08/13 00:29:32 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/.autotest
${GEM_LIBDIR}/.gemtest
${GEM_LIBDIR}/CHANGELOG.rdoc
${GEM_LIBDIR}/EXAMPLES.rdoc
${GEM_LIBDIR}/FAQ.rdoc
@ -14,26 +16,13 @@ ${GEM_LIBDIR}/examples/proxy_req.rb
${GEM_LIBDIR}/examples/rubyforge.rb
${GEM_LIBDIR}/examples/spider.rb
${GEM_LIBDIR}/lib/mechanize.rb
${GEM_LIBDIR}/lib/mechanize/chain.rb
${GEM_LIBDIR}/lib/mechanize/chain/auth_headers.rb
${GEM_LIBDIR}/lib/mechanize/chain/body_decoding_handler.rb
${GEM_LIBDIR}/lib/mechanize/chain/connection_resolver.rb
${GEM_LIBDIR}/lib/mechanize/chain/custom_headers.rb
${GEM_LIBDIR}/lib/mechanize/chain/handler.rb
${GEM_LIBDIR}/lib/mechanize/chain/header_resolver.rb
${GEM_LIBDIR}/lib/mechanize/chain/parameter_resolver.rb
${GEM_LIBDIR}/lib/mechanize/chain/post_connect_hook.rb
${GEM_LIBDIR}/lib/mechanize/chain/pre_connect_hook.rb
${GEM_LIBDIR}/lib/mechanize/chain/request_resolver.rb
${GEM_LIBDIR}/lib/mechanize/chain/response_body_parser.rb
${GEM_LIBDIR}/lib/mechanize/chain/response_header_handler.rb
${GEM_LIBDIR}/lib/mechanize/chain/response_reader.rb
${GEM_LIBDIR}/lib/mechanize/chain/ssl_resolver.rb
${GEM_LIBDIR}/lib/mechanize/chain/uri_resolver.rb
${GEM_LIBDIR}/lib/mechanize/content_type_error.rb
${GEM_LIBDIR}/lib/mechanize/cookie.rb
${GEM_LIBDIR}/lib/mechanize/cookie_jar.rb
${GEM_LIBDIR}/lib/mechanize/element_matcher.rb
${GEM_LIBDIR}/lib/mechanize/file.rb
${GEM_LIBDIR}/lib/mechanize/file_connection.rb
${GEM_LIBDIR}/lib/mechanize/file_request.rb
${GEM_LIBDIR}/lib/mechanize/file_response.rb
${GEM_LIBDIR}/lib/mechanize/file_saver.rb
${GEM_LIBDIR}/lib/mechanize/form.rb
@ -48,6 +37,8 @@ ${GEM_LIBDIR}/lib/mechanize/form/radio_button.rb
${GEM_LIBDIR}/lib/mechanize/form/select_list.rb
${GEM_LIBDIR}/lib/mechanize/headers.rb
${GEM_LIBDIR}/lib/mechanize/history.rb
${GEM_LIBDIR}/lib/mechanize/http.rb
${GEM_LIBDIR}/lib/mechanize/http/agent.rb
${GEM_LIBDIR}/lib/mechanize/inspect.rb
${GEM_LIBDIR}/lib/mechanize/monkey_patch.rb
${GEM_LIBDIR}/lib/mechanize/page.rb
@ -56,20 +47,15 @@ ${GEM_LIBDIR}/lib/mechanize/page/frame.rb
${GEM_LIBDIR}/lib/mechanize/page/image.rb
${GEM_LIBDIR}/lib/mechanize/page/label.rb
${GEM_LIBDIR}/lib/mechanize/page/link.rb
${GEM_LIBDIR}/lib/mechanize/page/meta.rb
${GEM_LIBDIR}/lib/mechanize/page/meta_refresh.rb
${GEM_LIBDIR}/lib/mechanize/pluggable_parsers.rb
${GEM_LIBDIR}/lib/mechanize/redirect_limit_reached_error.rb
${GEM_LIBDIR}/lib/mechanize/redirect_not_get_or_head_error.rb
${GEM_LIBDIR}/lib/mechanize/response_code_error.rb
${GEM_LIBDIR}/lib/mechanize/response_read_error.rb
${GEM_LIBDIR}/lib/mechanize/robots_disallowed_error.rb
${GEM_LIBDIR}/lib/mechanize/unsupported_scheme_error.rb
${GEM_LIBDIR}/lib/mechanize/util.rb
${GEM_LIBDIR}/test/chain/test_argument_validator.rb
${GEM_LIBDIR}/test/chain/test_auth_headers.rb
${GEM_LIBDIR}/test/chain/test_custom_headers.rb
${GEM_LIBDIR}/test/chain/test_header_resolver.rb
${GEM_LIBDIR}/test/chain/test_parameter_resolver.rb
${GEM_LIBDIR}/test/chain/test_request_resolver.rb
${GEM_LIBDIR}/test/chain/test_response_reader.rb
${GEM_LIBDIR}/test/data/htpasswd
${GEM_LIBDIR}/test/data/server.crt
${GEM_LIBDIR}/test/data/server.csr
@ -79,6 +65,8 @@ ${GEM_LIBDIR}/test/helper.rb
${GEM_LIBDIR}/test/htdocs/alt_text.html
${GEM_LIBDIR}/test/htdocs/bad_form_test.html
${GEM_LIBDIR}/test/htdocs/button.jpg
${GEM_LIBDIR}/test/htdocs/canonical_uri.html
${GEM_LIBDIR}/test/htdocs/dir with spaces/foo.html
${GEM_LIBDIR}/test/htdocs/empty_form.html
${GEM_LIBDIR}/test/htdocs/file_upload.html
${GEM_LIBDIR}/test/htdocs/find_link.html
@ -92,6 +80,7 @@ ${GEM_LIBDIR}/test/htdocs/form_select_none.html
${GEM_LIBDIR}/test/htdocs/form_select_noopts.html
${GEM_LIBDIR}/test/htdocs/form_set_fields.html
${GEM_LIBDIR}/test/htdocs/form_test.html
${GEM_LIBDIR}/test/htdocs/frame_referer_test.html
${GEM_LIBDIR}/test/htdocs/frame_test.html
${GEM_LIBDIR}/test/htdocs/google.html
${GEM_LIBDIR}/test/htdocs/iframe_test.html
@ -99,9 +88,17 @@ ${GEM_LIBDIR}/test/htdocs/index.html
${GEM_LIBDIR}/test/htdocs/link with space.html
${GEM_LIBDIR}/test/htdocs/meta_cookie.html
${GEM_LIBDIR}/test/htdocs/no_title_test.html
${GEM_LIBDIR}/test/htdocs/nofollow.html
${GEM_LIBDIR}/test/htdocs/noindex.html
${GEM_LIBDIR}/test/htdocs/norobots.html
${GEM_LIBDIR}/test/htdocs/rails_3_encoding_hack_form_test.html
${GEM_LIBDIR}/test/htdocs/rel_nofollow.html
${GEM_LIBDIR}/test/htdocs/relative/tc_relative_links.html
${GEM_LIBDIR}/test/htdocs/robots.html
${GEM_LIBDIR}/test/htdocs/robots.txt
${GEM_LIBDIR}/test/htdocs/tc_bad_charset.html
${GEM_LIBDIR}/test/htdocs/tc_bad_links.html
${GEM_LIBDIR}/test/htdocs/tc_base_images.html
${GEM_LIBDIR}/test/htdocs/tc_base_link.html
${GEM_LIBDIR}/test/htdocs/tc_blank_form.html
${GEM_LIBDIR}/test/htdocs/tc_charset.html
@ -110,6 +107,7 @@ ${GEM_LIBDIR}/test/htdocs/tc_encoded_links.html
${GEM_LIBDIR}/test/htdocs/tc_field_precedence.html
${GEM_LIBDIR}/test/htdocs/tc_follow_meta.html
${GEM_LIBDIR}/test/htdocs/tc_form_action.html
${GEM_LIBDIR}/test/htdocs/tc_images.html
${GEM_LIBDIR}/test/htdocs/tc_links.html
${GEM_LIBDIR}/test/htdocs/tc_meta_in_body.html
${GEM_LIBDIR}/test/htdocs/tc_no_attributes.html
@ -119,54 +117,54 @@ ${GEM_LIBDIR}/test/htdocs/tc_referer.html
${GEM_LIBDIR}/test/htdocs/tc_relative_links.html
${GEM_LIBDIR}/test/htdocs/tc_textarea.html
${GEM_LIBDIR}/test/htdocs/test_bad_encoding.html
${GEM_LIBDIR}/test/htdocs/test_click.html
${GEM_LIBDIR}/test/htdocs/unusual______.html
${GEM_LIBDIR}/test/servlets.rb
${GEM_LIBDIR}/test/ssl_server.rb
${GEM_LIBDIR}/test/test_authenticate.rb
${GEM_LIBDIR}/test/test_bad_links.rb
${GEM_LIBDIR}/test/test_blank_form.rb
${GEM_LIBDIR}/test/test_checkboxes.rb
${GEM_LIBDIR}/test/test_content_type.rb
${GEM_LIBDIR}/test/test_cookie_class.rb
${GEM_LIBDIR}/test/test_cookie_jar.rb
${GEM_LIBDIR}/test/test_cookies.rb
${GEM_LIBDIR}/test/test_encoded_links.rb
${GEM_LIBDIR}/test/test_errors.rb
${GEM_LIBDIR}/test/test_field_precedence.rb
${GEM_LIBDIR}/test/test_follow_meta.rb
${GEM_LIBDIR}/test/test_form_action.rb
${GEM_LIBDIR}/test/test_form_as_hash.rb
${GEM_LIBDIR}/test/test_form_button.rb
${GEM_LIBDIR}/test/test_form_no_inputname.rb
${GEM_LIBDIR}/test/test_forms.rb
${GEM_LIBDIR}/test/test_frames.rb
${GEM_LIBDIR}/test/test_get_headers.rb
${GEM_LIBDIR}/test/test_gzipping.rb
${GEM_LIBDIR}/test/test_hash_api.rb
${GEM_LIBDIR}/test/test_headers.rb
${GEM_LIBDIR}/test/test_history.rb
${GEM_LIBDIR}/test/test_history_added.rb
${GEM_LIBDIR}/test/test_html_unscape_forms.rb
${GEM_LIBDIR}/test/test_if_modified_since.rb
${GEM_LIBDIR}/test/test_keep_alive.rb
${GEM_LIBDIR}/test/test_links.rb
${GEM_LIBDIR}/test/test_mech.rb
${GEM_LIBDIR}/test/test_mech_proxy.rb
${GEM_LIBDIR}/test/test_images.rb
${GEM_LIBDIR}/test/test_mechanize.rb
${GEM_LIBDIR}/test/test_mechanize_cookie.rb
${GEM_LIBDIR}/test/test_mechanize_cookie_jar.rb
${GEM_LIBDIR}/test/test_mechanize_file.rb
${GEM_LIBDIR}/test/test_meta.rb
${GEM_LIBDIR}/test/test_mechanize_file_request.rb
${GEM_LIBDIR}/test/test_mechanize_file_response.rb
${GEM_LIBDIR}/test/test_mechanize_form.rb
${GEM_LIBDIR}/test/test_mechanize_form_check_box.rb
${GEM_LIBDIR}/test/test_mechanize_form_encoding.rb
${GEM_LIBDIR}/test/test_mechanize_form_field.rb
${GEM_LIBDIR}/test/test_mechanize_form_image_button.rb
${GEM_LIBDIR}/test/test_mechanize_form_textarea.rb
${GEM_LIBDIR}/test/test_mechanize_http_agent.rb
${GEM_LIBDIR}/test/test_mechanize_link.rb
${GEM_LIBDIR}/test/test_mechanize_page_encoding.rb
${GEM_LIBDIR}/test/test_mechanize_page_link.rb
${GEM_LIBDIR}/test/test_mechanize_page_meta_refresh.rb
${GEM_LIBDIR}/test/test_mechanize_redirect_not_get_or_head_error.rb
${GEM_LIBDIR}/test/test_mechanize_subclass.rb
${GEM_LIBDIR}/test/test_mechanize_util.rb
${GEM_LIBDIR}/test/test_multi_select.rb
${GEM_LIBDIR}/test/test_no_attributes.rb
${GEM_LIBDIR}/test/test_option.rb
${GEM_LIBDIR}/test/test_page.rb
${GEM_LIBDIR}/test/test_pluggable_parser.rb
${GEM_LIBDIR}/test/test_post_form.rb
${GEM_LIBDIR}/test/test_pretty_print.rb
${GEM_LIBDIR}/test/test_radiobutton.rb
${GEM_LIBDIR}/test/test_redirect_limit_reached.rb
${GEM_LIBDIR}/test/test_redirect_verb_handling.rb
${GEM_LIBDIR}/test/test_referer.rb
${GEM_LIBDIR}/test/test_relative_links.rb
${GEM_LIBDIR}/test/test_request.rb
${GEM_LIBDIR}/test/test_response_code.rb
${GEM_LIBDIR}/test/test_robots.rb
${GEM_LIBDIR}/test/test_save_file.rb
${GEM_LIBDIR}/test/test_scheme.rb
${GEM_LIBDIR}/test/test_select.rb
@ -175,9 +173,4 @@ ${GEM_LIBDIR}/test/test_select_none.rb
${GEM_LIBDIR}/test/test_select_noopts.rb
${GEM_LIBDIR}/test/test_set_fields.rb
${GEM_LIBDIR}/test/test_ssl_server.rb
${GEM_LIBDIR}/test/test_subclass.rb
${GEM_LIBDIR}/test/test_textarea.rb
${GEM_LIBDIR}/test/test_upload.rb
${GEM_LIBDIR}/test/test_util.rb
${GEM_LIBDIR}/test/test_verbs.rb
${GEM_HOME}/specifications/${GEM_NAME}.gemspec

View file

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.4 2010/09/10 13:54:48 taca Exp $
$NetBSD: distinfo,v 1.5 2011/08/13 00:29:33 taca Exp $
SHA1 (mechanize-1.0.0.gem) = 94406e01f4a0468f0e56e7283c87a54b5e02f247
RMD160 (mechanize-1.0.0.gem) = 7abbb3ee408227ba4bea00de4ff277986597a33f
Size (mechanize-1.0.0.gem) = 85504 bytes
SHA1 (mechanize-2.0.1.gem) = f1db4389a0384f81ae1c87ef2a4cf59492771186
RMD160 (mechanize-2.0.1.gem) = 5767e7eccf7f3530a5c224080aa0cbbbe4f6088c
Size (mechanize-2.0.1.gem) = 96256 bytes