debian/0000755000000000000000000000000012206132511007157 5ustar debian/rules0000755000000000000000000000014112206132511010233 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_test: touch $(CURDIR)/inc/.author dh_auto_test debian/control0000644000000000000000000000240012206132511010556 0ustar Source: libmoosex-attributehelpers-perl Maintainer: Debian Perl Group Uploaders: Ryan Niebur , Ansgar Burchardt , gregor herrmann , Jonathan Yu Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, libtest-exception-perl, libmoose-perl, libtest-pod-perl, libtest-pod-coverage-perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libmoosex-attributehelpers-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmoosex-attributehelpers-perl.git Homepage: https://metacpan.org/release/MooseX-AttributeHelpers/ Package: libmoosex-attributehelpers-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, libmoose-perl Description: Perl library to extend your attribute interfaces MooseX::AttributeHelpers provides commonly-used attribute helper methods for more specific types of data than those offered by Moose alone. It provides Bool, Counter, Number, String, Array, Bag, Hash, ImmutableHash, and List attribute types. debian/source/0000755000000000000000000000000012206132511010457 5ustar debian/source/format0000644000000000000000000000001412206132511011665 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000653512206132511011042 0ustar libmoosex-attributehelpers-perl (0.23-2) unstable; urgency=low [ Ansgar Burchardt ] * Email change: Ansgar Burchardt -> ansgar@debian.org * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * Switch to "3.0 (quilt)" source format. Drop quilt framework. * Add patch from CPAN RT to fix Perl 5.18 test failures. (Closes: #720269) * debian/copyright: - switch formatting to Copyright-Format 1.0 - update years of packaging copyright - update license stanzas * Bump debhelper compatibility level to 8. * Declare compliance with Debian Policy 3.9.4. -- gregor herrmann Sat, 24 Aug 2013 15:28:17 +0200 libmoosex-attributehelpers-perl (0.23-1) unstable; urgency=low [ Jonathan Yu ] * New upstream release * Add myself to Uploaders and Copyright * Rewrite control description * Refresh copyright to DEP5 format [ Ryan Niebur ] * Update ryan52's email address -- Jonathan Yu Sat, 02 Jan 2010 10:31:31 -0500 libmoosex-attributehelpers-perl (0.22-1) unstable; urgency=low [ Salvatore Bonaccorso ] * debian/control: Changed: Replace versioned (build-)dependency on perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as permitted by Debian Policy 3.8.3). [ Ansgar Burchardt ] * New upstream release * Bump Standards-Version to 3.8.3. -- Ansgar Burchardt Thu, 17 Sep 2009 15:16:44 +0200 libmoosex-attributehelpers-perl (0.21-1) unstable; urgency=low * New upstream release + refresh patch whatis-in-manpages -- Ansgar Burchardt Sun, 19 Jul 2009 16:09:01 +0200 libmoosex-attributehelpers-perl (0.20-1) unstable; urgency=low * New upstream release. * Add /me to Uploaders. -- gregor herrmann Fri, 26 Jun 2009 15:54:55 +0200 libmoosex-attributehelpers-perl (0.19-1) unstable; urgency=low [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Ansgar Burchardt ] * New upstream release. + debian/copyright: Update years of copyright. + Add additional whatis entries to whatis-in-manpages. * Use minimal debian/rules. + requires debhelper (>= 7.0.8), quilt (>= 0.46-7) * Add myself to Uploaders. [ gregor herrmann ] * Set Standards-Version to 3.8.2 (no changes). -- Ansgar Burchardt Mon, 15 Jun 2009 21:53:28 +0200 libmoosex-attributehelpers-perl (0.17-1) unstable; urgency=low * New upstream release * refresh patch -- Ryan Niebur Fri, 10 Apr 2009 11:43:22 -0700 libmoosex-attributehelpers-perl (0.16-1) unstable; urgency=low * New upstream release * refresh patches -- Ryan Niebur Mon, 06 Apr 2009 08:10:13 -0700 libmoosex-attributehelpers-perl (0.15-1) unstable; urgency=low [ Ryan Niebur ] * New upstream release - refresh patches * Policy 3.8.1 * add README.source [ gregor herrmann ] * Activate author tests. -- Ryan Niebur Fri, 27 Mar 2009 18:53:30 -0700 libmoosex-attributehelpers-perl (0.14-1) unstable; urgency=low * Initial Release. (Closes: #510061) -- Ryan Niebur Sat, 07 Mar 2009 09:24:30 -0800 debian/compat0000644000000000000000000000000212206132511010355 0ustar 8 debian/clean0000644000000000000000000000001412206132511010157 0ustar inc/.author debian/patches/0000755000000000000000000000000012206132511010606 5ustar debian/patches/whatis-in-manpages0000644000000000000000000002000312206132511014220 0ustar manpage-has-bad-whatis-entry --- a/lib/MooseX/AttributeHelpers/Bool.pm +++ b/lib/MooseX/AttributeHelpers/Bool.pm @@ -23,7 +23,7 @@ =head1 NAME -MooseX::AttributeHelpers::Bool +MooseX::AttributeHelpers::Bool - boolean attribute type =head1 METHODS --- a/lib/MooseX/AttributeHelpers/Collection/Array.pm +++ b/lib/MooseX/AttributeHelpers/Collection/Array.pm @@ -25,7 +25,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::Array +MooseX::AttributeHelpers::Collection::Array - array attribute type =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Collection/Bag.pm +++ b/lib/MooseX/AttributeHelpers/Collection/Bag.pm @@ -24,7 +24,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::Bag +MooseX::AttributeHelpers::Collection::Bag - bag attribute type =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Collection/Hash.pm +++ b/lib/MooseX/AttributeHelpers/Collection/Hash.pm @@ -25,7 +25,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::Hash +MooseX::AttributeHelpers::Collection::Hash - hash attribute type =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Collection/ImmutableHash.pm +++ b/lib/MooseX/AttributeHelpers/Collection/ImmutableHash.pm @@ -25,7 +25,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::ImmutableHash +MooseX::AttributeHelpers::Collection::ImmutableHash - immutable HashRef attribute type =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Collection/List.pm +++ b/lib/MooseX/AttributeHelpers/Collection/List.pm @@ -25,7 +25,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::List +MooseX::AttributeHelpers::Collection::List - list attribute type =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Counter.pm +++ b/lib/MooseX/AttributeHelpers/Counter.pm @@ -24,7 +24,7 @@ =head1 NAME -MooseX::AttributeHelpers::Counter +MooseX::AttributeHelpers::Counter - counter attribute type =head1 METHODS --- a/lib/MooseX/AttributeHelpers/MethodProvider/Array.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/Array.pm @@ -202,7 +202,7 @@ =head1 NAME -MooseX::AttributeHelpers::MethodProvider::Array +MooseX::AttributeHelpers::MethodProvider::Array - method generator for MooseX::AttributeHelpers::Collection::Array =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/MethodProvider/Bag.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/Bag.pm @@ -30,7 +30,7 @@ =head1 NAME -MooseX::AttributeHelpers::MethodProvider::Bag +MooseX::AttributeHelpers::MethodProvider::Bag - method generator for MooseX::AttributeHelpers::Collection::Bag =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/MethodProvider/Bool.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/Bool.pm @@ -34,7 +34,7 @@ =head1 NAME -MooseX::AttributeHelpers::MethodProvider::Bool +MooseX::AttributeHelpers::MethodProvider::Bool - method generator for MooseX::AttributeHelpers::Bool =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/MethodProvider/Counter.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/Counter.pm @@ -34,7 +34,7 @@ =head1 NAME -MooseX::AttributeHelpers::MethodProvider::Counter +MooseX::AttributeHelpers::MethodProvider::Counter - method generator for MooseX::AttributeHelpers::Counter =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/MethodProvider/Hash.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/Hash.pm @@ -109,7 +109,7 @@ =head1 NAME -MooseX::AttributeHelpers::MethodProvider::Hash +MooseX::AttributeHelpers::MethodProvider::Hash - method generator for MooseX::AttributeHelpers::Collection::Hash =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/MethodProvider/ImmutableHash.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/ImmutableHash.pm @@ -75,7 +75,7 @@ =head1 NAME -MooseX::AttributeHelpers::MethodProvider::ImmutableHash +MooseX::AttributeHelpers::MethodProvider::ImmutableHash - method generator for MooseX::AttributeHelpers::Collection::ImmutableHash =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/MethodProvider/List.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/List.pm @@ -107,7 +107,7 @@ =head1 NAME -MooseX::AttributeHelpers::MethodProvider::List +MooseX::AttributeHelpers::MethodProvider::List - method generator for MooseX::AttributeHelpers::Collection::List =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/MethodProvider/String.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/String.pm @@ -111,7 +111,7 @@ =head1 NAME -MooseX::AttributeHelpers::MethodProvider::String +MooseX::AttributeHelpers::MethodProvider::String - method generator for MooseX::AttributeHelpers::String =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/Number.pm +++ b/lib/MooseX/AttributeHelpers/Number.pm @@ -21,7 +21,7 @@ =head1 NAME -MooseX::AttributeHelpers::Number +MooseX::AttributeHelpers::Number - numerical attribute type =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/String.pm +++ b/lib/MooseX/AttributeHelpers/String.pm @@ -24,7 +24,7 @@ =head1 NAME -MooseX::AttributeHelpers::String +MooseX::AttributeHelpers::String - string attribute type =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Meta/Method/Curried.pm +++ b/lib/MooseX/AttributeHelpers/Meta/Method/Curried.pm @@ -16,7 +16,7 @@ =head1 NAME -MooseX::AttributeHelpers::Meta::Method::Curried +MooseX::AttributeHelpers::Meta::Method::Curried - curried methods for Moose::Meta::Method =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/Meta/Method/Provided.pm +++ b/lib/MooseX/AttributeHelpers/Meta/Method/Provided.pm @@ -16,7 +16,7 @@ =head1 NAME -MooseX::AttributeHelpers::Meta::Method::Provided +MooseX::AttributeHelpers::Meta::Method::Provided - provided methods for Moose::Meta::Method =head1 DESCRIPTION --- a/lib/MooseX/AttributeHelpers/Trait/Bool.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Bool.pm @@ -40,7 +40,7 @@ =head1 NAME -MooseX::AttributeHelpers::Bool +MooseX::AttributeHelpers::Bool - simple boolean attribute =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Trait/Counter.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Counter.pm @@ -55,7 +55,7 @@ =head1 NAME -MooseX::AttributeHelpers::Counter +MooseX::AttributeHelpers::Counter - simple counter attribute =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Trait/Number.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Number.pm @@ -61,7 +61,7 @@ =head1 NAME -MooseX::AttributeHelpers::Number +MooseX::AttributeHelpers::Number - simple numeric attribute =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Trait/String.pm +++ b/lib/MooseX/AttributeHelpers/Trait/String.pm @@ -55,7 +55,7 @@ =head1 NAME -MooseX::AttributeHelpers::String +MooseX::AttributeHelpers::String - simple string attribute =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Trait/Collection/Array.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Collection/Array.pm @@ -29,7 +29,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::Array +MooseX::AttributeHelpers::Collection::Array - Array attribute =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Trait/Collection/Bag.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Collection/Bag.pm @@ -44,7 +44,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::Bag +MooseX::AttributeHelpers::Collection::Bag - Bag attribute =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Trait/Collection/Hash.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Collection/Hash.pm @@ -29,7 +29,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::Hash +MooseX::AttributeHelpers::Collection::Hash - Hash attribute =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Trait/Collection/ImmutableHash.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Collection/ImmutableHash.pm @@ -29,7 +29,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::ImmutableHash +MooseX::AttributeHelpers::Collection::ImmutableHash - immutable HashRef attribute =head1 SYNOPSIS --- a/lib/MooseX/AttributeHelpers/Trait/Collection/List.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Collection/List.pm @@ -29,7 +29,7 @@ =head1 NAME -MooseX::AttributeHelpers::Collection::List +MooseX::AttributeHelpers::Collection::List - List attribute =head1 SYNOPSIS debian/patches/series0000644000000000000000000000013512206132511012022 0ustar whatis-in-manpages MooseX-AttributeHelpers-0.23-Fix-tests-to-cope-radnomized-hash-keys.patch debian/patches/MooseX-AttributeHelpers-0.23-Fix-tests-to-cope-radnomized-hash-keys.patch0000644000000000000000000000407312206132511026165 0ustar Origin: CPAN RT Bug: https://rt.cpan.org/Ticket/Display.html?id=81564 Bug-Debian: http://bugs.debian.org/720269 Reviewed-by: gregor herrmann Last-Update: 2013-08-24 . From 94d4ecede542aa0ae5e33e1aa68c6d9731bf295e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 2 Aug 2013 19:09:45 +0200 Subject: [PATCH] Fix tests to cope radnomized hash keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar patch is in Moose. Signed-off-by: Petr Písař --- t/003_basic_hash.t | 4 ++-- t/203_trait_hash.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/003_basic_hash.t b/t/003_basic_hash.t index 1f842ae..c21ac52 100644 --- a/t/003_basic_hash.t +++ b/t/003_basic_hash.t @@ -170,10 +170,10 @@ is_deeply($options->provides, { is($options->type_constraint->type_parameter, 'Str', '... got the right container type'); $stuff->set_option( oink => "blah", xxy => "flop" ); -my @key_value = $stuff->key_value; +my @key_value = sort{ $a->[0] cmp $b->[0] } $stuff->key_value; is_deeply( \@key_value, - [ [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ], + [ sort{ $a->[0] cmp $b->[0] } [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ], '... got the right key value pairs' ); diff --git a/t/203_trait_hash.t b/t/203_trait_hash.t index 8e876b1..451c0bb 100644 --- a/t/203_trait_hash.t +++ b/t/203_trait_hash.t @@ -156,10 +156,10 @@ is_deeply($options->provides, { is($options->type_constraint->type_parameter, 'Str', '... got the right container type'); $stuff->set_option( oink => "blah", xxy => "flop" ); -my @key_value = $stuff->key_value; +my @key_value = sort{ $a->[0] cmp $b->[0] } $stuff->key_value; is_deeply( \@key_value, - [ [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ], + [ sort{ $a->[0] cmp $b->[0] } [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ], '... got the right key value pairs' ); -- 1.8.1.4 debian/copyright0000644000000000000000000000257312206132511011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: MooseX-AttributeHelpers Upstream-Contact: Stevan Little Source: https://metacpan.org/release/MooseX-AttributeHelpers/ Files: * Copyright: 2007-2009, Infinity Interactive, Inc. License: Artistic or GPL-1+ Files: inc/Module/* Copyright: 2002-2009, Adam Kennedy 2002-2009, Audrey Tang 2002-2009, Brian Ingerson License: Artistic or GPL-1+ Files: debian/* Copyright: 2010, Jonathan Yu 2009, Ansgar Burchardt 2009, Ryan Niebur 2009-2013, gregor herrmann License: Artistic or GPL-1+ 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 systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. 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 systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000021412206132511010205 0ustar version=3 https://metacpan.org/release/MooseX-AttributeHelpers/ .*/MooseX-AttributeHelpers-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$