[carton] 424/472: disable fatal warnings
Lucas Kanashiro
kanashiro-guest at moszumanska.debian.org
Fri Jul 24 00:39:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
kanashiro-guest pushed a commit to branch master
in repository carton.
commit 80a58aaeaf666655d1d1673695a5f42332dca606
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date: Mon Sep 16 07:36:00 2013 -0700
disable fatal warnings
---
lib/Carton/Builder.pm | 2 +-
lib/Carton/CLI.pm | 5 ++---
lib/Carton/CPANfile.pm | 4 ++--
lib/Carton/Dependency.pm | 2 +-
lib/Carton/Dist.pm | 4 ++--
lib/Carton/Dist/Core.pm | 2 +-
lib/Carton/Environment.pm | 2 +-
lib/Carton/Index.pm | 2 +-
lib/Carton/Mirror.pm | 2 +-
lib/Carton/Package.pm | 2 +-
lib/Carton/Packer.pm | 5 ++---
lib/Carton/Snapshot.pm | 4 ++--
lib/Carton/Snapshot/Emitter.pm | 2 +-
lib/Carton/Snapshot/Parser.pm | 4 ++--
lib/Carton/Tree.pm | 4 ++--
15 files changed, 22 insertions(+), 24 deletions(-)
diff --git a/lib/Carton/Builder.pm b/lib/Carton/Builder.pm
index 7c0b5e1..9684b54 100644
--- a/lib/Carton/Builder.pm
+++ b/lib/Carton/Builder.pm
@@ -1,6 +1,6 @@
package Carton::Builder;
-use strict;
use Moo;
+use warnings NONFATAL => 'all';
no warnings 'once';
has mirror => (is => 'rw');
diff --git a/lib/Carton/CLI.pm b/lib/Carton/CLI.pm
index 6efe9ac..96b38e3 100644
--- a/lib/Carton/CLI.pm
+++ b/lib/Carton/CLI.pm
@@ -1,12 +1,11 @@
package Carton::CLI;
-use strict;
-use warnings;
+use Moo;
+use warnings NONFATAL => 'all';
use Config;
use Getopt::Long;
use Path::Tiny;
use Try::Tiny;
-use Moo;
use Module::CoreList;
use Scalar::Util qw(blessed);
diff --git a/lib/Carton/CPANfile.pm b/lib/Carton/CPANfile.pm
index ca72960..313866c 100644
--- a/lib/Carton/CPANfile.pm
+++ b/lib/Carton/CPANfile.pm
@@ -1,8 +1,8 @@
package Carton::CPANfile;
-use strict;
+use Moo;
+use warnings NONFATAL => 'all';
use Path::Tiny ();
use Module::CPANfile;
-use Moo;
use overload q{""} => sub { $_[0]->stringify }, fallback => 1;
diff --git a/lib/Carton/Dependency.pm b/lib/Carton/Dependency.pm
index 17c9a9e..5b0584f 100644
--- a/lib/Carton/Dependency.pm
+++ b/lib/Carton/Dependency.pm
@@ -1,6 +1,6 @@
package Carton::Dependency;
-use strict;
use Moo;
+use warnings NONFATAL => 'all';
has module => (is => 'rw');
has requirement => (is => 'rw');
diff --git a/lib/Carton/Dist.pm b/lib/Carton/Dist.pm
index 4851fdb..3ffede6 100644
--- a/lib/Carton/Dist.pm
+++ b/lib/Carton/Dist.pm
@@ -1,7 +1,7 @@
package Carton::Dist;
-use strict;
-use CPAN::Meta;
use Moo;
+use warnings NONFATAL => 'all';
+use CPAN::Meta;
has name => (is => 'ro');
has pathname => (is => 'rw');
diff --git a/lib/Carton/Dist/Core.pm b/lib/Carton/Dist/Core.pm
index 16e0f85..f7a6a8a 100644
--- a/lib/Carton/Dist/Core.pm
+++ b/lib/Carton/Dist/Core.pm
@@ -1,6 +1,6 @@
package Carton::Dist::Core;
-use strict;
use Moo;
+use warnings NONFATAL => 'all';
extends 'Carton::Dist';
has module_version => (is => 'ro');
diff --git a/lib/Carton/Environment.pm b/lib/Carton/Environment.pm
index a1464e2..3b75852 100644
--- a/lib/Carton/Environment.pm
+++ b/lib/Carton/Environment.pm
@@ -1,6 +1,6 @@
package Carton::Environment;
-use strict;
use Moo;
+use warnings NONFATAL => 'all';
use Carton::CPANfile;
use Carton::Snapshot;
diff --git a/lib/Carton/Index.pm b/lib/Carton/Index.pm
index ee59a05..675de1e 100644
--- a/lib/Carton/Index.pm
+++ b/lib/Carton/Index.pm
@@ -1,6 +1,6 @@
package Carton::Index;
-use strict;
use Moo;
+use warnings NONFATAL => 'all';
has _packages => (is => 'rw', default => sub { +{} });
diff --git a/lib/Carton/Mirror.pm b/lib/Carton/Mirror.pm
index b5ccfa8..4320d9a 100644
--- a/lib/Carton/Mirror.pm
+++ b/lib/Carton/Mirror.pm
@@ -1,6 +1,6 @@
package Carton::Mirror;
-use strict;
use Moo;
+use warnings NONFATAL => 'all';
our $DefaultMirror = 'http://cpan.metacpan.org/';
diff --git a/lib/Carton/Package.pm b/lib/Carton/Package.pm
index 71ed549..7d77c90 100644
--- a/lib/Carton/Package.pm
+++ b/lib/Carton/Package.pm
@@ -1,6 +1,6 @@
package Carton::Package;
-use strict;
use Moo;
+use warnings NONFATAL => 'all';
has name => (is => 'ro');
has version => (is => 'ro');
diff --git a/lib/Carton/Packer.pm b/lib/Carton/Packer.pm
index 6c8b351..815c470 100644
--- a/lib/Carton/Packer.pm
+++ b/lib/Carton/Packer.pm
@@ -1,13 +1,12 @@
package Carton::Packer;
-use strict;
+use Moo;
+use warnings NONFATAL => 'all';
use App::FatPacker;
use File::pushd ();
use Path::Tiny ();
use CPAN::Meta ();
use File::Find ();
-use Moo;
-
sub fatpack_carton {
my($self, $dir) = @_;
diff --git a/lib/Carton/Snapshot.pm b/lib/Carton/Snapshot.pm
index 89e9664..40e5db6 100644
--- a/lib/Carton/Snapshot.pm
+++ b/lib/Carton/Snapshot.pm
@@ -1,5 +1,6 @@
package Carton::Snapshot;
-use strict;
+use Moo;
+use warnings NONFATAL => 'all';
use Config;
use Carton::Dist;
use Carton::Dist::Core;
@@ -15,7 +16,6 @@ use File::Find ();
use Try::Tiny;
use Path::Tiny ();
use Module::CoreList;
-use Moo;
use constant CARTON_SNAPSHOT_VERSION => '1.0';
diff --git a/lib/Carton/Snapshot/Emitter.pm b/lib/Carton/Snapshot/Emitter.pm
index 651bb63..059b883 100644
--- a/lib/Carton/Snapshot/Emitter.pm
+++ b/lib/Carton/Snapshot/Emitter.pm
@@ -1,6 +1,6 @@
package Carton::Snapshot::Emitter;
-use strict;
use Moo;
+use warnings NONFATAL => 'all';
sub emit {
my($self, $snapshot) = @_;
diff --git a/lib/Carton/Snapshot/Parser.pm b/lib/Carton/Snapshot/Parser.pm
index b3a0b7a..badd31d 100644
--- a/lib/Carton/Snapshot/Parser.pm
+++ b/lib/Carton/Snapshot/Parser.pm
@@ -1,8 +1,8 @@
package Carton::Snapshot::Parser;
-use strict;
+use Moo;
+use warnings NONFATAL => 'all';
use Carton::Dist;
use Carton::Error;
-use Moo;
my $machine = {
init => [
diff --git a/lib/Carton/Tree.pm b/lib/Carton/Tree.pm
index 4bc5926..a73129d 100644
--- a/lib/Carton/Tree.pm
+++ b/lib/Carton/Tree.pm
@@ -1,7 +1,7 @@
package Carton::Tree;
-use strict;
-use Carton::Dependency;
use Moo;
+use warnings NONFATAL => 'all';
+use Carton::Dependency;
has cpanfile => (is => 'ro');
has snapshot => (is => 'ro');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/carton.git
More information about the Pkg-perl-cvs-commits
mailing list