Commit 9372f489 authored by Utkarsh Gupta's avatar Utkarsh Gupta

Update upstream source from tag 'upstream/0.21'

Update to upstream version '0.21'
with Debian dir 80140539ad9f3f828b0f2af133f738f5f677f614
parents 1a580876 06bd20b5
Revision history for Dist-Zilla-Plugin-OurPkgVersion
0.21 2019-07-18
- Add no_critic option (gh#18)
0.20 2019-05-24
- Fix git deploy snafoo (plicease--)
......
......@@ -88,7 +88,7 @@
"web" : "https://github.com/plicease/dist-zilla-plugin-ourpkgversion"
}
},
"version" : "0.20",
"version" : "0.21",
"x_contributors" : [
"Alceu Rodrigues de Freitas Junior <alceu.junior@quintoandar.com.br>",
"Alceu Rodrigues de Freitas Junior <arfreitas@cpan.org>",
......@@ -105,7 +105,7 @@
"Michael Jemmeson <mjemmeson@cpan.org>",
"Stephan Loyd <stephanloyd9@gmail.com>"
],
"x_generated_by_perl" : "v5.30.0",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.11"
"x_generated_by_perl" : "v5.28.1",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.12"
}
......@@ -38,7 +38,7 @@ resources:
bugtracker: https://github.com/plicease/dist-zilla-plugin-ourpkgversion/issues
homepage: https://metacpan.org/dist/Dist-Zilla-Plugin-OurPkgVersion
repository: git://github.com/plicease/dist-zilla-plugin-ourpkgversion.git
version: '0.20'
version: '0.21'
x_contributors:
- 'Alceu Rodrigues de Freitas Junior <alceu.junior@quintoandar.com.br>'
- 'Alceu Rodrigues de Freitas Junior <arfreitas@cpan.org>'
......@@ -54,5 +54,5 @@ x_contributors:
- 'Michael Conrad <mike@nrdvana.net>'
- 'Michael Jemmeson <mjemmeson@cpan.org>'
- 'Stephan Loyd <stephanloyd9@gmail.com>'
x_generated_by_perl: v5.30.0
x_generated_by_perl: v5.28.1
x_serialization_backend: 'YAML::Tiny version 1.73'
......@@ -68,7 +68,7 @@ my %WriteMakefileArgs = (
"Test::Exception" => 0,
"Test::Version" => "0.04"
},
"VERSION" => "0.20",
"VERSION" => "0.21",
"test" => {
"TESTS" => "t/*.t"
}
......
......@@ -5,7 +5,7 @@ NAME
VERSION
version 0.20
version 0.21
SYNOPSIS
......@@ -187,6 +187,13 @@ PROPERTIES
Currently, the value must be a single Perl token such as a string or
number.
no_critic
When underscore_eval_version is used the generated code for dev
versions may not technically be Perl::Critic compliant due to string
eval, but is nevertheless pretty safe. This option will add the
appropriate no critic directive to save you the hassle.
BUGS
Please report any bugs or feature requests on the bugtracker website
......
name = Dist-Zilla-Plugin-OurPkgVersion
author = Caleb Cushing <xenoterracide@gmail.com>
author = Grahan Ollis <plicease@cpan.org>
version = 0.20
version = 0.21
license = Artistic_2_0
copyright_holder = Caleb Cushing
......@@ -84,6 +84,7 @@ stopwords = ini
stopwords = executables
stopwords = perltidy
stopwords = FileFinder
stopwords = dev
[@Git]
tag_format = %v
......
......@@ -3,7 +3,7 @@ use 5.014;
use strict;
use warnings;
our $VERSION = '0.20'; # VERSION
our $VERSION = '0.21'; # VERSION
use Moose;
with (
......@@ -46,6 +46,12 @@ has overwrite => (
default => 0,
);
has no_critic => (
is => 'ro',
isa => 'Bool',
default => 0,
);
sub munge_files {
my $self = shift;
......@@ -66,7 +72,7 @@ sub BUILD {
return 1;
}
sub munge_file {
sub munge_file { ## no critic (Subroutines::ProhibitExcessComplexity)
my ( $self, $file ) = @_;
if ( $file->name =~ m/\.pod$/ixms ) {
......@@ -135,6 +141,8 @@ sub munge_file {
if ( $version =~ /_/ && $self->underscore_eval_version ) {
my $eval = "\$VERSION = eval \$VERSION;";
$eval .= " ## no critic (BuiltinFunctions::ProhibitStringyEval)"
if $self->no_critic;
$code .= $_->line? "$eval\n" : "\n$eval";
}
......@@ -197,7 +205,7 @@ Dist::Zilla::Plugin::OurPkgVersion - No line insertion and does Package version
=head1 VERSION
version 0.20
version 0.21
=head1 SYNOPSIS
......@@ -381,6 +389,13 @@ still gets modified for trial releases)
Currently, the value must be a single Perl token such as a string or number.
=item no_critic
When C<underscore_eval_version> is used the generated code for dev versions
may not technically be L<Perl::Critic> compliant due to string eval, but is
nevertheless pretty safe. This option will add the appropriate C<no critic>
directive to save you the hassle.
=back
=head1 BUGS
......
......@@ -55,6 +55,7 @@ alexchorny
arfreitas
dagolden
de
dev
dzil
executables
git
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment