From: Karen Etheridge Date: Wed, 17 Jul 2013 00:47:40 +0000 (-0700) Subject: convert to Dist::Zilla X-Git-Tag: v0.36-TRIAL~1^2~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d3671a48f9673b8f5e74f9105b56406e4bfe5a6b;p=gitmo%2FMooseX-Storage.git convert to Dist::Zilla also includes some spelling fixes --- diff --git a/.gitignore b/.gitignore index a230845..08a7302 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,8 @@ -MYMETA.* -MooseX-Storage-* -META.yml -Makefile -blib/* -inc/* -pm_to_blib -MANIFEST -MANIFEST.bak -MANIFEST.SKIP.bak -Makefile.old +/.build/ +!.gitignore +/cover_db/ +*.gc?? +/test-mydeps-* +/nytprof* +.*.sw[a-z] +/MooseX-Storage-* diff --git a/.shipit b/.shipit deleted file mode 100644 index 6723454..0000000 --- a/.shipit +++ /dev/null @@ -1,5 +0,0 @@ -steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist - -git.tagpattern = %v - -CheckChangeLog.files = Changes diff --git a/Changes b/Changes index 3f48d20..cad4146 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,6 @@ -Revision history for MooseX-Storage +Revision history for {{$dist->name}} + +{{$NEXT}} 0.35 2013-07-15 * properly skip optional tests when the required JSON backends aren't diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e69de29 diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP deleted file mode 100644 index 2144cd4..0000000 --- a/MANIFEST.SKIP +++ /dev/null @@ -1,26 +0,0 @@ -#!include_default -MYMETA.json -MYMETA.yml -^MooseX-Storage- -^.git -^svn-commit.*\.tmp$ -^_build -^Build$ -^blib -~$ -\.bak$ -^MANIFEST\.SKIP$ -CVS -\.svn -\.DS_Store -cover_db -\..*\.sw.?$ -^Makefile$ -^pm_to_blib$ -^MakeMaker-\d -^blibdirs$ -\.old$ -^#.*#$ -^\.# -^TODO$ -^\.shipit$ diff --git a/Makefile.PL b/Makefile.PL deleted file mode 100644 index 1415058..0000000 --- a/Makefile.PL +++ /dev/null @@ -1,67 +0,0 @@ -# Load the Module::Install bundled in ./inc/ -use inc::Module::Install 0.75; -use Module::Install::AuthorRequires; -use Module::Install::AuthorTests; - -# Define metadata -name 'MooseX-Storage'; -all_from 'lib/MooseX/Storage.pm'; - -perl_version '5.008'; - -# Specific dependencies -requires 'Moose' => '0.99'; -requires 'String::RewritePrefix'; - -author_requires 'Test::Without::Module'; - -# you should have at least one -# serialization format -auto_install; # Needed for features to work. RT#67170 -feature 'JSON', - -default => 1, - 'JSON::Any' => '1.15', - 'Test::Deep::JSON' => '0'; -recommends 'JSON::Any' => '1.15'; -recommends 'Test::Deep::JSON'; - -author_requires 'JSON::Any' => '1.15'; -author_requires 'Test::Deep::JSON' => '0'; - -feature 'YAML', - -default => 1, - 'YAML::Any' => '0'; -author_requires 'YAML::Any'; -recommends 'YAML::Any'; - -feature 'Storable', - -default => 1, - 'Storable' => '0'; -author_requires 'Storable'; -recommends 'Storable'; - -# and the ability to save the -# file to disk -feature 'File', - -default => 1, - 'IO::File' => '0.1'; -author_requires 'IO::File' => '0.1'; -recommends 'IO::File'; - -author_tests 't/author'; - -build_requires 'Test::More' => '0.88'; -build_requires 'Test::Deep' => '0'; -build_requires 'Test::Fatal' => '0'; -build_requires 'Test::Requires' => '0.05'; - -author_requires 'Digest::HMAC'; -author_requires 'Digest::SHA'; -author_requires 'Test::Pod' => '1.14'; -author_requires 'Test::Pod::Coverage' => '1.08'; - -# r/w: gitmo@git.moose.perl.org:MooseX-Storage.git -resources repository => 'git://git.moose.perl.org/MooseX-Storage.git'; - -WriteAll; - diff --git a/README b/README deleted file mode 100644 index c25dd17..0000000 --- a/README +++ /dev/null @@ -1,45 +0,0 @@ -MooseX-Storage version 0.32 - -INSTALLATION - -To install this module, run the following commands: - - perl Makefile.PL - make - make test - make install - -Alternatively, to install with Module::Build, you can use the following commands: - - perl Build.PL - ./Build - ./Build test - ./Build install - -DEPENDENCIES - - Moose - String::RewritePrefix - Test::More - Test::Deep - Test::Fatal - Test::Requires - -OPTIONAL DEPENDENCIES - - JSON::Any - IO::File - IO::AtomicFile - Test::YAML::Valid - Test::Deep::JSON - Digest - Digest::SHA1 - Data::Dumper - -COPYRIGHT AND LICENCE - -Copyright (C) 2007-2008 Infinity Interactive - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. - diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/dist.ini b/dist.ini new file mode 100644 index 0000000..47cf55a --- /dev/null +++ b/dist.ini @@ -0,0 +1,36 @@ +name = MooseX-Storage +author = Chris Prather +author = Stevan Little +author = Yuval Kogman +copyright_holder = Infinity Interactive, Inc. +license = Perl_5 + +[@Author::ETHER] +:version = 0.010 +-remove = PodWeaver +-remove = AutoPrereqs +Authority.authority = cpan:STEVAN +; r/w repository: gitmo@git.moose.perl.org:MooseX-Storage.git +AutoMetaResources.repository.gitmo = 1 +Test::MinimumVersion.max_target_perl = 5.008000 +; these appear in every file, so it's easier to just put it here +Test::PodSpelling.stopwords = cpan + +[Prereqs / RuntimeRequires] +Moose = 0.99 +String::RewritePrefix = 0 + +[Prereqs/ TestRequires] +Test::More = 0.88 +Test::Deep = 0 +Test::Fatal = 0 +Test::Requires = 0.05 + +[Prereqs / RuntimeRecommends] +Digest::HMAC = 0 +Digest::SHA = 0 + +[Prereqs / DevelopRequires] +Digest::HMAC = 0 +Digest::SHA = 0 + diff --git a/lib/MooseX/Storage.pm b/lib/MooseX/Storage.pm index f104e98..2ab32aa 100644 --- a/lib/MooseX/Storage.pm +++ b/lib/MooseX/Storage.pm @@ -1,13 +1,9 @@ - package MooseX::Storage; use Moose qw(confess); use MooseX::Storage::Meta::Attribute::DoNotSerialize; use String::RewritePrefix (); -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - sub import { my $pkg = caller(); diff --git a/lib/MooseX/Storage/Base/WithChecksum.pm b/lib/MooseX/Storage/Base/WithChecksum.pm index 4e999d4..2244edb 100644 --- a/lib/MooseX/Storage/Base/WithChecksum.pm +++ b/lib/MooseX/Storage/Base/WithChecksum.pm @@ -6,9 +6,6 @@ with 'MooseX::Storage::Basic'; use Digest (); use Data::Dumper (); -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - our $DIGEST_MARKER = '__DIGEST__'; around pack => sub { diff --git a/lib/MooseX/Storage/Basic.pm b/lib/MooseX/Storage/Basic.pm index 26f158f..519e9ca 100644 --- a/lib/MooseX/Storage/Basic.pm +++ b/lib/MooseX/Storage/Basic.pm @@ -4,9 +4,6 @@ use Moose::Role; use MooseX::Storage::Engine; use String::RewritePrefix; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - sub pack { my ( $self, %args ) = @_; my $e = $self->_storage_get_engine_class(%args)->new( object => $self ); diff --git a/lib/MooseX/Storage/Deferred.pm b/lib/MooseX/Storage/Deferred.pm index 81b18d9..de8421d 100644 --- a/lib/MooseX/Storage/Deferred.pm +++ b/lib/MooseX/Storage/Deferred.pm @@ -1,9 +1,6 @@ package MooseX::Storage::Deferred; use Moose::Role; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - with 'MooseX::Storage::Basic'; sub __get_method { diff --git a/lib/MooseX/Storage/Engine.pm b/lib/MooseX/Storage/Engine.pm index c924022..bcc87ae 100644 --- a/lib/MooseX/Storage/Engine.pm +++ b/lib/MooseX/Storage/Engine.pm @@ -2,9 +2,6 @@ package MooseX::Storage::Engine; use Moose; use Scalar::Util qw(refaddr); -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - # the class marker when # serializing an object. our $CLASS_MARKER = '__CLASS__'; diff --git a/lib/MooseX/Storage/Engine/IO/AtomicFile.pm b/lib/MooseX/Storage/Engine/IO/AtomicFile.pm index 02386b9..68e60e8 100644 --- a/lib/MooseX/Storage/Engine/IO/AtomicFile.pm +++ b/lib/MooseX/Storage/Engine/IO/AtomicFile.pm @@ -4,9 +4,6 @@ use Moose; use utf8 (); use IO::AtomicFile; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - extends 'MooseX::Storage::Engine::IO::File'; sub store { diff --git a/lib/MooseX/Storage/Engine/IO/File.pm b/lib/MooseX/Storage/Engine/IO/File.pm index a16222f..83c7a8d 100644 --- a/lib/MooseX/Storage/Engine/IO/File.pm +++ b/lib/MooseX/Storage/Engine/IO/File.pm @@ -4,9 +4,6 @@ use Moose; use utf8 (); use IO::File; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - has 'file' => ( is => 'ro', isa => 'Str', diff --git a/lib/MooseX/Storage/Format/JSON.pm b/lib/MooseX/Storage/Format/JSON.pm index 8dbdc87..d926bcf 100644 --- a/lib/MooseX/Storage/Format/JSON.pm +++ b/lib/MooseX/Storage/Format/JSON.pm @@ -6,9 +6,6 @@ no warnings 'once'; use JSON::Any; use utf8 (); -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - requires 'pack'; requires 'unpack'; diff --git a/lib/MooseX/Storage/Format/Storable.pm b/lib/MooseX/Storage/Format/Storable.pm index d33fadb..0e3f8c2 100644 --- a/lib/MooseX/Storage/Format/Storable.pm +++ b/lib/MooseX/Storage/Format/Storable.pm @@ -3,9 +3,6 @@ use Moose::Role; use Storable (); -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - requires 'pack'; requires 'unpack'; diff --git a/lib/MooseX/Storage/Format/YAML.pm b/lib/MooseX/Storage/Format/YAML.pm index 5e36185..cec94d1 100644 --- a/lib/MooseX/Storage/Format/YAML.pm +++ b/lib/MooseX/Storage/Format/YAML.pm @@ -7,9 +7,6 @@ use Moose::Role; use YAML::Any qw(Load Dump); -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - requires 'pack'; requires 'unpack'; diff --git a/lib/MooseX/Storage/IO/AtomicFile.pm b/lib/MooseX/Storage/IO/AtomicFile.pm index f187727..7129367 100644 --- a/lib/MooseX/Storage/IO/AtomicFile.pm +++ b/lib/MooseX/Storage/IO/AtomicFile.pm @@ -3,9 +3,6 @@ use Moose::Role; use MooseX::Storage::Engine::IO::AtomicFile; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - with 'MooseX::Storage::IO::File'; sub store { diff --git a/lib/MooseX/Storage/IO/File.pm b/lib/MooseX/Storage/IO/File.pm index efb4103..8b3856f 100644 --- a/lib/MooseX/Storage/IO/File.pm +++ b/lib/MooseX/Storage/IO/File.pm @@ -3,9 +3,6 @@ use Moose::Role; use MooseX::Storage::Engine::IO::File; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - requires 'thaw'; requires 'freeze'; diff --git a/lib/MooseX/Storage/IO/StorableFile.pm b/lib/MooseX/Storage/IO/StorableFile.pm index 33dea84..0e5bd9f 100644 --- a/lib/MooseX/Storage/IO/StorableFile.pm +++ b/lib/MooseX/Storage/IO/StorableFile.pm @@ -3,9 +3,6 @@ use Moose::Role; use Storable (); -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - requires 'pack'; requires 'unpack'; diff --git a/lib/MooseX/Storage/Meta/Attribute/DoNotSerialize.pm b/lib/MooseX/Storage/Meta/Attribute/DoNotSerialize.pm index fe28dcc..a6539f0 100644 --- a/lib/MooseX/Storage/Meta/Attribute/DoNotSerialize.pm +++ b/lib/MooseX/Storage/Meta/Attribute/DoNotSerialize.pm @@ -1,18 +1,12 @@ package MooseX::Storage::Meta::Attribute::DoNotSerialize; use Moose; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - extends 'Moose::Meta::Attribute'; with 'MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize'; # register this alias ... package Moose::Meta::Attribute::Custom::DoNotSerialize; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - sub register_implementation { 'MooseX::Storage::Meta::Attribute::DoNotSerialize' } 1; diff --git a/lib/MooseX/Storage/Meta/Attribute/Trait/DoNotSerialize.pm b/lib/MooseX/Storage/Meta/Attribute/Trait/DoNotSerialize.pm index 321f526..84259d7 100644 --- a/lib/MooseX/Storage/Meta/Attribute/Trait/DoNotSerialize.pm +++ b/lib/MooseX/Storage/Meta/Attribute/Trait/DoNotSerialize.pm @@ -2,15 +2,9 @@ package MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize; use Moose::Role; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - # register this alias ... package Moose::Meta::Attribute::Custom::Trait::DoNotSerialize; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - sub register_implementation { 'MooseX::Storage::Meta::Attribute::Trait::DoNotSerialize' } 1; diff --git a/lib/MooseX/Storage/Traits/DisableCycleDetection.pm b/lib/MooseX/Storage/Traits/DisableCycleDetection.pm index 75bba62..6178af8 100644 --- a/lib/MooseX/Storage/Traits/DisableCycleDetection.pm +++ b/lib/MooseX/Storage/Traits/DisableCycleDetection.pm @@ -1,9 +1,6 @@ package MooseX::Storage::Traits::DisableCycleDetection; use Moose::Role; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - requires 'pack'; requires 'unpack'; diff --git a/lib/MooseX/Storage/Traits/OnlyWhenBuilt.pm b/lib/MooseX/Storage/Traits/OnlyWhenBuilt.pm index 49b5dbe..610bde0 100644 --- a/lib/MooseX/Storage/Traits/OnlyWhenBuilt.pm +++ b/lib/MooseX/Storage/Traits/OnlyWhenBuilt.pm @@ -1,9 +1,6 @@ package MooseX::Storage::Traits::OnlyWhenBuilt; use Moose::Role; -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - requires 'pack'; requires 'unpack'; diff --git a/lib/MooseX/Storage/Util.pm b/lib/MooseX/Storage/Util.pm index c890484..2e86daf 100644 --- a/lib/MooseX/Storage/Util.pm +++ b/lib/MooseX/Storage/Util.pm @@ -4,9 +4,6 @@ use Moose qw(confess blessed); use MooseX::Storage::Engine (); use utf8 (); -our $VERSION = '0.35'; -our $AUTHORITY = 'cpan:STEVAN'; - sub peek { my ($class, $data, %options) = @_;