Revision history for {{$dist->name}}
{{$NEXT}}
+ - Fix '-all' option for the default group
0.001000 2012-07-29 16:44:01 America/Chicago
- Initial Release
if first { $_ ne 'default' } keys %{$options{groups}};
@defaults = @{$options{groups}{default} || [] };
- @defaults = @exports if $defaults[0] eq '-all';
} else {
$TOO_COMPLICATED = 1;
last OPTIONS
}
}
+ @defaults = @exports if $defaults[0] eq '-all';
}
return $TOO_COMPLICATED, {
--- /dev/null
+
+use strict;
+use warnings;
+
+use Test::More;
+use List::Util 'first';
+use lib 't/lib';
+use A::JunkAll;
+
+ok(main->can('junk1'), 'sub exported');
+ok(main->can('junk2'), 'sub exported');
+ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded');
+
+done_testing;
--- /dev/null
+package A::JunkAll;
+
+use Sub::Exporter::Progressive -setup => {
+ exports => [qw(junk1 junk2)],
+ groups => {
+ default => [ -all ],
+ },
+};
+
+sub junk1 { 1 }
+sub junk2 { 1 }
+
+1;