Permalink
Browse files

dz v2 compat

  • Loading branch information...
1 parent 947c90f commit 28cedbbb1c63c473dc269bfd76f103937c685646 @rjbs committed Mar 30, 2010
Showing with 9 additions and 3 deletions.
  1. +1 −0 Changes
  2. +1 −1 dist.ini
  3. +7 −2 lib/Dist/Zilla/Plugin/TaskWeaver.pm
View
@@ -1,6 +1,7 @@
Revision history for {{$dist->name}}
{{$NEXT}}
+ updated to work with Dist::Zilla v2
0.093450 2009-12-11 15:55:53 America/New_York
fix a few more prereqs. should be using AutoPrereq :-/
View
@@ -6,7 +6,7 @@ copyright_holder = Ricardo Signes
[@RJBS]
[Prereq]
-Dist::Zilla = 1.093371
+Dist::Zilla = 2
Dist::Zilla::Plugin::PodWeaver = 0
Moose = 0
Moose::Autobox = 0
@@ -76,6 +76,12 @@ has prereq => (
default => sub { {} },
);
+sub register_prereqs {
+ my ($self) = @_;
+
+ $self->zilla->register_prereqs(%{ $self->prereq });
+}
+
sub gather_files {
my ($self) = @_;
@@ -91,7 +97,6 @@ END_TEST
);
}
-with 'Dist::Zilla::Role::FixedPrereqs';
+with 'Dist::Zilla::Role::PrereqSource';
1;
-

0 comments on commit 28cedbb

Please sign in to comment.