r72537 - in /branches/upstream/libcpan-uploader-perl/current: Changes LICENSE META.json META.yml Makefile.PL README bin/cpan-upload lib/CPAN/Uploader.pm
angelabad-guest at users.alioth.debian.org
angelabad-guest at users.alioth.debian.org
Tue Apr 12 09:00:19 UTC 2011
Author: angelabad-guest
Date: Tue Apr 12 08:59:51 2011
New Revision: 72537
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=72537
Log:
[svn-upgrade] new version libcpan-uploader-perl (0.103000)
Modified:
branches/upstream/libcpan-uploader-perl/current/Changes
branches/upstream/libcpan-uploader-perl/current/LICENSE
branches/upstream/libcpan-uploader-perl/current/META.json
branches/upstream/libcpan-uploader-perl/current/META.yml
branches/upstream/libcpan-uploader-perl/current/Makefile.PL
branches/upstream/libcpan-uploader-perl/current/README
branches/upstream/libcpan-uploader-perl/current/bin/cpan-upload
branches/upstream/libcpan-uploader-perl/current/lib/CPAN/Uploader.pm
Modified: branches/upstream/libcpan-uploader-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-uploader-perl/current/Changes?rev=72537&op=diff
==============================================================================
--- branches/upstream/libcpan-uploader-perl/current/Changes (original)
+++ branches/upstream/libcpan-uploader-perl/current/Changes Tue Apr 12 08:59:51 2011
@@ -1,4 +1,7 @@
Revision history for CPAN-Uploader
+
+0.103000 2011-04-07 22:05:13 America/New_York
+ allow an alternate upload_uri via constructor arg or env var
0.102150 2010-08-03 18:34:27 America/New_York
allow automatic use of proxy from environment
Modified: branches/upstream/libcpan-uploader-perl/current/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-uploader-perl/current/LICENSE?rev=72537&op=diff
==============================================================================
--- branches/upstream/libcpan-uploader-perl/current/LICENSE (original)
+++ branches/upstream/libcpan-uploader-perl/current/LICENSE Tue Apr 12 08:59:51 2011
@@ -1,4 +1,4 @@
-This software is copyright (c) 2010 by Ricardo SIGNES.
+This software is copyright (c) 2011 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2010 by Ricardo SIGNES.
+This software is Copyright (c) 2011 by Ricardo SIGNES.
This is free software, licensed under:
@@ -270,7 +270,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2010 by Ricardo SIGNES.
+This software is Copyright (c) 2011 by Ricardo SIGNES.
This is free software, licensed under:
Modified: branches/upstream/libcpan-uploader-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-uploader-perl/current/META.json?rev=72537&op=diff
==============================================================================
--- branches/upstream/libcpan-uploader-perl/current/META.json (original)
+++ branches/upstream/libcpan-uploader-perl/current/META.json Tue Apr 12 08:59:51 2011
@@ -4,7 +4,7 @@
"Ricardo SIGNES <rjbs at cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670",
+ "generated_by" : "Dist::Zilla version 4.200005, CPAN::Meta::Converter version 2.110930",
"license" : [
"perl_5"
],
@@ -34,7 +34,7 @@
},
"test" : {
"requires" : {
- "Test::More" : 0
+ "Test::More" : "0.96"
}
}
},
@@ -45,163 +45,179 @@
"url" : "git://git.codesimply.com/CPAN-Uploader.git"
}
},
- "version" : "0.102150",
+ "version" : "0.103000",
"x_Dist_Zilla" : {
"plugins" : [
{
+ "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
+ "name" : "@RJBS/CheckPrereqsIndexed",
+ "version" : "0.002"
+ },
+ {
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@RJBS/@Basic/GatherDir",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Basic/PruneCruft",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Basic/ManifestSkip",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Basic/MetaYAML",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Basic/License",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Basic/Readme",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@RJBS/@Basic/ExtraTests",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Basic/ExecDir",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Basic/ShareDir",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@RJBS/@Basic/MakeMaker",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Basic/Manifest",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Basic/TestRelease",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Basic/ConfirmRelease",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Basic/UploadToCPAN",
- "version" : "4.101900"
- },
- {
- "class" : "Dist::Zilla::Plugin::AutoPrereq",
- "name" : "@RJBS/AutoPrereq",
- "version" : "4.101900"
- },
- {
- "class" : "Dist::Zilla::Plugin::AutoVersion",
- "name" : "@RJBS/AutoVersion",
- "version" : "4.101900"
+ "version" : "4.200005"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::AutoPrereqs",
+ "name" : "@RJBS/AutoPrereqs",
+ "version" : "4.200005"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Git::NextVersion",
+ "name" : "@RJBS/Git::NextVersion",
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::Repository",
"name" : "@RJBS/Repository",
- "version" : "0.13"
+ "version" : "0.17"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Prereqs",
+ "config" : {
+ "Dist::Zilla::Plugin::Prereqs" : {
+ "phase" : "test",
+ "type" : "requires"
+ }
+ },
+ "name" : "@RJBS/TestMoreWithSubtests",
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
"name" : "@RJBS/PodWeaver",
- "version" : "3.101640"
+ "version" : "3.101641"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
- "version" : "1.102090"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
- "version" : "1.102090"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
- "version" : "1.102090"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
- "version" : "1.102090"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.101900"
+ "version" : "4.200005"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.101900"
+ "version" : "4.200005"
}
],
"zilla" : {
@@ -209,7 +225,7 @@
"config" : {
"is_trial" : 0
},
- "version" : "4.101900"
+ "version" : "4.200005"
}
}
}
Modified: branches/upstream/libcpan-uploader-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-uploader-perl/current/META.yml?rev=72537&op=diff
==============================================================================
--- branches/upstream/libcpan-uploader-perl/current/META.yml (original)
+++ branches/upstream/libcpan-uploader-perl/current/META.yml Tue Apr 12 08:59:51 2011
@@ -3,11 +3,11 @@
author:
- 'Ricardo SIGNES <rjbs at cpan.org>'
build_requires:
- Test::More: 0
+ Test::More: 0.96
configure_requires:
ExtUtils::MakeMaker: 6.31
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670'
+generated_by: 'Dist::Zilla version 4.200005, CPAN::Meta::Converter version 2.110930'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -25,135 +25,147 @@
Term::ReadKey: 0
resources:
repository: git://git.codesimply.com/CPAN-Uploader.git
-version: 0.102150
+version: 0.103000
x_Dist_Zilla:
plugins:
-
+ class: Dist::Zilla::Plugin::CheckPrereqsIndexed
+ name: '@RJBS/CheckPrereqsIndexed'
+ version: 0.002
+ -
class: Dist::Zilla::Plugin::GatherDir
name: '@RJBS/@Basic/GatherDir'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Basic/PruneCruft'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Basic/ManifestSkip'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Basic/MetaYAML'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Basic/License'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Basic/Readme'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@RJBS/@Basic/ExtraTests'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Basic/ExecDir'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Basic/ShareDir'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@RJBS/@Basic/MakeMaker'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Basic/Manifest'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Basic/TestRelease'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Basic/ConfirmRelease'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Basic/UploadToCPAN'
- version: 4.101900
+ version: 4.200005
-
- class: Dist::Zilla::Plugin::AutoPrereq
- name: '@RJBS/AutoPrereq'
- version: 4.101900
+ class: Dist::Zilla::Plugin::AutoPrereqs
+ name: '@RJBS/AutoPrereqs'
+ version: 4.200005
-
- class: Dist::Zilla::Plugin::AutoVersion
- name: '@RJBS/AutoVersion'
- version: 4.101900
+ class: Dist::Zilla::Plugin::Git::NextVersion
+ name: '@RJBS/Git::NextVersion'
+ version: 1.110500
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::Repository
name: '@RJBS/Repository'
- version: 0.13
+ version: 0.17
+ -
+ class: Dist::Zilla::Plugin::Prereqs
+ config:
+ Dist::Zilla::Plugin::Prereqs:
+ phase: test
+ type: requires
+ name: '@RJBS/TestMoreWithSubtests'
+ version: 4.200005
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@RJBS/PodWeaver'
- version: 3.101640
+ version: 3.101641
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
- version: 1.102090
+ version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
- version: 1.102090
+ version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
- version: 1.102090
+ version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
- version: 1.102090
+ version: 1.110500
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.101900
+ version: 4.200005
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.101900
+ version: 4.200005
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.101900
+ version: 4.200005
Modified: branches/upstream/libcpan-uploader-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-uploader-perl/current/Makefile.PL?rev=72537&op=diff
==============================================================================
--- branches/upstream/libcpan-uploader-perl/current/Makefile.PL (original)
+++ branches/upstream/libcpan-uploader-perl/current/Makefile.PL Tue Apr 12 08:59:51 2011
@@ -12,7 +12,7 @@
'ABSTRACT' => 'upload things to the CPAN',
'AUTHOR' => 'Ricardo SIGNES <rjbs at cpan.org>',
'BUILD_REQUIRES' => {
- 'Test::More' => '0'
+ 'Test::More' => '0.96'
},
'CONFIGURE_REQUIRES' => {
'ExtUtils::MakeMaker' => '6.31'
@@ -34,7 +34,7 @@
'LWP::UserAgent' => '0',
'Term::ReadKey' => '0'
},
- 'VERSION' => '0.102150',
+ 'VERSION' => '0.103000',
'test' => {
'TESTS' => 't/*.t'
}
Modified: branches/upstream/libcpan-uploader-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-uploader-perl/current/README?rev=72537&op=diff
==============================================================================
--- branches/upstream/libcpan-uploader-perl/current/README (original)
+++ branches/upstream/libcpan-uploader-perl/current/README Tue Apr 12 08:59:51 2011
@@ -1,11 +1,11 @@
This archive contains the distribution CPAN-Uploader,
-version 0.102150:
+version 0.103000:
upload things to the CPAN
-This software is copyright (c) 2010 by Ricardo SIGNES.
+This software is copyright (c) 2011 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Modified: branches/upstream/libcpan-uploader-perl/current/bin/cpan-upload
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-uploader-perl/current/bin/cpan-upload?rev=72537&op=diff
==============================================================================
--- branches/upstream/libcpan-uploader-perl/current/bin/cpan-upload (original)
+++ branches/upstream/libcpan-uploader-perl/current/bin/cpan-upload Tue Apr 12 08:59:51 2011
@@ -83,7 +83,7 @@
=head1 VERSION
-version 0.102150
+version 0.103000
=head1 USAGE
@@ -115,7 +115,7 @@
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2010 by Ricardo SIGNES.
+This software is copyright (c) 2011 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Modified: branches/upstream/libcpan-uploader-perl/current/lib/CPAN/Uploader.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcpan-uploader-perl/current/lib/CPAN/Uploader.pm?rev=72537&op=diff
==============================================================================
--- branches/upstream/libcpan-uploader-perl/current/lib/CPAN/Uploader.pm (original)
+++ branches/upstream/libcpan-uploader-perl/current/lib/CPAN/Uploader.pm Tue Apr 12 08:59:51 2011
@@ -2,7 +2,7 @@
use warnings;
package CPAN::Uploader;
BEGIN {
- $CPAN::Uploader::VERSION = '0.102150';
+ $CPAN::Uploader::VERSION = '0.103000';
}
# ABSTRACT: upload things to the CPAN
@@ -14,7 +14,8 @@
use HTTP::Status;
use LWP::UserAgent;
-my $PAUSE_ADD_URI = 'http://pause.perl.org/pause/authenquery';
+my $UPLOAD_URI = $ENV{CPAN_UPLOADER_UPLOAD_URI}
+ || 'http://pause.perl.org/pause/authenquery';
use Data::Dumper;
@@ -36,7 +37,7 @@
"The following arguments would have been used to upload: \n"
. '$self: ' . Dumper($self)
. '$file: ' . Dumper($file)
- );
+ );
} else {
$self->_upload($file);
}
@@ -62,8 +63,10 @@
$agent->env_proxy;
$agent->proxy(http => $self->{http_proxy}) if $self->{http_proxy};
+ my $uri = $self->{upload_uri} || $UPLOAD_URI;
+
my $request = POST(
- $PAUSE_ADD_URI,
+ $uri,
Content_Type => 'form-data',
Content => {
HIDDENNAME => $self->{user},
@@ -101,7 +104,7 @@
if ($response->code == RC_NOT_FOUND) {
die "PAUSE's CGI for handling messages seems to have moved!\n",
"(HTTP response code of 404 from the PAUSE web server)\n",
- "It used to be: ", $PAUSE_ADD_URI, "\n",
+ "It used to be: ", $UPLOAD_URI, "\n",
"Please inform the maintainer of $self.\n";
} else {
die "request failed with error code ", $response->code,
@@ -152,7 +155,7 @@
Carp::croak "multiple enties for $k" if $from_file{$k};
$from_file{$k} = $v;
}
-
+
return \%from_file;
}
@@ -180,7 +183,7 @@
=head1 VERSION
-version 0.102150
+version 0.103000
=head1 METHODS
@@ -195,7 +198,8 @@
user - (required) your CPAN / PAUSE id
password - (required) your CPAN / PAUSE password
subdir - the directory (under your home directory) to upload to
- http_proxy - url of the http proxy to use
+ http_proxy - uri of the http proxy to use
+ upload_uri - uri of the upload handler; usually the default (PAUSE) is right
debug - if set to true, spew lots more debugging output
This method attempts to actually upload the named file to the CPAN. It will
@@ -232,11 +236,6 @@
This method behaves like C<L</log>>, but only logs the message if the
CPAN::Uploader is in debug mode.
-
-=head1 WARNING
-
- This is really, really not well tested or used yet. Give it a few weeks, at
- least. -- rjbs, 2008-06-06
=head1 ORIGIN
@@ -251,7 +250,7 @@
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2010 by Ricardo SIGNES.
+This software is copyright (c) 2011 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
More information about the Pkg-perl-cvs-commits
mailing list