r60720 - in /trunk/libthrowable-perl: Changes MANIFEST META.json META.yml Makefile.PL README debian/changelog debian/control debian/copyright lib/StackTrace/ lib/Throwable.pm lib/Throwable/Error.pm t/release-pod-syntax.t

ansgar-guest at users.alioth.debian.org ansgar-guest at users.alioth.debian.org
Wed Jul 28 04:29:01 UTC 2010


Author: ansgar-guest
Date: Wed Jul 28 04:28:37 2010
New Revision: 60720

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=60720
Log:
* New upstream release.
* debian/copyright: Refer to /usr/share/common-licenses/GPL-1.
* Bump Standards-Version to 3.9.1.

Added:
    trunk/libthrowable-perl/lib/StackTrace/
      - copied from r60718, branches/upstream/libthrowable-perl/current/lib/StackTrace/
Modified:
    trunk/libthrowable-perl/Changes
    trunk/libthrowable-perl/MANIFEST
    trunk/libthrowable-perl/META.json
    trunk/libthrowable-perl/META.yml
    trunk/libthrowable-perl/Makefile.PL
    trunk/libthrowable-perl/README
    trunk/libthrowable-perl/debian/changelog
    trunk/libthrowable-perl/debian/control
    trunk/libthrowable-perl/debian/copyright
    trunk/libthrowable-perl/lib/Throwable.pm
    trunk/libthrowable-perl/lib/Throwable/Error.pm
    trunk/libthrowable-perl/t/release-pod-syntax.t

Modified: trunk/libthrowable-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/Changes?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/Changes (original)
+++ trunk/libthrowable-perl/Changes Wed Jul 28 04:28:37 2010
@@ -1,4 +1,8 @@
 Revision history for Throwable
+
+0.102080  2010-07-27 12:09:21 America/New_York
+          refactor stack trace autocreation to StackTrace::Auto role
+          make Throwable::Error immutable
 
 0.101110  2010-04-21 20:59:59 America/New_York
           avoid doing: length undef (thanks, Yuval Kogman)

Modified: trunk/libthrowable-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/MANIFEST?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/MANIFEST (original)
+++ trunk/libthrowable-perl/MANIFEST Wed Jul 28 04:28:37 2010
@@ -6,7 +6,8 @@
 Makefile.PL
 README
 dist.ini
+lib/StackTrace/Auto.pm
 lib/Throwable.pm
 lib/Throwable/Error.pm
 t/basic.t
-t/release-pod-syntax.t
+t/release-pod-syntax.t

Modified: trunk/libthrowable-perl/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/META.json?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/META.json (original)
+++ trunk/libthrowable-perl/META.json Wed Jul 28 04:28:37 2010
@@ -4,206 +4,220 @@
       "Ricardo SIGNES <rjbs at cpan.org>",
       "Florian Ragwitz <rafl at debian.org>"
    ],
-   "build_requires" : {
-      "Test::More" : "0"
-   },
-   "configure_requires" : {
-      "ExtUtils::MakeMaker" : "6.31"
-   },
-   "generated_by" : "Dist::Zilla version 2.101040",
-   "license" : "perl",
+   "dynamic_config" : 0,
+   "generated_by" : "Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670",
+   "license" : [
+      "perl_5"
+   ],
    "meta-spec" : {
-      "url" : "http://module-build.sourceforge.net/META-spec-v1.4.html",
-      "version" : 1.4
+      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+      "version" : "2"
    },
    "name" : "Throwable",
-   "recommends" : {},
-   "requires" : {
-      "Devel::StackTrace" : "1.21",
-      "Moose" : "0.87",
-      "Moose::Role" : "0.87",
-      "Moose::Util::TypeConstraints" : "0",
-      "overload" : "0"
+   "prereqs" : {
+      "configure" : {
+         "requires" : {
+            "ExtUtils::MakeMaker" : "6.31"
+         }
+      },
+      "runtime" : {
+         "requires" : {
+            "Devel::StackTrace" : "1.21",
+            "Moose" : "0.87",
+            "Moose::Role" : "0.87",
+            "Moose::Util::TypeConstraints" : 0,
+            "overload" : 0
+         }
+      },
+      "test" : {
+         "requires" : {
+            "Test::More" : 0
+         }
+      }
    },
+   "release_status" : "stable",
    "resources" : {
-      "repository" : "git://git.codesimply.com/Throwable.git"
+      "repository" : {
+         "type" : "git",
+         "url" : "git://git.codesimply.com/Throwable.git"
+      }
    },
-   "version" : "0.101110",
+   "version" : "0.102080",
    "x_Dist_Zilla" : {
       "plugins" : [
          {
             "class" : "Dist::Zilla::Plugin::GatherDir",
-            "name" : "@RJBS/@@Basic/GatherDir",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/GatherDir",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::PruneCruft",
-            "name" : "@RJBS/@@Basic/PruneCruft",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/PruneCruft",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ManifestSkip",
-            "name" : "@RJBS/@@Basic/ManifestSkip",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/ManifestSkip",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaYAML",
-            "name" : "@RJBS/@@Basic/MetaYAML",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/MetaYAML",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::License",
-            "name" : "@RJBS/@@Basic/License",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/License",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::Readme",
-            "name" : "@RJBS/@@Basic/Readme",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/Readme",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ExtraTests",
-            "name" : "@RJBS/@@Basic/ExtraTests",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/ExtraTests",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ExecDir",
-            "name" : "@RJBS/@@Basic/ExecDir",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/ExecDir",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ShareDir",
-            "name" : "@RJBS/@@Basic/ShareDir",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/ShareDir",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::MakeMaker",
-            "name" : "@RJBS/@@Basic/MakeMaker",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/MakeMaker",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::Manifest",
-            "name" : "@RJBS/@@Basic/Manifest",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/Manifest",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::TestRelease",
-            "name" : "@RJBS/@@Basic/TestRelease",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/TestRelease",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::ConfirmRelease",
-            "name" : "@RJBS/@@Basic/ConfirmRelease",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/ConfirmRelease",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::UploadToCPAN",
-            "name" : "@RJBS/@@Basic/UploadToCPAN",
-            "version" : "2.101040"
+            "name" : "@RJBS/@Basic/UploadToCPAN",
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::AutoPrereq",
             "name" : "@RJBS/AutoPrereq",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::AutoVersion",
             "name" : "@RJBS/AutoVersion",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::PkgVersion",
             "name" : "@RJBS/PkgVersion",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaConfig",
             "name" : "@RJBS/MetaConfig",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::MetaJSON",
             "name" : "@RJBS/MetaJSON",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::NextRelease",
             "name" : "@RJBS/NextRelease",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::PodSyntaxTests",
             "name" : "@RJBS/PodSyntaxTests",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::Repository",
             "name" : "@RJBS/Repository",
-            "version" : "0.11"
+            "version" : "0.13"
          },
          {
             "class" : "Dist::Zilla::Plugin::PodWeaver",
             "name" : "@RJBS/PodWeaver",
-            "version" : "3.100710"
+            "version" : "3.101640"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Check",
-            "name" : "@RJBS/@@Git/Check",
-            "version" : "1.100970"
+            "name" : "@RJBS/@Git/Check",
+            "version" : "1.102040"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Commit",
-            "name" : "@RJBS/@@Git/Commit",
-            "version" : "1.100970"
+            "name" : "@RJBS/@Git/Commit",
+            "version" : "1.102040"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Tag",
-            "name" : "@RJBS/@@Git/Tag",
-            "version" : "1.100970"
+            "name" : "@RJBS/@Git/Tag",
+            "version" : "1.102040"
          },
          {
             "class" : "Dist::Zilla::Plugin::Git::Push",
-            "name" : "@RJBS/@@Git/Push",
-            "version" : "1.100970"
+            "name" : "@RJBS/@Git/Push",
+            "version" : "1.102040"
          },
          {
             "class" : "Dist::Zilla::Plugin::Prereq",
             "config" : {
-               "Dist::Zilla::Plugin::Prereq" : {
+               "Dist::Zilla::Plugin::Prereqs" : {
                   "phase" : "runtime",
                   "type" : "requires"
                }
             },
             "name" : "Prereq",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":InstallModules",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":TestFiles",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ExecFiles",
-            "version" : "2.101040"
+            "version" : "4.101900"
          },
          {
             "class" : "Dist::Zilla::Plugin::FinderCode",
             "name" : ":ShareFiles",
-            "version" : "2.101040"
+            "version" : "4.101900"
          }
       ],
       "zilla" : {
-         "class" : "Dist::Zilla",
+         "class" : "Dist::Zilla::Dist::Builder",
          "config" : {
             "is_trial" : 0
          },
-         "version" : "2.101040"
+         "version" : "4.101900"
       }
    }
 }

Modified: trunk/libthrowable-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/META.yml?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/META.yml (original)
+++ trunk/libthrowable-perl/META.yml Wed Jul 28 04:28:37 2010
@@ -7,13 +7,13 @@
   Test::More: 0
 configure_requires:
   ExtUtils::MakeMaker: 6.31
-generated_by: 'Dist::Zilla version 2.101040'
+dynamic_config: 0
+generated_by: 'Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: 1.4
 name: Throwable
-recommends: {}
 requires:
   Devel::StackTrace: 1.21
   Moose: 0.87
@@ -22,143 +22,143 @@
   overload: 0
 resources:
   repository: git://git.codesimply.com/Throwable.git
-version: 0.101110
+version: 0.102080
 x_Dist_Zilla:
   plugins:
     -
       class: Dist::Zilla::Plugin::GatherDir
-      name: '@RJBS/@@Basic/GatherDir'
-      version: 2.101040
+      name: '@RJBS/@Basic/GatherDir'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::PruneCruft
-      name: '@RJBS/@@Basic/PruneCruft'
-      version: 2.101040
+      name: '@RJBS/@Basic/PruneCruft'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ManifestSkip
-      name: '@RJBS/@@Basic/ManifestSkip'
-      version: 2.101040
+      name: '@RJBS/@Basic/ManifestSkip'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::MetaYAML
-      name: '@RJBS/@@Basic/MetaYAML'
-      version: 2.101040
+      name: '@RJBS/@Basic/MetaYAML'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::License
-      name: '@RJBS/@@Basic/License'
-      version: 2.101040
+      name: '@RJBS/@Basic/License'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::Readme
-      name: '@RJBS/@@Basic/Readme'
-      version: 2.101040
+      name: '@RJBS/@Basic/Readme'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ExtraTests
-      name: '@RJBS/@@Basic/ExtraTests'
-      version: 2.101040
+      name: '@RJBS/@Basic/ExtraTests'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ExecDir
-      name: '@RJBS/@@Basic/ExecDir'
-      version: 2.101040
+      name: '@RJBS/@Basic/ExecDir'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ShareDir
-      name: '@RJBS/@@Basic/ShareDir'
-      version: 2.101040
+      name: '@RJBS/@Basic/ShareDir'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::MakeMaker
-      name: '@RJBS/@@Basic/MakeMaker'
-      version: 2.101040
+      name: '@RJBS/@Basic/MakeMaker'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::Manifest
-      name: '@RJBS/@@Basic/Manifest'
-      version: 2.101040
+      name: '@RJBS/@Basic/Manifest'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::TestRelease
-      name: '@RJBS/@@Basic/TestRelease'
-      version: 2.101040
+      name: '@RJBS/@Basic/TestRelease'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::ConfirmRelease
-      name: '@RJBS/@@Basic/ConfirmRelease'
-      version: 2.101040
+      name: '@RJBS/@Basic/ConfirmRelease'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::UploadToCPAN
-      name: '@RJBS/@@Basic/UploadToCPAN'
-      version: 2.101040
+      name: '@RJBS/@Basic/UploadToCPAN'
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::AutoPrereq
       name: '@RJBS/AutoPrereq'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::AutoVersion
       name: '@RJBS/AutoVersion'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::PkgVersion
       name: '@RJBS/PkgVersion'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::MetaConfig
       name: '@RJBS/MetaConfig'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::MetaJSON
       name: '@RJBS/MetaJSON'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::NextRelease
       name: '@RJBS/NextRelease'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::PodSyntaxTests
       name: '@RJBS/PodSyntaxTests'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::Repository
       name: '@RJBS/Repository'
-      version: 0.11
+      version: 0.13
     -
       class: Dist::Zilla::Plugin::PodWeaver
       name: '@RJBS/PodWeaver'
-      version: 3.100710
+      version: 3.101640
     -
       class: Dist::Zilla::Plugin::Git::Check
-      name: '@RJBS/@@Git/Check'
-      version: 1.100970
+      name: '@RJBS/@Git/Check'
+      version: 1.102040
     -
       class: Dist::Zilla::Plugin::Git::Commit
-      name: '@RJBS/@@Git/Commit'
-      version: 1.100970
+      name: '@RJBS/@Git/Commit'
+      version: 1.102040
     -
       class: Dist::Zilla::Plugin::Git::Tag
-      name: '@RJBS/@@Git/Tag'
-      version: 1.100970
+      name: '@RJBS/@Git/Tag'
+      version: 1.102040
     -
       class: Dist::Zilla::Plugin::Git::Push
-      name: '@RJBS/@@Git/Push'
-      version: 1.100970
+      name: '@RJBS/@Git/Push'
+      version: 1.102040
     -
       class: Dist::Zilla::Plugin::Prereq
       config:
-        Dist::Zilla::Plugin::Prereq:
+        Dist::Zilla::Plugin::Prereqs:
           phase: runtime
           type: requires
       name: Prereq
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':InstallModules'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':TestFiles'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ExecFiles'
-      version: 2.101040
+      version: 4.101900
     -
       class: Dist::Zilla::Plugin::FinderCode
       name: ':ShareFiles'
-      version: 2.101040
+      version: 4.101900
   zilla:
-    class: Dist::Zilla
+    class: Dist::Zilla::Dist::Builder
     config:
       is_trial: 0
-    version: 2.101040
+    version: 4.101900

Modified: trunk/libthrowable-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/Makefile.PL?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/Makefile.PL (original)
+++ trunk/libthrowable-perl/Makefile.PL Wed Jul 28 04:28:37 2010
@@ -9,34 +9,44 @@
 
 
 my %WriteMakefileArgs = (
-                       'test' => {
-                                   'TESTS' => 't/*.t'
-                                 },
-                       'NAME' => 'Throwable',
-                       'DISTNAME' => 'Throwable',
-                       'CONFIGURE_REQUIRES' => {
-                                                 'ExtUtils::MakeMaker' => '6.31'
-                                               },
-                       'AUTHOR' => 'Ricardo SIGNES <rjbs at cpan.org>, Florian Ragwitz <rafl at debian.org>',
-                       'BUILD_REQUIRES' => {
-                                             'Test::More' => '0'
-                                           },
-                       'ABSTRACT' => 'a role for classes that can be thrown',
-                       'EXE_FILES' => [],
-                       'VERSION' => '0.101110',
-                       'PREREQ_PM' => {
-                                        'Moose::Role' => '0.87',
-                                        'Devel::StackTrace' => '1.21',
-                                        'overload' => '0',
-                                        'Moose::Util::TypeConstraints' => '0',
-                                        'Moose' => '0.87'
-                                      },
-                       'LICENSE' => 'perl'
-                     );
+  'ABSTRACT' => 'a role for classes that can be thrown',
+  'AUTHOR' => 'Ricardo SIGNES <rjbs at cpan.org>, Florian Ragwitz <rafl at debian.org>',
+  'BUILD_REQUIRES' => {
+    'Test::More' => '0'
+  },
+  'CONFIGURE_REQUIRES' => {
+    'ExtUtils::MakeMaker' => '6.31'
+  },
+  'DISTNAME' => 'Throwable',
+  'EXE_FILES' => [],
+  'LICENSE' => 'perl',
+  'NAME' => 'Throwable',
+  'PREREQ_PM' => {
+    'Devel::StackTrace' => '1.21',
+    'Moose' => '0.87',
+    'Moose::Role' => '0.87',
+    'Moose::Util::TypeConstraints' => '0',
+    'overload' => '0'
+  },
+  'VERSION' => '0.102080',
+  'test' => {
+    'TESTS' => 't/*.t'
+  }
+);
 
 
-delete $WriteMakefileArgs{BUILD_REQUIRES}
-  unless eval { ExtUtils::MakeMaker->VERSION(6.56) };
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
+  my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
+  my $pp = $WriteMakefileArgs{PREREQ_PM};
+  for my $mod ( keys %$br ) {
+    if ( exists $pp->{$mod} ) {
+      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
+    }
+    else {
+      $pp->{$mod} = $br->{$mod};
+    }
+  }
+}
 
 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

Modified: trunk/libthrowable-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/README?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/README (original)
+++ trunk/libthrowable-perl/README Wed Jul 28 04:28:37 2010
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution Throwable,
-version 0.101110:
+version 0.102080:
 
   a role for classes that can be thrown
 

Modified: trunk/libthrowable-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/debian/changelog?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/debian/changelog (original)
+++ trunk/libthrowable-perl/debian/changelog Wed Jul 28 04:28:37 2010
@@ -1,3 +1,11 @@
+libthrowable-perl (0.102080-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/copyright: Refer to /usr/share/common-licenses/GPL-1.
+  * Bump Standards-Version to 3.9.1.
+
+ -- Ansgar Burchardt <ansgar at 43-1.org>  Wed, 28 Jul 2010 13:27:48 +0900
+
 libthrowable-perl (0.101110-1) unstable; urgency=low
 
   * New upstream release.

Modified: trunk/libthrowable-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/debian/control?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/debian/control (original)
+++ trunk/libthrowable-perl/debian/control Wed Jul 28 04:28:37 2010
@@ -6,7 +6,7 @@
  libmoose-perl (>= 0.87)
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Jonathan Yu <jawnsy at cpan.org>, Ansgar Burchardt <ansgar at 43-1.org>
-Standards-Version: 3.8.4
+Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/Throwable/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libthrowable-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libthrowable-perl/

Modified: trunk/libthrowable-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/debian/copyright?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/debian/copyright (original)
+++ trunk/libthrowable-perl/debian/copyright Wed Jul 28 04:28:37 2010
@@ -3,7 +3,6 @@
 Source: http://search.cpan.org/dist/Throwable/
 Name: Throwable
 
-Files: *
 Copyright: 2010, Ricardo SIGNES <rjbs at cpan.org>
 License: Artistic or GPL-1+
 
@@ -16,7 +15,7 @@
  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'
+ can be found in `/usr/share/common-licenses/Artistic'.
 
 License: GPL-1+
  This program is free software; you can redistribute it and/or modify
@@ -24,5 +23,5 @@
  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'
+ On Debian GNU/Linux systems, the complete text of version 1 of the GNU
+ General Public License can be found in `/usr/share/common-licenses/GPL-1'.

Modified: trunk/libthrowable-perl/lib/Throwable.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/lib/Throwable.pm?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/lib/Throwable.pm (original)
+++ trunk/libthrowable-perl/lib/Throwable.pm Wed Jul 28 04:28:37 2010
@@ -1,6 +1,6 @@
 package Throwable;
 BEGIN {
-  $Throwable::VERSION = '0.101110';
+  $Throwable::VERSION = '0.102080';
 }
 use Moose::Role 0.87;
 # ABSTRACT: a role for classes that can be thrown
@@ -40,7 +40,7 @@
 
 =head1 VERSION
 
-version 0.101110
+version 0.102080
 
 =head1 SYNOPSIS
 
@@ -80,8 +80,17 @@
 
 =head1 AUTHORS
 
-  Ricardo SIGNES <rjbs at cpan.org>
-  Florian Ragwitz <rafl at debian.org>
+=over 4
+
+=item *
+
+Ricardo SIGNES <rjbs at cpan.org>
+
+=item *
+
+Florian Ragwitz <rafl at debian.org>
+
+=back
 
 =head1 COPYRIGHT AND LICENSE
 

Modified: trunk/libthrowable-perl/lib/Throwable/Error.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/lib/Throwable/Error.pm?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/lib/Throwable/Error.pm (original)
+++ trunk/libthrowable-perl/lib/Throwable/Error.pm Wed Jul 28 04:28:37 2010
@@ -1,9 +1,9 @@
 package Throwable::Error;
 BEGIN {
-  $Throwable::Error::VERSION = '0.101110';
+  $Throwable::Error::VERSION = '0.102080';
 }
 use Moose 0.87;
-with 'Throwable';
+with 'Throwable', 'StackTrace::Auto';
 # ABSTRACT: an easy-to-use class for error objects
 
 
@@ -28,68 +28,6 @@
   return $str;
 }
 
-
-{
-  use Moose::Util::TypeConstraints;
-
-  has stack_trace => (
-    is      => 'ro',
-    isa     => duck_type([ qw(as_string) ]),
-    builder => '_build_stack_trace',
-  );
-
-  my $tc = subtype as 'ClassName';
-  coerce $tc, from 'Str', via { Class::MOP::load_class($_); $_ };
-
-  has stack_trace_class => (
-    is      => 'ro',
-    isa     => $tc,
-    coerce  => 1,
-    lazy    => 1,
-    builder => '_build_stack_trace_class',
-  );
-
-  no Moose::Util::TypeConstraints;
-}
-
-
-has stack_trace_args => (
-  is      => 'ro',
-  isa     => 'ArrayRef',
-  lazy    => 1,
-  builder => '_build_stack_trace_args',
-);
-
-sub _build_stack_trace_class {
-  return 'Devel::StackTrace';
-}
-
-sub _build_stack_trace_args {
-  my ($self) = @_;
-  my $found_mark = 0;
-  my $uplevel = 3; # number of *raw* frames to go up after we found the marker
-  return [
-    frame_filter => sub {
-      my ($raw) = @_;
-      if ($found_mark) {
-          return 1 unless $uplevel;
-          return !$uplevel--;
-      }
-      else {
-        $found_mark = scalar $raw->{caller}->[3] =~ /__stack_marker$/;
-        return 0;
-    }
-    },
-  ];
-}
-
-sub _build_stack_trace {
-  my ($self) = @_;
-  return $self->stack_trace_class->new(
-    @{ $self->stack_trace_args },
-  );
-}
-
 sub BUILDARGS {
   my ($self, @args) = @_;
 
@@ -103,18 +41,7 @@
   return $self->SUPER::BUILDARGS(@args);
 }
 
-around new => sub {
-  my $next = shift;
-  my $self = shift;
-  return $self->__stack_marker($next, @_);
-};
-
-sub __stack_marker {
-  my $self = shift;
-  my $next = shift;
-  return $self->$next(@_);
-}
-
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
 no Moose;
 1;
 
@@ -127,7 +54,7 @@
 
 =head1 VERSION
 
-version 0.101110
+version 0.102080
 
 =head1 SYNOPSIS
 
@@ -159,7 +86,10 @@
 L<Exception::Class|Exception::Class>, the features of which are largely
 provided by the Moose object system atop which Throwable::Error is built.
 
-Throwable::Error performs the L<Throwable|Throwable> role.
+Throwable::Error performs the L<Throwable|Throwable> and L<StackTrace::Auto>
+roles.  That means you can call C<throw> on it to create and throw n error
+object in one call, and that every error object will have a stack trace for its
+creation.
 
 =head1 ATTRIBUTES
 
@@ -171,21 +101,10 @@
 
 =head2 stack_trace
 
-This attribute will contain an object representing the stack at the point when
-the error was generated and thrown.  It must be an object performing the
-C<as_string> method.
-
-=head2 stack_trace_class
-
-This attribute may be provided to use an alternate class for stack traces.  The
-default is L<Devel::StackTrace|Devel::StackTrace>.
-
-In general, you will not need to think about this attribute.
-
-=head2 stack_trace_args
-
-This attribute is an arrayref of arguments to pass when building the stack
-trace.  In general, you will not need to think about it.
+This attribute, provided by L<StackTrace::Auto>, will contain a stack trace
+object guaranteed to respond to the C<as_string> method.  For more information
+about the stack trace and associated behavior, consult the L<StackTrace::Auto>
+docs.
 
 =head1 METHODS
 
@@ -196,8 +115,17 @@
 
 =head1 AUTHORS
 
-  Ricardo SIGNES <rjbs at cpan.org>
-  Florian Ragwitz <rafl at debian.org>
+=over 4
+
+=item *
+
+Ricardo SIGNES <rjbs at cpan.org>
+
+=item *
+
+Florian Ragwitz <rafl at debian.org>
+
+=back
 
 =head1 COPYRIGHT AND LICENSE
 

Modified: trunk/libthrowable-perl/t/release-pod-syntax.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libthrowable-perl/t/release-pod-syntax.t?rev=60720&op=diff
==============================================================================
--- trunk/libthrowable-perl/t/release-pod-syntax.t (original)
+++ trunk/libthrowable-perl/t/release-pod-syntax.t Wed Jul 28 04:28:37 2010
@@ -9,7 +9,7 @@
 
 use Test::More;
 
-eval "use Test::Pod 1.00";
-plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+eval "use Test::Pod 1.41";
+plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
 
-all_pod_files_ok();
+all_pod_files_ok();




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