[Catalyst-commits] r12527 - in trunk/Catalyst-Plugin-Snippets: .
lib/Catalyst/Plugin t
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Mon Jan 4 23:59:23 GMT 2010
Author: t0m
Date: 2010-01-04 23:59:22 +0000 (Mon, 04 Jan 2010)
New Revision: 12527
Added:
trunk/Catalyst-Plugin-Snippets/Changes
trunk/Catalyst-Plugin-Snippets/Makefile.PL
Removed:
trunk/Catalyst-Plugin-Snippets/Build.PL
Modified:
trunk/Catalyst-Plugin-Snippets/
trunk/Catalyst-Plugin-Snippets/lib/Catalyst/Plugin/Snippets.pm
trunk/Catalyst-Plugin-Snippets/t/basic.t
Log:
Fix complete fail (due to deps) and clean up.
Property changes on: trunk/Catalyst-Plugin-Snippets
___________________________________________________________________
Name: svn:ignore
+ META.yml
pm_to_blib
blib
inc
Makefile
MANIFEST
MANIFEST.bak
README
Deleted: trunk/Catalyst-Plugin-Snippets/Build.PL
===================================================================
--- trunk/Catalyst-Plugin-Snippets/Build.PL 2010-01-04 21:00:36 UTC (rev 12526)
+++ trunk/Catalyst-Plugin-Snippets/Build.PL 2010-01-04 23:59:22 UTC (rev 12527)
@@ -1,17 +0,0 @@
-use strict;
-use Module::Build;
-
-my $build = Module::Build->new(
- create_makefile_pl => 'traditional',
- license => 'perl',
- module_name => 'Catalyst::Plugin::Snippets',
- requires => {
- 'perl' => '5.8.1',
- 'Catalyst' => '5.691',
- },
- recommends => { 'JSON::Syck' },
- create_readme => 1,
- sign => 1,
-);
-$build->create_build_script;
-
Added: trunk/Catalyst-Plugin-Snippets/Changes
===================================================================
--- trunk/Catalyst-Plugin-Snippets/Changes (rev 0)
+++ trunk/Catalyst-Plugin-Snippets/Changes 2010-01-04 23:59:22 UTC (rev 12527)
@@ -0,0 +1,9 @@
+0.02 2010-01-04
+ - Switch to Module::Install
+ - Switch from NEXT to MRO::Compat
+ - Add repository metadata
+ - Fix undeclared dependency on Test::use::ok by removing it.
+ - Fix undeclared dependency on Test::MockObject.
+
+0.01
+ - Initial version
Added: trunk/Catalyst-Plugin-Snippets/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-Snippets/Makefile.PL (rev 0)
+++ trunk/Catalyst-Plugin-Snippets/Makefile.PL 2010-01-04 23:59:22 UTC (rev 12527)
@@ -0,0 +1,17 @@
+use strict;
+use inc::Module::Install 0.91;
+use Module::Install::ReadmeFromPod;
+
+license 'perl';
+name 'Catalyst-Plugin-Snippets';
+all_from 'lib/Catalyst/Plugin/Snippets.pm';
+requires 'Catalyst' => '5.80';
+
+requires 'MRO::Compat';
+requires 'Test::MockObject';
+test_requires 'Test::MockObject';
+recommends 'JSON::Syck';
+readme_from 'lib/Catalyst/Plugin/Snippets.pm';
+resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Plugin-Snippets';
+WriteAll;
+
Modified: trunk/Catalyst-Plugin-Snippets/lib/Catalyst/Plugin/Snippets.pm
===================================================================
--- trunk/Catalyst-Plugin-Snippets/lib/Catalyst/Plugin/Snippets.pm 2010-01-04 21:00:36 UTC (rev 12526)
+++ trunk/Catalyst-Plugin-Snippets/lib/Catalyst/Plugin/Snippets.pm 2010-01-04 23:59:22 UTC (rev 12527)
@@ -4,14 +4,15 @@
use strict;
use warnings;
+use MRO::Compat;
BEGIN { eval { require JSON::Syck } }
-our $VERSION = "0.01";
+our $VERSION = "0.02";
sub setup {
my $app = shift;
- my $ret = $app->NEXT::setup(@_);
+ my $ret = $app->maybe::next::method(@_);
%{ $app->config->{snippets} } = (
%{ $app->config->{snippets} || {} },
Modified: trunk/Catalyst-Plugin-Snippets/t/basic.t
===================================================================
--- trunk/Catalyst-Plugin-Snippets/t/basic.t 2010-01-04 21:00:36 UTC (rev 12526)
+++ trunk/Catalyst-Plugin-Snippets/t/basic.t 2010-01-04 23:59:22 UTC (rev 12527)
@@ -5,13 +5,11 @@
use Test::More 'no_plan';
-use ok "Catalyst::Plugin::Snippets";
+use_ok "Catalyst::Plugin::Snippets";
use Test::MockObject;
use Test::MockObject::Extends;
-use NEXT;
-
my $req = Test::MockObject->new;
my $res = Test::MockObject->new;
my $cache = Test::MockObject->new;
More information about the Catalyst-commits
mailing list