r27323 - in /trunk/libtest-www-mechanize-perl: Changes MANIFEST META.yml Makefile.PL Mechanize.pm debian/changelog debian/compat debian/control debian/copyright debian/rules t/._stuff_inputs.html t/._stuff_inputs.t t/head_ok-parms.t t/head_ok.t t/put_ok.t
ansgar-guest at users.alioth.debian.org
ansgar-guest at users.alioth.debian.org
Wed Nov 26 22:20:55 UTC 2008
Author: ansgar-guest
Date: Wed Nov 26 22:20:52 2008
New Revision: 27323
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27323
Log:
* New upstream release.
* Convert debian/copyright to proposed machine-readable format.
The copyright holders for debian/* were taken from the changelog.
* Refresh debian/rules for debhelper 7.
* Add myself to Uploaders.
* debian/control: Bump Standards-Version to 3.8.0 (no changes)
Added:
trunk/libtest-www-mechanize-perl/t/head_ok-parms.t
- copied unchanged from r27321, branches/upstream/libtest-www-mechanize-perl/current/t/head_ok-parms.t
trunk/libtest-www-mechanize-perl/t/head_ok.t
- copied unchanged from r27321, branches/upstream/libtest-www-mechanize-perl/current/t/head_ok.t
trunk/libtest-www-mechanize-perl/t/put_ok.t
- copied unchanged from r27321, branches/upstream/libtest-www-mechanize-perl/current/t/put_ok.t
Removed:
trunk/libtest-www-mechanize-perl/t/._stuff_inputs.html
trunk/libtest-www-mechanize-perl/t/._stuff_inputs.t
Modified:
trunk/libtest-www-mechanize-perl/Changes
trunk/libtest-www-mechanize-perl/MANIFEST
trunk/libtest-www-mechanize-perl/META.yml
trunk/libtest-www-mechanize-perl/Makefile.PL
trunk/libtest-www-mechanize-perl/Mechanize.pm
trunk/libtest-www-mechanize-perl/debian/changelog
trunk/libtest-www-mechanize-perl/debian/compat
trunk/libtest-www-mechanize-perl/debian/control
trunk/libtest-www-mechanize-perl/debian/copyright
trunk/libtest-www-mechanize-perl/debian/rules
Modified: trunk/libtest-www-mechanize-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/Changes?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/Changes (original)
+++ trunk/libtest-www-mechanize-perl/Changes Wed Nov 26 22:20:52 2008
@@ -4,8 +4,15 @@
bug tracking. They are now being tracked via Google Code at
http://code.google.com/p/www-mechanize/issues/list
+1.22 Fri Nov 21 20:29:30 CST 2008
+------------------------------------
+[ENHANCEMENTS]
+Added $mech->head_ok() and $mech->put_ok() methods. Thanks to
+Jaldhar Vyas.
+
+
1.20 Wed Mar 12 23:56:11 CDT 2008
------------------------------------
+------------------------------------
[FIXES]
stuff_inputs() used to do nothing. Now it works.
http://code.google.com/p/www-mechanize/issues/detail?id=9
Modified: trunk/libtest-www-mechanize-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/MANIFEST?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/MANIFEST (original)
+++ trunk/libtest-www-mechanize-perl/MANIFEST Wed Nov 26 22:20:52 2008
@@ -13,6 +13,8 @@
t/get_ok.t
t/get_ok-parms.t
t/has_tag.t
+t/head_ok.t
+t/head_ok-parms.t
t/html_lint_ok.t
t/link_content.t
t/links_ok.t
@@ -22,6 +24,7 @@
t/page_links_ok.t
t/pod-coverage.t
t/pod.t
+t/put_ok.t
t/stuff_inputs.html
t/stuff_inputs.t
t/submit_form_ok.t
Modified: trunk/libtest-www-mechanize-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/META.yml?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/META.yml (original)
+++ trunk/libtest-www-mechanize-perl/META.yml Wed Nov 26 22:20:52 2008
@@ -1,23 +1,21 @@
--- #YAML:1.0
name: Test-WWW-Mechanize
-version: 1.20
+version: 1.22
abstract: Testing-specific WWW::Mechanize subclass
license: ~
-generated_by: ExtUtils::MakeMaker version 6.36
+author:
+ - Andy Lester <andy at petdance.com>
+generated_by: ExtUtils::MakeMaker version 6.44
distribution_type: module
requires:
Carp::Assert::More: 0
HTTP::Server::Simple: 0.07
+ HTTP::Server::Simple::CGI: 0
Test::Builder::Tester: 1.09
Test::LongString: 0.07
Test::More: 0
URI::file: 0
WWW::Mechanize: 1.24
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
-author:
- - Andy Lester <andy at petdance.com>
-resources:
- homepage: http://code.google.com/p/www-mechanize/
- bugtracker: http://code.google.com/p/www-mechanize/issues/list
+ url: http://module-build.sourceforge.net/META-spec-v1.3.html
+ version: 1.3
Modified: trunk/libtest-www-mechanize-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/Makefile.PL?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/Makefile.PL (original)
+++ trunk/libtest-www-mechanize-perl/Makefile.PL Wed Nov 26 22:20:52 2008
@@ -9,13 +9,14 @@
ABSTRACT_FROM => 'Mechanize.pm',
PL_FILES => {},
PREREQ_PM => {
- 'Carp::Assert::More' => 0,
- 'HTTP::Server::Simple' => '0.07',
- 'Test::Builder::Tester' => '1.09',
- 'Test::LongString' => '0.07',
- 'Test::More' => 0,
- 'URI::file' => 0,
- 'WWW::Mechanize' => '1.24',
+ 'Carp::Assert::More' => 0,
+ 'HTTP::Server::Simple' => '0.07',
+ 'HTTP::Server::Simple::CGI' => 0,
+ 'Test::Builder::Tester' => '1.09',
+ 'Test::LongString' => '0.07',
+ 'Test::More' => 0,
+ 'URI::file' => 0,
+ 'WWW::Mechanize' => '1.24',
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Test-WWW-Mechanize-*' },
Modified: trunk/libtest-www-mechanize-perl/Mechanize.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/Mechanize.pm?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/Mechanize.pm (original)
+++ trunk/libtest-www-mechanize-perl/Mechanize.pm Wed Nov 26 22:20:52 2008
@@ -9,11 +9,11 @@
=head1 VERSION
-Version 1.18
-
-=cut
-
-our $VERSION = '1.20';
+Version 1.22
+
+=cut
+
+our $VERSION = '1.22';
=head1 SYNOPSIS
@@ -93,7 +93,7 @@
return $self;
}
-=head1 METHODS: GETTING & POSTING
+=head1 METHODS: HTTP VERBS
=head2 $mech->get_ok($url, [ \%LWP_options ,] $desc)
@@ -148,6 +148,59 @@
return $ok;
}
+=head2 $mech->head_ok($url, [ \%LWP_options ,] $desc)
+
+A wrapper around WWW::Mechanize's head(), with similar options, except
+the second argument needs to be a hash reference, not a hash. Like
+well-behaved C<*_ok()> functions, it returns true if the test passed,
+or false if not.
+
+A default description of "HEAD $url" is used if none if provided.
+
+=cut
+
+sub head_ok {
+ my $self = shift;
+ my $url = shift;
+
+ my $desc;
+ my %opts;
+
+ if ( @_ ) {
+ my $flex = shift; # The flexible argument
+
+ if ( !defined( $flex ) ) {
+ $desc = shift;
+ }
+ elsif ( ref $flex eq 'HASH' ) {
+ %opts = %{$flex};
+ $desc = shift;
+ }
+ elsif ( ref $flex eq 'ARRAY' ) {
+ %opts = @{$flex};
+ $desc = shift;
+ }
+ else {
+ $desc = $flex;
+ }
+ } # parms left
+
+ $self->head( $url, %opts );
+ my $ok = $self->success;
+
+ if ( not defined $desc ) {
+ $url = $url->url if ref($url) eq 'WWW::Mechanize::Link';
+ $desc = "HEAD $url";
+ }
+ $Test->ok( $ok, $desc );
+ if ( !$ok ) {
+ $Test->diag( $self->status );
+ $Test->diag( $self->response->message ) if $self->response;
+ }
+
+ return $ok;
+}
+
=head2 $mech->post_ok( $url, [ \%LWP_options ,] $desc )
A wrapper around WWW::Mechanize's post(), with similar options, except
@@ -200,6 +253,57 @@
return $ok;
}
+=head2 $mech->put_ok( $url, [ \%LWP_options ,] $desc )
+
+A wrapper around WWW::Mechanize's put(), with similar options, except
+the second argument needs to be a hash reference, not a hash. Like
+well-behaved C<*_ok()> functions, it returns true if the test passed,
+or false if not.
+
+A default description of "PUT to $url" is used if none if provided.
+
+=cut
+
+sub put_ok {
+ my $self = shift;
+ my $url = shift;
+
+ my $desc;
+ my %opts;
+
+ if ( @_ ) {
+ my $flex = shift; # The flexible argument
+
+ if ( !defined( $flex ) ) {
+ $desc = shift;
+ }
+ elsif ( ref $flex eq 'HASH' ) {
+ %opts = %{$flex};
+ $desc = shift;
+ }
+ elsif ( ref $flex eq 'ARRAY' ) {
+ %opts = @{$flex};
+ $desc = shift;
+ }
+ else {
+ $desc = $flex;
+ }
+ } # parms left
+
+ if ( not defined $desc ) {
+ $url = $url->url if ref($url) eq 'WWW::Mechanize::Link';
+ $desc = "PUT $url";
+ }
+ $self->put( $url, \%opts );
+ my $ok = $self->success;
+ $Test->ok( $ok, $desc );
+ if ( !$ok ) {
+ $Test->diag( $self->status );
+ $Test->diag( $self->response->message ) if $self->response;
+ }
+
+ return $ok;
+}
=head2 submit_form_ok( \%parms [, $desc] )
Modified: trunk/libtest-www-mechanize-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/debian/changelog?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/debian/changelog (original)
+++ trunk/libtest-www-mechanize-perl/debian/changelog Wed Nov 26 22:20:52 2008
@@ -1,9 +1,18 @@
-libtest-www-mechanize-perl (1.20-2) UNRELEASED; urgency=low
+libtest-www-mechanize-perl (1.22-1) unstable; urgency=low
+ [ gregor herrmann ]
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
(source stanza).
- -- gregor herrmann <gregoa at debian.org> Sun, 16 Nov 2008 20:48:10 +0100
+ [ Ansgar Burchardt ]
+ * New upstream release.
+ * Convert debian/copyright to proposed machine-readable format.
+ The copyright holders for debian/* were taken from the changelog.
+ * Refresh debian/rules for debhelper 7.
+ * Add myself to Uploaders.
+ * debian/control: Bump Standards-Version to 3.8.0 (no changes)
+
+ -- Ansgar Burchardt <ansgar at 43-1.org> Wed, 26 Nov 2008 23:14:30 +0100
libtest-www-mechanize-perl (1.20-1) unstable; urgency=low
Modified: trunk/libtest-www-mechanize-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/debian/compat?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/debian/compat (original)
+++ trunk/libtest-www-mechanize-perl/debian/compat Wed Nov 26 22:20:52 2008
@@ -1,1 +1,1 @@
-6
+7
Modified: trunk/libtest-www-mechanize-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/debian/control?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/debian/control (original)
+++ trunk/libtest-www-mechanize-perl/debian/control Wed Nov 26 22:20:52 2008
@@ -1,7 +1,7 @@
Source: libtest-www-mechanize-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 6)
+Build-Depends: debhelper (>= 7)
Build-Depends-Indep: perl (>= 5.8.0-7), libtest-longstring-perl,
libhttp-server-simple-perl, libcarp-assert-more-perl, liburi-perl,
libwww-mechanize-perl (>= 1.24), netbase, libtest-pod-perl,
@@ -9,8 +9,8 @@
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Krzysztof Krzyzaniak (eloy) <eloy at debian.org>,
gregor herrmann <gregor+debian at comodo.priv.at>,
- Damyan Ivanov <dmn at debian.org>
-Standards-Version: 3.7.3
+ Damyan Ivanov <dmn at debian.org>, Ansgar Burchardt <ansgar at 43-1.org>
+Standards-Version: 3.8.0
Homepage: http://search.cpan.org/dist/Test-WWW-Mechanize/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libtest-www-mechanize-perl/
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libtest-www-mechanize-perl/
Modified: trunk/libtest-www-mechanize-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/debian/copyright?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/debian/copyright (original)
+++ trunk/libtest-www-mechanize-perl/debian/copyright Wed Nov 26 22:20:52 2008
@@ -1,24 +1,27 @@
-This is the debian package for the Test-WWW-Mechanize module.
-It was created by Krzysztof Krzyzaniak (eloy) <eloy at debian.org> using
-dh-make-perl.
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=228
+Upstream-Name: Test-WWW-Mechanize
+Upstream-Maintainer: Andy Lester <andy at petdance.com>
+Upstream-Source: http://search.cpan.org/dist/Test-WWW-Mechanize/
-It was downloaded from: http://search.cpan.org/dist/Test-WWW-Mechanize/
+Files: *
+Copyright: © 2004-2007, Andy Lester <andy at petdance.com>
+License: GPL-1+ | Artistic
+ This library is free software; you can redistribute it and/or modify
+ it under the same terms as Perl itself.
+ .
+ Perl is distributed under your choice of the GNU General Public License or
+ the Artistic License. On Debian GNU/Linux systems, the complete text of the
+ GNU General Public License can be found in `/usr/share/common-licenses/GPL'
+ and the Artistic Licence in `/usr/share/common-licenses/Artistic'.
-The upstream author is: Andy Lester, <andy at petdance.com>.
+Files: debian/*
+Copyright:
+ © 2006-2007, Krzysztof Krzyzaniak (eloy) <eloy at debian.org>
+ © 2006-2008, gregor herrmann <gregoa at debian.org>
+ © 2007, Damyan Ivanov <dmn at debian.org>
+ © 2007-2008, David Paleino <d.paleino at gmail.com>
+ © 2008, Ansgar Burchardt <ansgar at 43-1.org>
+License: GPL-1+ | Artistic
+ It is assumed that all contributors put their work under the same license
+ as the module itself.
-Copyright 2004-2007 Andy Lester, all rights reserved.
-
-This program is free software, you can redistribute it and/or modify it under
-the same terms as Perl itself.
-
-Perl is distributed under licenses:
-
- a) the GNU General Public License as published by the Free Software
- Foundation; either version 1, or (at your option) any later
- version, or
-
- b) the "Artistic License" which comes with Perl.
-
- On Debian GNU/Linux systems, the complete text of the GNU General
- Public License can be found in /usr/share/common-licenses/GPL' and
- the Artistic Licence in /usr/share/common-licenses/Artistic'.
Modified: trunk/libtest-www-mechanize-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/debian/rules?rev=27323&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/debian/rules (original)
+++ trunk/libtest-www-mechanize-perl/debian/rules Wed Nov 26 22:20:52 2008
@@ -1,59 +1,23 @@
#!/usr/bin/make -f
-# This debian/rules file is provided as a template for normal perl
-# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
-# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
-# be used freely wherever it is useful.
-
-export PERL_MM_USE_DEFAULT=1
-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP =$(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
- dh_testdir
- $(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE)
- $(MAKE) test
+ dh build
touch $@
clean:
- dh_testdir
- dh_testroot
- dh_clean build-stamp install-stamp
- [ ! -f Makefile ] || $(MAKE) realclean
+ dh $@
install: install-stamp
install-stamp: build-stamp
- dh_testdir
- dh_testroot
- dh_clean -k
- $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
- [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+ dh install
touch $@
binary-arch:
-# We have nothing to do by default.
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installdocs
- dh_installchangelogs Changes
- dh_perl
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+binary-indep: install
+ dh $@
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+binary: binary-arch binary-indep
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: binary binary-arch binary-indep install clean build
More information about the Pkg-perl-cvs-commits
mailing list