pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/p5-Test-WWW-Mechanize Update to 1.46



details:   https://anonhg.NetBSD.org/pkgsrc/rev/73debf1c791f
branches:  trunk
changeset: 351708:73debf1c791f
user:      wen <wen%pkgsrc.org@localhost>
date:      Fri Aug 26 07:53:59 2016 +0000

description:
Update to 1.46
Update LICENSE

Upstream changes:
1.46
------------------------------------
[ENHANCEMENTS]
Added header_exists_ok(), lacks_header(), header_is() and header_like()
methods.  Thanks to Eric A. Zarko for the original patches.

The scraped_id_is() method used to assign a description for the test if
one was not passed.  Now it does not.

scraped_id_is() now gives proper diagnostics if an ID is not found in
the HTML.

Added a delete_ok() method.  Thanks, moznion.

content_contains() now fails if it's called with a regex.  content_like()
now fails if it's not called with a regex.

[FIXES]
The test server run during the test suite allowed URLs outside of the
document tree, which could potentially be a security problem.  This has
been fixed.  Thanks, Tynovsky.
https://github.com/petdance/test-www-mechanize/issues/33

Fixed an overly-restrictive optimization in scrape_text_by_id(), plus
scraped_id_is() and scraped_id_like() which wrap it.

The method checks to make sure that it doesn't bother looking for an ID
on the page if the ID doesn't exist.  It did this by looking for the text

    id="foo"

where foo is the ID being searched for.  However, that would mean that
tags like

    <p id='foo'>
    <p id=foo>
    <p id = "foo">
    <p id=
        "foo">
    <p id
    =
            "foo"
                    >

would be seen as not existing.  This has been fixed by making
scrape_text_by_id() search for the string "foo" anywhere on the page.

diffstat:

 www/p5-Test-WWW-Mechanize/Makefile |   7 +++----
 www/p5-Test-WWW-Mechanize/distinfo |  10 +++++-----
 2 files changed, 8 insertions(+), 9 deletions(-)

diffs (37 lines):

diff -r 6e259c438342 -r 73debf1c791f www/p5-Test-WWW-Mechanize/Makefile
--- a/www/p5-Test-WWW-Mechanize/Makefile        Fri Aug 26 07:38:30 2016 +0000
+++ b/www/p5-Test-WWW-Mechanize/Makefile        Fri Aug 26 07:53:59 2016 +0000
@@ -1,15 +1,14 @@
-# $NetBSD: Makefile,v 1.21 2016/06/08 19:25:16 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2016/08/26 07:53:59 wen Exp $
 
-DISTNAME=      Test-WWW-Mechanize-1.44
+DISTNAME=      Test-WWW-Mechanize-1.46
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   4
 CATEGORIES=    www perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Test/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://search.cpan.org/dist/Test-WWW-Mechanize/
 COMMENT=       Perl5 module providing testing-specific WWW::Mechanize subclass
-LICENSE=       ${PERL5_LICENSE}
+LICENSE=       artistic-2.0
 
 PERL5_PACKLIST=                auto/Test/WWW/Mechanize/.packlist
 
diff -r 6e259c438342 -r 73debf1c791f www/p5-Test-WWW-Mechanize/distinfo
--- a/www/p5-Test-WWW-Mechanize/distinfo        Fri Aug 26 07:38:30 2016 +0000
+++ b/www/p5-Test-WWW-Mechanize/distinfo        Fri Aug 26 07:53:59 2016 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.10 2015/11/04 02:47:19 agc Exp $
+$NetBSD: distinfo,v 1.11 2016/08/26 07:53:59 wen Exp $
 
-SHA1 (Test-WWW-Mechanize-1.44.tar.gz) = 1417fd0018eb0bb20497984778e0f202493c160d
-RMD160 (Test-WWW-Mechanize-1.44.tar.gz) = 9fc6b73aaaab3cb8e0bb5f40e5685cff9c424c34
-SHA512 (Test-WWW-Mechanize-1.44.tar.gz) = ab6f8c210a42ef14cd83bc4644a338f76d2e0c908855fe4fbf03b2dc3376476e418b5e71a080cf889b0c6a8f20185def1b54568e1cb2ba130fe484516614393d
-Size (Test-WWW-Mechanize-1.44.tar.gz) = 25824 bytes
+SHA1 (Test-WWW-Mechanize-1.46.tar.gz) = 6850be51ba7bf1b665c2e232c2f753c964a91a1c
+RMD160 (Test-WWW-Mechanize-1.46.tar.gz) = b73ea69f8e68ac1aff9726e309e74579a8c48c90
+SHA512 (Test-WWW-Mechanize-1.46.tar.gz) = 7ebc37eb233b56a8ffbe1c24957e6a4d7aea297553558567de99b6567daf3dc8e1e3e77b9edf4ef2ec8e249613b9db53a7aa6a9ccb93d7fb35137d30acda1636
+Size (Test-WWW-Mechanize-1.46.tar.gz) = 28624 bytes



Home | Main Index | Thread Index | Old Index