From: Dave Rolsky Date: Sat, 26 Feb 2011 22:46:45 +0000 (-0600) Subject: dzilize this distro X-Git-Tag: 0.27~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Singleton.git;a=commitdiff_plain;h=4e4f795a8767efb8042f2d6d9eec1575d51df977 dzilize this distro --- diff --git a/Makefile.PL b/Makefile.PL deleted file mode 100644 index 45d055e..0000000 --- a/Makefile.PL +++ /dev/null @@ -1,19 +0,0 @@ -use strict; -use warnings; -use inc::Module::Install; - -name 'MooseX-Singleton'; -all_from 'lib/MooseX/Singleton.pm'; - -requires 'Moose' => '1.10'; -requires 'Scalar::Util'; - -test_requires 'Test::More' => '0.88'; -test_requires 'Test::Fatal'; -test_requires 'Test::Requires'; - -license 'Perl'; - -extra_tests(); - -WriteAll(); diff --git a/dist.ini b/dist.ini new file mode 100644 index 0000000..235748c --- /dev/null +++ b/dist.ini @@ -0,0 +1,65 @@ +name = MooseX-Singleton +author = Shawn M Moore +license = Perl_5 +copyright_holder = Shawn M Moore +copyright_year = 2001 + +version = 0.25 + +[GatherDir] +[PruneCruft] +[ManifestSkip] +[MetaYAML] +[MetaJSON] +[License] +[Readme] +[ExtraTests] +[ExecDir] +[ShareDir] + +[MakeMaker] +[Manifest] + +[TestRelease] +[ConfirmRelease] +[UploadToCPAN] + +[NextRelease] +format = %v %{ccc, MMM dd, yyyy}d + +[PkgVersion] + +[Authority] +authority = cpan:SARTAK + +[MetaResources] +bugtracker.web = http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-Singleton +bugtracker.mailto = bug-moosex-singleton@rt.cpan.org +repository.url = git://git.moose.perl.org/MooseX-Singleton.git +repository.web = http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/MooseX-Singleton.git;a=summary +repository.type = git + +[SurgicalPodWeaver] + +[PodSyntaxTests] +[EOLTests] +[NoTabsTests] + +[CheckChangeLog] + +[Prereqs / BuildRequires] +ExtUtils::MakeMaker = 6.42 +Test::Fatal = 0 +Test::More = 0.88 +Test::Requires = 0 + +[Prereqs] +Moose = 1.10 +Scalar::Util = 0 + +[Git::Check] +allow_dirty = + +[Git::Tag] +tag_format = %v +tag_message = diff --git a/lib/MooseX/Singleton.pm b/lib/MooseX/Singleton.pm index da278d4..c982490 100644 --- a/lib/MooseX/Singleton.pm +++ b/lib/MooseX/Singleton.pm @@ -6,8 +6,6 @@ use MooseX::Singleton::Role::Object; use MooseX::Singleton::Role::Meta::Class; use MooseX::Singleton::Role::Meta::Instance; -our $VERSION = '0.25'; -$VERSION = eval $VERSION; Moose::Exporter->setup_import_methods( also => 'Moose' ); @@ -42,14 +40,12 @@ sub init_meta { 1; +# ABSTRACT: turn your Moose class into a singleton + __END__ =pod -=head1 NAME - -MooseX::Singleton - turn your Moose class into a singleton - =head1 SYNOPSIS package MyApp; @@ -112,12 +108,6 @@ C, or through the web interface at L. We will be notified, and then you'll automatically be notified of progress on your bug as we make changes. -=head1 AUTHORS - -Shawn M Moore Esartak@gmail.comE - -Dave Rolsky Eautarch@urth.orgE - =head1 SOME CODE STOLEN FROM Anders Nor Berle Edebolaz@gmail.comE @@ -126,12 +116,5 @@ Anders Nor Berle Edebolaz@gmail.comE Ricardo SIGNES Erjbs@cpan.orgE -=head1 COPYRIGHT AND LICENSE - -Copyright 2007-2009 Infinity Interactive - -This program is free software; you can redistribute it and/or modify it under -the same terms as Perl itself. - =cut diff --git a/lib/MooseX/Singleton/Role/Meta/Class.pm b/lib/MooseX/Singleton/Role/Meta/Class.pm index 975e954..2d606f4 100644 --- a/lib/MooseX/Singleton/Role/Meta/Class.pm +++ b/lib/MooseX/Singleton/Role/Meta/Class.pm @@ -3,8 +3,6 @@ use Moose::Role; use MooseX::Singleton::Role::Meta::Instance; use MooseX::Singleton::Role::Meta::Method::Constructor; -our $VERSION = '0.25'; -$VERSION = eval $VERSION; sub existing_singleton { my ($class) = @_; @@ -64,14 +62,12 @@ no Moose::Role; 1; +# ABSTRACT: Metaclass role for MooseX::Singleton + __END__ =pod -=head1 NAME - -MooseX::Singleton::Role::Meta::Class - Metaclass role for MooseX::Singleton - =head1 DESCRIPTION This metaclass role makes sure that there is only ever one instance of an diff --git a/lib/MooseX/Singleton/Role/Meta/Instance.pm b/lib/MooseX/Singleton/Role/Meta/Instance.pm index f5234d9..b513c2d 100644 --- a/lib/MooseX/Singleton/Role/Meta/Instance.pm +++ b/lib/MooseX/Singleton/Role/Meta/Instance.pm @@ -2,8 +2,6 @@ package MooseX::Singleton::Role::Meta::Instance; use Moose::Role; use Scalar::Util 'weaken'; -our $VERSION = '0.25'; -$VERSION = eval $VERSION; sub get_singleton_instance { my ( $self, $instance ) = @_; @@ -63,14 +61,12 @@ no Moose::Role; 1; +# ABSTRACT: Instance metaclass role for MooseX::Singleton + __END__ =pod -=head1 NAME - -MooseX::Singleton::Role::Meta::Instance - Instance metaclass role for MooseX::Singleton - =head1 DESCRIPTION This role overrides all object access so that it gets the appropriate diff --git a/lib/MooseX/Singleton/Role/Meta/Method/Constructor.pm b/lib/MooseX/Singleton/Role/Meta/Method/Constructor.pm index d186ade..f8f049e 100644 --- a/lib/MooseX/Singleton/Role/Meta/Method/Constructor.pm +++ b/lib/MooseX/Singleton/Role/Meta/Method/Constructor.pm @@ -1,8 +1,6 @@ package MooseX::Singleton::Role::Meta::Method::Constructor; use Moose::Role; -our $VERSION = '0.25'; -$VERSION = eval $VERSION; if ( $Moose::VERSION < 1.9900 ) { override _initialize_body => sub { @@ -98,14 +96,12 @@ no Moose::Role; 1; +# ABSTRACT: Constructor method role for MooseX::Singleton + __END__ =pod -=head1 NAME - -MooseX::Singleton::Role::Meta::Method::Constructor - Constructor method role for MooseX::Singleton - =head1 DESCRIPTION This role overrides the generated object C method so that it returns the diff --git a/lib/MooseX/Singleton/Role/Object.pm b/lib/MooseX/Singleton/Role/Object.pm index f745b2b..cb2a2ad 100644 --- a/lib/MooseX/Singleton/Role/Object.pm +++ b/lib/MooseX/Singleton/Role/Object.pm @@ -2,8 +2,6 @@ package MooseX::Singleton::Role::Object; use Moose::Role; use Carp qw( carp ); -our $VERSION = '0.25'; -$VERSION = eval $VERSION; sub instance { shift->new } @@ -38,14 +36,12 @@ no Moose::Role; 1; +# ABSTRACT: Object class role for MooseX::Singleton + __END__ =pod -=head1 NAME - -MooseX::Singleton::Role::Object - Object class role for MooseX::Singleton - =head1 DESCRIPTION This just adds C as a shortcut for C. diff --git a/xt/author/pod.t b/xt/author/pod.t deleted file mode 100644 index 5627f22..0000000 --- a/xt/author/pod.t +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; - -use Test::More; - -use Test::Requires { - 'Test::Pod' => '1.14', # skip all if not installed -}; - -all_pod_files_ok(); diff --git a/xt/author/tabs.t b/xt/author/tabs.t deleted file mode 100644 index b794cee..0000000 --- a/xt/author/tabs.t +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; - -use Test::More; - -use Test::Requires { - 'Test::NoTabs' => '0.8', # skip all if not installed -}; - -# Module::Install has tabs, so we can't check 'inc' or ideally '.' -all_perl_files_ok('lib', 't', 'xt'); - diff --git a/xt/author/version-numbers.t b/xt/author/version-numbers.t deleted file mode 100644 index 86557f7..0000000 --- a/xt/author/version-numbers.t +++ /dev/null @@ -1,27 +0,0 @@ -use strict; -use warnings; - -use Test::More; - -use Test::Requires { - 'File::Find::Rule' => '0.01', # skip all if not installed - 'Module::Info' => '0.01', -}; - -my %versions; -for my $pm_file ( File::Find::Rule->file->name( qr/\.pm$/ )->in('lib' ) ) { - my $mod = Module::Info->new_from_file($pm_file); - - ( my $stripped_file = $pm_file ) =~ s{^lib/}{}; - - $versions{$stripped_file} = $mod->version; -} - -my $moose_ver = $versions{'MooseX/Singleton.pm'}; - -for my $module ( grep { $_ ne 'MooseX/Singleton.pm' } sort keys %versions ) { - is( $versions{$module}, $moose_ver, - "version for $module is the same as in MooseX/Singleton.pm" ); -} - -done_testing; diff --git a/xt/author/pod-coverage.t b/xt/release/pod-coverage.t similarity index 100% rename from xt/author/pod-coverage.t rename to xt/release/pod-coverage.t diff --git a/xt/author/pod-spell.t b/xt/release/pod-spell.t similarity index 100% rename from xt/author/pod-spell.t rename to xt/release/pod-spell.t