diff options
author | minskim <minskim@pkgsrc.org> | 2012-03-01 01:24:48 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2012-03-01 01:24:48 +0000 |
commit | 5a3fbfc9ad263bd773ab5dd6d24f9e013a202de6 (patch) | |
tree | 0b56531e0beef2503f0a0065cacdb997344a0d87 | |
parent | ef43ebe42d200b6ece02f7dad16442265d7f6c72 (diff) | |
download | pkgsrc-5a3fbfc9ad263bd773ab5dd6d24f9e013a202de6.tar.gz |
Update ruby-mechanize to 2.3.
Changes:
* Add support for the Max-Age attribute in the Set-Cookie header.
* Added Mechanize::Download#body for compatibility with Mechanize::File when
using Mechanize#get_file with Mechanize::Image or other Download-based
pluggable parser. Issue #202 by angas
* Mechanize#max_file_buffer may be set to nil to disable creation of
Tempfiles.
* MetaRefresh#href is not normalized to an absolute URL, but set to the
original value and resolved later. It is even set to nil when the
Refresh URL is unspecified or empty.
* Expose ssl_version from net-http-persistent. Patch by astera.
* SSL parameters and proxy may now be set at any time. Issue #194 by
dsisnero.
* Improved Mechanize::Page with #image_with and #images_with and
Mechanize::Page::Image various img element attribute accessors, #caption,
#extname, #mime_type and #fetch. Pull request #173 by kitamomonga
* Added MIME type parsing for content-types in Mechanize::PluggableParser
for fine-grained parser choices. Parsers will be chosen based on exact
match, simplified type or media type in that order. See
Mechanize::PluggableParser#[]=.
* Added Mechanize#download which downloads a response body to an IO-like or
filename.
* Added Mechanize::DirectorySaver which saves responses in a single
directory. Issue #187 by yoshie902a.
* Added Mechanize::Page::Link#noreferrer?
* The documentation for Mechanize::Page#search and #at now show that both
XPath and CSS expressions are allowed. Issue #199 by Shane Becker.
* Mechanize now depends on net-http-persistent 2.3+. This new version
brings idle timeouts to help with the dreaded "too many connection resets"
issue when POSTing to a closed connection. Issue #123
* SSL connections will be verified against the system certificate store by
default.
* Added Mechanize#retry_change_requests to allow mechanize to retry POST and
other non-idempotent requests when you know it is safe to do so. Issue
#123
* Mechanize can now stream files directly to disk without loading them into
memory first through Mechanize::Download, a pluggable parser for
downloading files.
* Bug fixes.
-rw-r--r-- | www/ruby-mechanize/Makefile | 14 | ||||
-rw-r--r-- | www/ruby-mechanize/PLIST | 93 | ||||
-rw-r--r-- | www/ruby-mechanize/distinfo | 8 |
3 files changed, 54 insertions, 61 deletions
diff --git a/www/ruby-mechanize/Makefile b/www/ruby-mechanize/Makefile index 30521926e9a..e2cc41e43ce 100644 --- a/www/ruby-mechanize/Makefile +++ b/www/ruby-mechanize/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.6 2011/09/13 03:16:07 taca Exp $ +# $NetBSD: Makefile,v 1.7 2012/03/01 01:24:48 minskim Exp $ -DISTNAME= mechanize-2.0.1 -PKGREVISION= 1 +DISTNAME= mechanize-2.3 CATEGORIES= www MAINTAINER= minskim@NetBSD.org @@ -11,12 +10,13 @@ LICENSE= mit PKG_DESTDIR_SUPPORT= user-destdir -DEPENDS+= ${RUBY_PKGPREFIX}-nokogiri>=1.4<2:../../textproc/ruby-nokogiri -DEPENDS+= ${RUBY_PKGPREFIX}-net-http-persistent>=1.8:../../www/ruby-net-http-persistent +DEPENDS+= ${RUBY_PKGPREFIX}-domain_name>=0.5.1:../../net/ruby-domain_name +DEPENDS+= ${RUBY_PKGPREFIX}-mime-types>=1.17:../../mail/ruby-mime-types DEPENDS+= ${RUBY_PKGPREFIX}-net-http-digest_auth>=1.1<2:../../www/ruby-net-http-digest_auth +DEPENDS+= ${RUBY_PKGPREFIX}-net-http-persistent>=2.5:../../www/ruby-net-http-persistent +DEPENDS+= ${RUBY_PKGPREFIX}-nokogiri>=1.4<2:../../textproc/ruby-nokogiri +DEPENDS+= ${RUBY_PKGPREFIX}-ntlm-http>=0.1.1:../../www/ruby-ntlm-http DEPENDS+= ${RUBY_PKGPREFIX}-webrobots>=0.0<1:../../www/ruby-webrobots -OVERRIDE_GEMSPEC+= net-http-persistent>=1.8 - .include "../../lang/ruby/gem.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/ruby-mechanize/PLIST b/www/ruby-mechanize/PLIST index 563e117694d..19ccbc5c230 100644 --- a/www/ruby-mechanize/PLIST +++ b/www/ruby-mechanize/PLIST @@ -1,10 +1,9 @@ -@comment $NetBSD: PLIST,v 1.6 2011/08/13 00:29:32 taca Exp $ +@comment $NetBSD: PLIST,v 1.7 2012/03/01 01:24:48 minskim 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 ${GEM_LIBDIR}/GUIDE.rdoc ${GEM_LIBDIR}/LICENSE.rdoc ${GEM_LIBDIR}/Manifest.txt @@ -15,10 +14,13 @@ ${GEM_LIBDIR}/examples/mech-dump.rb ${GEM_LIBDIR}/examples/proxy_req.rb ${GEM_LIBDIR}/examples/rubyforge.rb ${GEM_LIBDIR}/examples/spider.rb +${GEM_LIBDIR}/examples/wikipedia_links_to_philosophy.rb ${GEM_LIBDIR}/lib/mechanize.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/directory_saver.rb +${GEM_LIBDIR}/lib/mechanize/download.rb ${GEM_LIBDIR}/lib/mechanize/element_matcher.rb ${GEM_LIBDIR}/lib/mechanize/file.rb ${GEM_LIBDIR}/lib/mechanize/file_connection.rb @@ -30,16 +32,26 @@ ${GEM_LIBDIR}/lib/mechanize/form/button.rb ${GEM_LIBDIR}/lib/mechanize/form/check_box.rb ${GEM_LIBDIR}/lib/mechanize/form/field.rb ${GEM_LIBDIR}/lib/mechanize/form/file_upload.rb +${GEM_LIBDIR}/lib/mechanize/form/hidden.rb ${GEM_LIBDIR}/lib/mechanize/form/image_button.rb +${GEM_LIBDIR}/lib/mechanize/form/keygen.rb ${GEM_LIBDIR}/lib/mechanize/form/multi_select_list.rb ${GEM_LIBDIR}/lib/mechanize/form/option.rb ${GEM_LIBDIR}/lib/mechanize/form/radio_button.rb +${GEM_LIBDIR}/lib/mechanize/form/reset.rb ${GEM_LIBDIR}/lib/mechanize/form/select_list.rb +${GEM_LIBDIR}/lib/mechanize/form/submit.rb +${GEM_LIBDIR}/lib/mechanize/form/text.rb +${GEM_LIBDIR}/lib/mechanize/form/textarea.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/http/auth_challenge.rb +${GEM_LIBDIR}/lib/mechanize/http/auth_realm.rb +${GEM_LIBDIR}/lib/mechanize/http/content_disposition_parser.rb +${GEM_LIBDIR}/lib/mechanize/http/www_authenticate_parser.rb +${GEM_LIBDIR}/lib/mechanize/image.rb ${GEM_LIBDIR}/lib/mechanize/monkey_patch.rb ${GEM_LIBDIR}/lib/mechanize/page.rb ${GEM_LIBDIR}/lib/mechanize/page/base.rb @@ -48,12 +60,15 @@ ${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_refresh.rb +${GEM_LIBDIR}/lib/mechanize/parser.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/test_case.rb +${GEM_LIBDIR}/lib/mechanize/unauthorized_error.rb ${GEM_LIBDIR}/lib/mechanize/unsupported_scheme_error.rb ${GEM_LIBDIR}/lib/mechanize/util.rb ${GEM_LIBDIR}/test/data/htpasswd @@ -61,7 +76,6 @@ ${GEM_LIBDIR}/test/data/server.crt ${GEM_LIBDIR}/test/data/server.csr ${GEM_LIBDIR}/test/data/server.key ${GEM_LIBDIR}/test/data/server.pem -${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 @@ -74,31 +88,24 @@ ${GEM_LIBDIR}/test/htdocs/form_multi_select.html ${GEM_LIBDIR}/test/htdocs/form_multival.html ${GEM_LIBDIR}/test/htdocs/form_no_action.html ${GEM_LIBDIR}/test/htdocs/form_no_input_name.html +${GEM_LIBDIR}/test/htdocs/form_order_test.html ${GEM_LIBDIR}/test/htdocs/form_select.html -${GEM_LIBDIR}/test/htdocs/form_select_all.html -${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 ${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 @@ -107,70 +114,56 @@ ${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 ${GEM_LIBDIR}/test/htdocs/tc_pretty_print.html -${GEM_LIBDIR}/test/htdocs/tc_radiobuttons.html ${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_cookies.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_frames.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_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_directory_saver.rb +${GEM_LIBDIR}/test/test_mechanize_download.rb ${GEM_LIBDIR}/test/test_mechanize_file.rb +${GEM_LIBDIR}/test/test_mechanize_file_connection.rb ${GEM_LIBDIR}/test/test_mechanize_file_request.rb -${GEM_LIBDIR}/test/test_mechanize_file_response.rb +${GEM_LIBDIR}/test/test_mechanize_file_saver.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_file_upload.rb ${GEM_LIBDIR}/test/test_mechanize_form_image_button.rb +${GEM_LIBDIR}/test/test_mechanize_form_keygen.rb +${GEM_LIBDIR}/test/test_mechanize_form_multi_select_list.rb +${GEM_LIBDIR}/test/test_mechanize_form_option.rb +${GEM_LIBDIR}/test/test_mechanize_form_radio_button.rb +${GEM_LIBDIR}/test/test_mechanize_form_select_list.rb ${GEM_LIBDIR}/test/test_mechanize_form_textarea.rb +${GEM_LIBDIR}/test/test_mechanize_headers.rb +${GEM_LIBDIR}/test/test_mechanize_history.rb ${GEM_LIBDIR}/test/test_mechanize_http_agent.rb +${GEM_LIBDIR}/test/test_mechanize_http_auth_challenge.rb +${GEM_LIBDIR}/test/test_mechanize_http_auth_realm.rb +${GEM_LIBDIR}/test/test_mechanize_http_content_disposition_parser.rb +${GEM_LIBDIR}/test/test_mechanize_http_www_authenticate_parser.rb +${GEM_LIBDIR}/test/test_mechanize_image.rb ${GEM_LIBDIR}/test/test_mechanize_link.rb +${GEM_LIBDIR}/test/test_mechanize_page.rb ${GEM_LIBDIR}/test/test_mechanize_page_encoding.rb +${GEM_LIBDIR}/test/test_mechanize_page_frame.rb +${GEM_LIBDIR}/test/test_mechanize_page_image.rb ${GEM_LIBDIR}/test/test_mechanize_page_link.rb ${GEM_LIBDIR}/test/test_mechanize_page_meta_refresh.rb +${GEM_LIBDIR}/test/test_mechanize_parser.rb +${GEM_LIBDIR}/test/test_mechanize_pluggable_parser.rb +${GEM_LIBDIR}/test/test_mechanize_redirect_limit_reached_error.rb ${GEM_LIBDIR}/test/test_mechanize_redirect_not_get_or_head_error.rb +${GEM_LIBDIR}/test/test_mechanize_response_read_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_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_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 -${GEM_LIBDIR}/test/test_select_all.rb -${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_HOME}/specifications/${GEM_NAME}.gemspec diff --git a/www/ruby-mechanize/distinfo b/www/ruby-mechanize/distinfo index da10a2fb383..eff86b4ee88 100644 --- a/www/ruby-mechanize/distinfo +++ b/www/ruby-mechanize/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.5 2011/08/13 00:29:33 taca Exp $ +$NetBSD: distinfo,v 1.6 2012/03/01 01:24:48 minskim Exp $ -SHA1 (mechanize-2.0.1.gem) = f1db4389a0384f81ae1c87ef2a4cf59492771186 -RMD160 (mechanize-2.0.1.gem) = 5767e7eccf7f3530a5c224080aa0cbbbe4f6088c -Size (mechanize-2.0.1.gem) = 96256 bytes +SHA1 (mechanize-2.3.gem) = 316c852afcc832ed7b3be6893ec5ca11870c4c0a +RMD160 (mechanize-2.3.gem) = 46d6e26c7e925605a9c9a60617f70ffc922a8770 +Size (mechanize-2.3.gem) = 121856 bytes |