Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

AutoVersion parameter replacement

major_version -> AutoVersion.major
  • Loading branch information...
commit aee4a13071d15be01da6bffb9c8d9861b0abc24d 1 parent 7dddfda
@jquelin authored
Showing with 1 addition and 16 deletions.
  1. +1 −16 lib/Dist/Zilla/PluginBundle/Author/JQUELIN.pm
View
17 lib/Dist/Zilla/PluginBundle/Author/JQUELIN.pm
@@ -58,13 +58,6 @@ sub bundle_config {
my ($self, $section) = @_;
my $arg = $section->{payload};
- # params for AutoVersion
- my $major_version = defined $arg->{major_version} ? $arg->{major_version} : 1;
- my $version_format =
- q<{{ $major }}.{{ cldr('yyDDD') }}>
- . sprintf('%01u', ($ENV{N} || 0))
- . ($ENV{DEV} ? (sprintf '_%03u', $ENV{DEV}) : '');
-
# params for autoprereq
my $prereq_params = defined $arg->{skip_prereq}
? { skip => $arg->{skip_prereq} }
@@ -85,12 +78,7 @@ sub bundle_config {
# long list of plugins
my @wanted = (
# -- static meta-information
- [ AutoVersion => {
- major => $major_version,
- format => $version_format,
- time_zone => 'Europe/Paris',
- }
- ],
+ [ AutoVersion => { time_zone => 'Europe/Paris' } ],
# -- fetch & generate files
[ GatherDir => {} ],
@@ -261,9 +249,6 @@ The following options are accepted:
=over 4
-=item * C<major_version> - passed as C<major> option to the
-L<AutoVersion|Dist::Zilla::Plugin::AutoVersion> plugin. Default to 1.
-
=item * C<weaver> - can be either C<pod> (default) or C<task>, to load
respectively either L<PodWeaver|Dist::Zilla::Plugin::PodWeaver> or
L<TaskWeaver|Dist::Zilla::Plugin::TaskWeaver>.

0 comments on commit aee4a13

Please sign in to comment.
Something went wrong with that request. Please try again.