r37886 - in /trunk/libreturn-value-perl: Changes META.yml debian/changelog debian/compat debian/control debian/copyright debian/rules debian/watch lib/Return/Value.pm t/perl-critic.t

nhandler-guest at users.alioth.debian.org nhandler-guest at users.alioth.debian.org
Mon Jun 8 23:53:58 UTC 2009


Author: nhandler-guest
Date: Mon Jun  8 23:53:11 2009
New Revision: 37886

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=37886
Log:
* New upstream release
* debian/watch:
  - Remove comment
  - Update to ignore development releases.
* debian/copyright:
  - Update to new format
* debian/rules:
  - Update to new format
* debian/control:
  - Bump debhelper Build-Depends to >= 7
  - Add myself to list of Uploaders
  - Bump Standards-Version to 3.8.1
* debian/compat:
  - Bump to 7

Modified:
    trunk/libreturn-value-perl/Changes
    trunk/libreturn-value-perl/META.yml
    trunk/libreturn-value-perl/debian/changelog
    trunk/libreturn-value-perl/debian/compat
    trunk/libreturn-value-perl/debian/control
    trunk/libreturn-value-perl/debian/copyright
    trunk/libreturn-value-perl/debian/rules
    trunk/libreturn-value-perl/debian/watch
    trunk/libreturn-value-perl/lib/Return/Value.pm
    trunk/libreturn-value-perl/t/perl-critic.t

Modified: trunk/libreturn-value-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/Changes?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/Changes (original)
+++ trunk/libreturn-value-perl/Changes Mon Jun  8 23:53:11 2009
@@ -1,33 +1,40 @@
-1.302  2006-11-14
-       perl-critic tests
-       croak, not die, on invalid constructor input
+1.666001  2009-06-08
+1.666000  2009-06-08
+          formally declare Return::Value deprecated
 
-1.301  2006-07-28
-       fix typoes in changelog and docs
-       improve test coverage
+1.303     2007-04-01
+          fix test to work on 5.5
 
-1.30   2005-09-18 23:30
-       minor POD cleanup
-       added pod coverage test (kwalitee suckup)
+1.302     2006-11-14
+          perl-critic tests
+          croak, not die, on invalid constructor input
 
-1.28   2004-12-20 16:00
-       changed bool return to just call ->bool
-       (returning undef crashes 5.6.1, argh! thanks, HDP!)
+1.301     2006-07-28
+          fix typoes in changelog and docs
+          improve test coverage
 
-1.26   2004-12-20 16:00
-       fixed: properties couldn't be undefined after defining
-       "use warnings" removed from tests to keep 5.005 happy
+1.30      2005-09-18 23:30
+          minor POD cleanup
+          added pod coverage test (kwalitee suckup)
 
-1.24   2004-09-23 09:00
-       allow omission of message
-       ...even with other attributes
-       100% coverage
+1.28      2004-12-20 16:00
+          changed bool return to just call ->bool
+          (returning undef crashes 5.6.1, argh! thanks, HDP!)
 
-1.22   2004-08-30 19:25
-       array and hash dereference will get the return data
-       full test coverage
-       'type' attribute is key to success/failure
-       POD improved
+1.26      2004-12-20 16:00
+          fixed: properties couldn't be undefined after defining
+          "use warnings" removed from tests to keep 5.005 happy
 
-1.1    2004-07-15
-       Initial Revision.
+1.24      2004-09-23 09:00
+          allow omission of message
+          ...even with other attributes
+          100% coverage
+
+1.22      2004-08-30 19:25
+          array and hash dereference will get the return data
+          full test coverage
+          'type' attribute is key to success/failure
+          POD improved
+
+1.1       2004-07-15
+          Initial Revision.

Modified: trunk/libreturn-value-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/META.yml?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/META.yml (original)
+++ trunk/libreturn-value-perl/META.yml Mon Jun  8 23:53:11 2009
@@ -1,14 +1,22 @@
 --- #YAML:1.0
-name:                Return-Value
-version:             1.302
-abstract:            Polymorphic Return Values
-license:             perl
-generated_by:        ExtUtils::MakeMaker version 6.31
-distribution_type:   module
-requires:     
-    Test::More:                    0.47
-meta-spec:
-    url:     http://module-build.sourceforge.net/META-spec-v1.2.html
-    version: 1.2
+name:               Return-Value
+version:            1.666001
+abstract:           Polymorphic Return Values
 author:
     - Casey West <casey at geeknest.com>
+license:            perl
+distribution_type:  module
+configure_requires:
+    ExtUtils::MakeMaker:  0
+build_requires:
+    ExtUtils::MakeMaker:  0
+requires:
+    Test::More:  0.47
+no_index:
+    directory:
+        - t
+        - inc
+generated_by:       ExtUtils::MakeMaker version 6.50
+meta-spec:
+    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
+    version:  1.4

Modified: trunk/libreturn-value-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/debian/changelog?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/debian/changelog (original)
+++ trunk/libreturn-value-perl/debian/changelog Mon Jun  8 23:53:11 2009
@@ -1,13 +1,26 @@
-libreturn-value-perl (1.302-3) UNRELEASED; urgency=low
+libreturn-value-perl (1.666001-1) unstable; urgency=low
 
   [ gregor herrmann ]
   * debian/control: Changed: Switched Vcs-Browser field to ViewSVN
     (source stanza).
 
   [ Nathan Handler ]
-  * debian/watch: Update to ignore development releases.
+  * New upstream release
+  * debian/watch:
+    - Remove comment
+    - Update to ignore development releases.
+  * debian/copyright:
+    - Update to new format
+  * debian/rules:
+    - Update to new format
+  * debian/control:
+    - Bump debhelper Build-Depends to >= 7
+    - Add myself to list of Uploaders
+    - Bump Standards-Version to 3.8.1
+  * debian/compat:
+    - Bump to 7
 
- -- gregor herrmann <gregoa at debian.org>  Sun, 16 Nov 2008 20:46:40 +0100
+ -- Nathan Handler <nhandler at ubuntu.com>  Mon, 08 Jun 2009 23:53:02 +0000
 
 libreturn-value-perl (1.302-2) unstable; urgency=low
 

Modified: trunk/libreturn-value-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/debian/compat?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/debian/compat (original)
+++ trunk/libreturn-value-perl/debian/compat Mon Jun  8 23:53:11 2009
@@ -1,1 +1,1 @@
-6
+7

Modified: trunk/libreturn-value-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/debian/control?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/debian/control (original)
+++ trunk/libreturn-value-perl/debian/control Mon Jun  8 23:53:11 2009
@@ -1,13 +1,14 @@
 Source: libreturn-value-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 6)
+Build-Depends: debhelper (>= 7)
 Build-Depends-Indep: perl (>= 5.8.0-7), libtest-pod-perl,
  libtest-pod-coverage-perl, libtest-perl-critic-perl
 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>
-Standards-Version: 3.7.3
+ gregor herrmann <gregor+debian at comodo.priv.at>,
+ Nathan Handler <nhandler at ubuntu.com>
+Standards-Version: 3.8.1
 Homepage: http://search.cpan.org/dist/Return-Value/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libreturn-value-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libreturn-value-perl/

Modified: trunk/libreturn-value-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/debian/copyright?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/debian/copyright (original)
+++ trunk/libreturn-value-perl/debian/copyright Mon Jun  8 23:53:11 2009
@@ -1,24 +1,32 @@
-This is the debian package for the Return-Value module.
-It was created by Krzysztof Krzyzaniak (eloy) <eloy at debian.org>
+Format-Specification:
+    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
+Upstream-Maintainer: Casey West <casey at geeknest.com>, Ricardo Signes <rjbs at cpan.org>
+Upstream-Source: http://search.cpan.org/dist/Return-Value/
+Upstream-Name: Return-Value
 
-Upstream source location: http://search.cpan.org/dist/Return-Value/
+Files: *
+Copyright: 2004-2006, Casey West <casey at geeknest.com>
+ 2004-2006, Ricardo Signes, <rjbs at cpan.org>
+License-Alias: Perl
+License: Artistic | GPL-1+
 
-The upstream author is: 
-Casey West, <casey at geeknest.com>, Ricardo Signes, <rjbs at cpan.org>
+Files: debian/*
+Copyright: 2005-2009, Krzysztof Krzyzaniak <eloy at debian.org>
+License-Alias: Perl
+License: Artistic | GPL-1+
+X-Comment: It is assumed that package maintainers have licensed their work
+ under terms compatible with upstream licensing terms.
 
-Copyright (c) 2004 Casey West and Ricardo SIGNES.  All rights reserved.
+License: Artistic
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the Artistic License, which comes with Perl.
+    On Debian GNU/Linux systems, the complete text of the Artistic License
+    can be found in /usr/share/common-licenses/Artistic
 
-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.
-  
+License: GPL-1+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by 
+    the Free Software Foundation; either version 1, or (at your option)
+    any later version.
     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'.
+    Public License can be found in `/usr/share/common-licenses/GPL'

Modified: trunk/libreturn-value-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/debian/rules?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/debian/rules (original)
+++ trunk/libreturn-value-perl/debian/rules Mon Jun  8 23:53:11 2009
@@ -1,70 +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.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# If set to a true value then MakeMaker's prompt function will
-# always return the default without waiting for user input.
-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)
-	PERL_TEST_CRITIC=1 $(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 here for an architecture-independent package
 
-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

Modified: trunk/libreturn-value-perl/debian/watch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/debian/watch?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/debian/watch (original)
+++ trunk/libreturn-value-perl/debian/watch Mon Jun  8 23:53:11 2009
@@ -1,3 +1,2 @@
-# format version number, currently 2; this line is compulsory!
 version=3
 http://search.cpan.org/dist/Return-Value/   .*/Return-Value-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)

Modified: trunk/libreturn-value-perl/lib/Return/Value.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/lib/Return/Value.pm?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/lib/Return/Value.pm (original)
+++ trunk/libreturn-value-perl/lib/Return/Value.pm Mon Jun  8 23:53:11 2009
@@ -3,22 +3,43 @@
 package Return::Value;
 # vi:et:sw=4 ts=4
 
-use vars qw[$VERSION @EXPORT];  ## no critic Export
-$VERSION = '1.302';
+use vars qw[$VERSION @EXPORT $NO_CLUCK];  ## no critic Export
+$VERSION = '1.666001';
 @EXPORT  = qw[success failure];
 
 use base qw[Exporter];
 use Carp ();
 
+# uncomment in June 2010
+# Carp::cluck "Return::Value is deprecated" unless $NO_CLUCK;
+
 =head1 NAME
 
-Return::Value - Polymorphic Return Values
+Return::Value - (deprecated) polymorphic return values
 
 =head1 VERSION
 
-version 1.302
-
- $Id: /my/cs/projects/return/trunk/lib/Return/Value.pm 28007 2006-11-14T22:21:03.864745Z rjbs  $
+version 1.666001
+
+=head1 DO NOT USE THIS LIBRARY
+
+B<This library will begin issuing deprecation warnings in June 2010.>
+
+Return::Value was a bad idea.  i'm sorry that I had it, sorry that I followed
+through, and sorry that it got used in other useful libraries.  Fortunately
+there are not many things using it.  One of those things is
+L<Email::Send|Email::Send> which is also deprecated in favor of
+L<Email::Sender|Email::Sender>.
+
+There's no reason to specify a new module to replace Return::Value.  In
+general, routines should return values of uniform type or throw exceptions.
+Return::Value tried to be a uniform type for all routines, but has so much
+weird behavior that it ends up being confusing and not very Perl-like.
+
+Objects that are false are just a dreadful idea in almost every circumstance,
+especially when the object has useful properties.
+
+B<Please do not use this library.  You will just regret it later.>
 
 =head1 SYNOPSIS
 
@@ -66,7 +87,8 @@
 
 =head1 DESCRIPTION
 
-Polymorphic return values are really useful.  Often, we just want to know if
+Polymorphic return values are a horrible idea, but this library was written
+based on the notion that they were useful.  Often, we just want to know if
 something worked or not.  Other times, we'd like to know what the error text
 was.  Still others, we may want to know what the error code was, and what the
 error properties were.  We don't want to handle objects or data structures for
@@ -77,8 +99,8 @@
 data.  In the quest to provide consistent return values, this gets confusing
 between complex, informational errors and successful return values.
 
-This module provides these features with a simple API that should get you what
-you're looking for in each contex a return value is used in.
+This module provides these features with a simplistic API that should get you
+what you're looking for in each context a return value is used in.
 
 =head2 Attributes
 
@@ -324,7 +346,7 @@
 
 =head1 TODO
 
-No plans!
+Add deprecation.
 
 =head1 AUTHORS
 
@@ -341,5 +363,3 @@
 =cut
 
 "This return value is true.";
-
-__END__

Modified: trunk/libreturn-value-perl/t/perl-critic.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libreturn-value-perl/t/perl-critic.t?rev=37886&op=diff
==============================================================================
--- trunk/libreturn-value-perl/t/perl-critic.t (original)
+++ trunk/libreturn-value-perl/t/perl-critic.t Mon Jun  8 23:53:11 2009
@@ -1,6 +1,5 @@
 #!perl
 use strict;
-use warnings;
 use Test::More;
 
 if ($ENV{PERL_TEST_CRITIC}) {




More information about the Pkg-perl-cvs-commits mailing list