From: Tomas Doran (t0m) Date: Mon, 13 Jul 2009 23:40:46 +0000 (+0100) Subject: Add no Moose::Role everywhere X-Git-Tag: 0.20^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f82612bc1cd0e2d8f5b52d744597bc02609e1eab;p=gitmo%2FMooseX-Storage.git Add no Moose::Role everywhere --- diff --git a/lib/MooseX/Storage/Base/WithChecksum.pm b/lib/MooseX/Storage/Base/WithChecksum.pm index 1f959f1..9f1949d 100644 --- a/lib/MooseX/Storage/Base/WithChecksum.pm +++ b/lib/MooseX/Storage/Base/WithChecksum.pm @@ -89,6 +89,8 @@ sub _digest_object { } } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Basic.pm b/lib/MooseX/Storage/Basic.pm index f7771ea..bf5e2e8 100644 --- a/lib/MooseX/Storage/Basic.pm +++ b/lib/MooseX/Storage/Basic.pm @@ -51,6 +51,8 @@ sub _storage_construct_instance { $class->new( %$args, %i ); } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Deferred.pm b/lib/MooseX/Storage/Deferred.pm index bca21f7..6044dd3 100644 --- a/lib/MooseX/Storage/Deferred.pm +++ b/lib/MooseX/Storage/Deferred.pm @@ -62,6 +62,8 @@ sub store { $self->$method_to_call($filename, $type, @args); } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Engine.pm b/lib/MooseX/Storage/Engine.pm index 95263f9..d98fb6e 100644 --- a/lib/MooseX/Storage/Engine.pm +++ b/lib/MooseX/Storage/Engine.pm @@ -352,6 +352,8 @@ sub find_type_handler_for { $TYPES{$type_handler_name} } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Format/JSON.pm b/lib/MooseX/Storage/Format/JSON.pm index d1f93dd..4a3529f 100644 --- a/lib/MooseX/Storage/Format/JSON.pm +++ b/lib/MooseX/Storage/Format/JSON.pm @@ -26,6 +26,8 @@ sub freeze { return $json; } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Format/Storable.pm b/lib/MooseX/Storage/Format/Storable.pm index 04a3da1..2245d28 100644 --- a/lib/MooseX/Storage/Format/Storable.pm +++ b/lib/MooseX/Storage/Format/Storable.pm @@ -20,6 +20,8 @@ sub freeze { Storable::nfreeze( $self->pack(@args) ); } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Format/YAML.pm b/lib/MooseX/Storage/Format/YAML.pm index d02ee0e..afbdfa8 100644 --- a/lib/MooseX/Storage/Format/YAML.pm +++ b/lib/MooseX/Storage/Format/YAML.pm @@ -1,4 +1,3 @@ - package MooseX::Storage::Format::YAML; use Moose::Role; @@ -27,6 +26,8 @@ sub freeze { Dump( $self->pack(@args) ); } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/IO/AtomicFile.pm b/lib/MooseX/Storage/IO/AtomicFile.pm index b836d70..39104fb 100644 --- a/lib/MooseX/Storage/IO/AtomicFile.pm +++ b/lib/MooseX/Storage/IO/AtomicFile.pm @@ -1,4 +1,3 @@ - package MooseX::Storage::IO::AtomicFile; use Moose::Role; @@ -14,6 +13,8 @@ sub store { MooseX::Storage::Engine::IO::AtomicFile->new( file => $filename )->store( $self->freeze(@args) ); } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/IO/File.pm b/lib/MooseX/Storage/IO/File.pm index 9ad664a..0dd1a6a 100644 --- a/lib/MooseX/Storage/IO/File.pm +++ b/lib/MooseX/Storage/IO/File.pm @@ -1,4 +1,3 @@ - package MooseX::Storage::IO::File; use Moose::Role; @@ -20,6 +19,8 @@ sub store { MooseX::Storage::Engine::IO::File->new( file => $filename )->store( $self->freeze(@args) ); } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/IO/StorableFile.pm b/lib/MooseX/Storage/IO/StorableFile.pm index ee29dcc..5120e92 100644 --- a/lib/MooseX/Storage/IO/StorableFile.pm +++ b/lib/MooseX/Storage/IO/StorableFile.pm @@ -1,4 +1,3 @@ - package MooseX::Storage::IO::StorableFile; use Moose::Role; @@ -28,6 +27,8 @@ sub store { ); } +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Traits/DisableCycleDetection.pm b/lib/MooseX/Storage/Traits/DisableCycleDetection.pm index 0d5118f..20b1127 100644 --- a/lib/MooseX/Storage/Traits/DisableCycleDetection.pm +++ b/lib/MooseX/Storage/Traits/DisableCycleDetection.pm @@ -21,6 +21,8 @@ around 'unpack' => sub { $self->$orig($data, %args); }; +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Traits/OnlyWhenBuilt.pm b/lib/MooseX/Storage/Traits/OnlyWhenBuilt.pm index b6e1a0c..98258f2 100644 --- a/lib/MooseX/Storage/Traits/OnlyWhenBuilt.pm +++ b/lib/MooseX/Storage/Traits/OnlyWhenBuilt.pm @@ -21,6 +21,8 @@ around 'unpack' => sub { $self->$orig($data, %args); }; +no Moose::Role; + 1; __END__ diff --git a/lib/MooseX/Storage/Util.pm b/lib/MooseX/Storage/Util.pm index 1fa38b4..e779baa 100644 --- a/lib/MooseX/Storage/Util.pm +++ b/lib/MooseX/Storage/Util.pm @@ -64,6 +64,8 @@ sub _inflate_yaml { return $data; } +no Moose::Role; + 1; __END__