Remove our (now broken) dzil GatherDir subclass
Dave Rolsky [Sun, 24 Feb 2013 16:46:37 +0000 (10:46 -0600)]
We can use the exclude_match feature in more recent dzil versions instead.

dist.ini
inc/GatherDir.pm [deleted file]

index f5fb978..9fec6d3 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -8,7 +8,8 @@ version = 2.0600
 [=inc::RequireAuthorDeps]
 [=inc::Clean]
 
-[=inc::GatherDir]
+[GatherDir]
+exclude_match = ^t/recipes/(?!basics_geonome_overloadingsubtypesandcoercion)
 [PruneCruft]
 [ManifestSkip]
 [MetaYAML]
diff --git a/inc/GatherDir.pm b/inc/GatherDir.pm
deleted file mode 100644 (file)
index cdf3d87..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-package inc::GatherDir;
-
-use Moose;
-
-extends 'Dist::Zilla::Plugin::GatherDir';
-
-around _file_from_filename => sub {
-    my $orig = shift;
-    my $self = shift;
-    my $file = $self->$orig(@_);
-    return $file if $file->name =~ m+^t/recipes/basics_recipe10\.t+;
-    return ()    if $file->name =~ m+^t/recipes+;
-    return $file;
-};
-
-1;