r11507 - in /trunk/libmoosex-getopt-perl: ChangeLog META.yml Makefile.PL debian/changelog debian/control debian/copyright lib/MooseX/Getopt.pm

tincho-guest at users.alioth.debian.org tincho-guest at users.alioth.debian.org
Sun Dec 23 13:35:47 UTC 2007


Author: tincho-guest
Date: Sun Dec 23 13:35:47 2007
New Revision: 11507

URL: http://svn.debian.org/wsvn/?sc=1&rev=11507
Log:
FIXME: DOES NOT BUILD (TESTS FAIL)
* New upstream release (0.08).
* debian/copyright: converted to new format.
* debian/control: added version to libmoose-perl build dependency.

Modified:
    trunk/libmoosex-getopt-perl/ChangeLog
    trunk/libmoosex-getopt-perl/META.yml
    trunk/libmoosex-getopt-perl/Makefile.PL
    trunk/libmoosex-getopt-perl/debian/changelog
    trunk/libmoosex-getopt-perl/debian/control
    trunk/libmoosex-getopt-perl/debian/copyright
    trunk/libmoosex-getopt-perl/lib/MooseX/Getopt.pm

Modified: trunk/libmoosex-getopt-perl/ChangeLog
URL: http://svn.debian.org/wsvn/trunk/libmoosex-getopt-perl/ChangeLog?rev=11507&op=diff
==============================================================================
--- trunk/libmoosex-getopt-perl/ChangeLog (original)
+++ trunk/libmoosex-getopt-perl/ChangeLog Sun Dec 23 13:35:47 2007
@@ -1,4 +1,10 @@
 Revision history for Perl extension MooseX-Getopt
+
+0.08 Tues. Dec. 8, 2007
+    * MooseX::Getopt
+      - Added support for configfile loading via
+        MooseX::ConfigFromFile-based roles with
+        the -configfile commandline option.
 
 0.07 Tues. Dec. 4, 2007
     * MooseX::Getopt::Meta::Attribute::NoGetopt  

Modified: trunk/libmoosex-getopt-perl/META.yml
URL: http://svn.debian.org/wsvn/trunk/libmoosex-getopt-perl/META.yml?rev=11507&op=diff
==============================================================================
--- trunk/libmoosex-getopt-perl/META.yml (original)
+++ trunk/libmoosex-getopt-perl/META.yml Sun Dec 23 13:35:47 2007
@@ -1,6 +1,6 @@
 ---
 name: MooseX-Getopt
-version: 0.07
+version: 0.08
 author:
   - 'Stevan Little E<lt>stevan at iinteractive.comE<gt>'
   - 'Brandon L. Black, E<lt>blblack at gmail.comE<gt>'
@@ -17,7 +17,7 @@
 provides:
   MooseX::Getopt:
     file: lib/MooseX/Getopt.pm
-    version: 0.07
+    version: 0.08
   MooseX::Getopt::Meta::Attribute:
     file: lib/MooseX/Getopt/Meta/Attribute.pm
     version: 0.04

Modified: trunk/libmoosex-getopt-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/trunk/libmoosex-getopt-perl/Makefile.PL?rev=11507&op=diff
==============================================================================
--- trunk/libmoosex-getopt-perl/Makefile.PL (original)
+++ trunk/libmoosex-getopt-perl/Makefile.PL Sun Dec 23 13:35:47 2007
@@ -2,16 +2,16 @@
 use ExtUtils::MakeMaker;
 WriteMakefile
 (
+          'PL_FILES' => {},
+          'INSTALLDIRS' => 'site',
           'NAME' => 'MooseX::Getopt',
+          'EXE_FILES' => [],
           'VERSION_FROM' => 'lib/MooseX/Getopt.pm',
           'PREREQ_PM' => {
+                           'Test::More' => '0.62',
                            'Getopt::Long' => '2.34',
-                           'Moose' => '0.19',
                            'Test::Exception' => '0.21',
-                           'Test::More' => '0.62'
-                         },
-          'INSTALLDIRS' => 'site',
-          'EXE_FILES' => [],
-          'PL_FILES' => {}
+                           'Moose' => '0.19'
+                         }
         )
 ;

Modified: trunk/libmoosex-getopt-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libmoosex-getopt-perl/debian/changelog?rev=11507&op=diff
==============================================================================
--- trunk/libmoosex-getopt-perl/debian/changelog (original)
+++ trunk/libmoosex-getopt-perl/debian/changelog Sun Dec 23 13:35:47 2007
@@ -1,5 +1,8 @@
-libmoosex-getopt-perl (0.07-1) unstable; urgency=low
+libmoosex-getopt-perl (0.08-1) unstable; urgency=low
 
+  FIXME: DOES NOT BUILD (TESTS FAIL)
+
+  [ gregor herrmann ]
   * New upstream release.
   * debian/watch: use dist-based URL.
   * Adapt pod-section patch.
@@ -13,7 +16,12 @@
     - add generic upstream URL
     - remove dh-make-perl notice to packager
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sun, 16 Dec 2007 21:02:01 +0100
+  [ Martín Ferrari ]
+  * New upstream release (0.08).
+  * debian/copyright: converted to new format.
+  * debian/control: added version to libmoose-perl build dependency.
+
+ -- Martín Ferrari <martin.ferrari at gmail.com>  Sun, 23 Dec 2007 10:35:10 -0300
 
 libmoosex-getopt-perl (0.05-2) unstable; urgency=medium
 

Modified: trunk/libmoosex-getopt-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libmoosex-getopt-perl/debian/control?rev=11507&op=diff
==============================================================================
--- trunk/libmoosex-getopt-perl/debian/control (original)
+++ trunk/libmoosex-getopt-perl/debian/control Sun Dec 23 13:35:47 2007
@@ -2,8 +2,8 @@
 Section: perl
 Priority: optional
 Build-Depends: debhelper (>= 5.0.0), libmodule-build-perl, quilt
-Build-Depends-Indep: perl (>= 5.8.8-7), libmoose-perl, libtest-pod-perl,
- libtest-pod-coverage-perl, libtest-exception-perl
+Build-Depends-Indep: perl (>= 5.8.8-7), libmoose-perl (>= 0.19),
+ libtest-pod-perl, libtest-pod-coverage-perl, libtest-exception-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Damyan Ivanov <dmn at debian.org>, Rene Mayorga <rmayorga at debian.org.sv>
 Standards-Version: 3.7.3

Modified: trunk/libmoosex-getopt-perl/debian/copyright
URL: http://svn.debian.org/wsvn/trunk/libmoosex-getopt-perl/debian/copyright?rev=11507&op=diff
==============================================================================
--- trunk/libmoosex-getopt-perl/debian/copyright (original)
+++ trunk/libmoosex-getopt-perl/debian/copyright Sun Dec 23 13:35:47 2007
@@ -4,30 +4,24 @@
 It was downloaded from http://www.cpan.org/authors/id/S/ST/STEVAN/
 The generic upstream URL is http://search.cpan.org/dist/MooseX-Getopt/
 
-Authors:
+Upstream authors:
     Stevan Little <stevan at iinteractive.com>
     Brandon L. Black <blblack at gmail.com>
 
-Copyright (C) 2007 Infinity Interactive, Inc.
-http://www.iinteractive.com
+Files: *
+Copyright: © 2007 Infinity Interactive, Inc. http://www.iinteractive.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. 
 
-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'.
 
-Perl license is:
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of either:
-
-    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'.
-
-
-The Debian packaging is (C) 2007, Damyan Ivanov <dmn at debian.org> and
-is licensed under the same terms as the software itself (see above).
+Files: debian/*
+Copyright: © 2007 Martín Ferrari
+           © 2007 gregor herrmann
+           © 2007 Rene Mayorga
+	   © 2007 Damyan Ivanov
+License: GPL-1+ | Artistic

Modified: trunk/libmoosex-getopt-perl/lib/MooseX/Getopt.pm
URL: http://svn.debian.org/wsvn/trunk/libmoosex-getopt-perl/lib/MooseX/Getopt.pm?rev=11507&op=diff
==============================================================================
--- trunk/libmoosex-getopt-perl/lib/MooseX/Getopt.pm (original)
+++ trunk/libmoosex-getopt-perl/lib/MooseX/Getopt.pm Sun Dec 23 13:35:47 2007
@@ -8,7 +8,7 @@
 use MooseX::Getopt::Meta::Attribute;
 use MooseX::Getopt::Meta::Attribute::NoGetopt;
 
-our $VERSION   = '0.07';
+our $VERSION   = '0.08';
 our $AUTHORITY = 'cpan:STEVAN';
 
 has ARGV       => (is => 'rw', isa => 'ArrayRef');
@@ -23,11 +23,21 @@
         ] 
     );
 
+    my $params = $processed{params};
+
+    if($class->meta->does_role('MooseX::ConfigFromFile')
+       && defined $params->{configfile}) {
+        %$params = (
+            %{$class->get_config_from_file($params->{configfile})},
+            %$params,
+        );
+    }
+
     $class->new(
         ARGV       => $processed{argv_copy},
         extra_argv => $processed{argv},
         @params, # explicit params to ->new
-        %{ $processed{params} }, # params from CLI
+        %$params, # params from CLI
     );
 }
 
@@ -179,6 +189,11 @@
 This will mean that Getopt will not handle a --foo param, but your 
 code can still call the C<foo> method. 
 
+If your class also uses a configfile-loading role based on
+L<MooseX::ConfigFromFile>, such as L<MooseX::SimpleConfig>,
+L<MooseX::Getopt>'s C<new_with_options> will load the configfile
+specified by the C<--configfile> option for you.
+
 =head2 Supported Type Constraints
 
 =over 4




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