convert to dist.ini
Karen Etheridge [Sat, 9 Feb 2013 20:21:57 +0000 (12:21 -0800)]
.gitignore
Changes [moved from ChangeLog with 95% similarity]
MANIFEST.SKIP [deleted file]
Makefile.PL [deleted file]
README.md [new file with mode: 0644]
dist.ini [new file with mode: 0644]
lib/MooseX/ConfigFromFile.pm
t/release-pod-coverage.t [deleted file]
t/release-pod-syntax.t [deleted file]

index 4b11ad9..b0036dd 100644 (file)
@@ -1,13 +1,13 @@
-MYMETA.*
-META.yml
-Makefile
-inc/
-pm_to_blib
-blib/
-MANIFEST
-Makefile.old
-MANIFEST.bak
-MooseX-ConfigFromFile*
+/MYMETA.*
+/META.yml
+/Makefile.PL
+/Makefile
+/inc/
+/pm_to_blib
+/blib/
+/MANIFEST*
+/Makefile.old
+/MANIFEST.bak
+/MooseX-ConfigFromFile*
 /TODO
 /LICENSE
-/README
similarity index 95%
rename from ChangeLog
rename to Changes
index 395d779..1d77f1b 100644 (file)
--- a/ChangeLog
+++ b/Changes
@@ -1,5 +1,6 @@
-Revision history for Perl extension MooseX::ConfigFromFile
+Revision history for {{$dist->name}}
 
+{{$NEXT}}
     - allow configfiles called "0"
 
 0.07 - 2013-02-04 (Karen Etheridge)
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
deleted file mode 100644 (file)
index b7af0cc..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-^_build
-^Build$
-^blib
-~$
-\.bak$
-^MANIFEST\.SKIP$
-CVS
-\.git
-\.DS_Store
-cover_db
-\..*\.sw.?$
-^MYMETA
-^Makefile$
-^pm_to_blib$
-^MakeMaker-\d
-^blibdirs$
-\.old$
-^#.*#$
-^\.#
-\.gz$
-Build.PL
-TODO
diff --git a/Makefile.PL b/Makefile.PL
deleted file mode 100644 (file)
index 67444f3..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-# Load the Module::Install bundled in ./inc/
-use inc::Module::Install 0.75;
-
-use Module::Install::ReadmeFromPod;
-use Module::Install::AutoLicense;
-
-name 'MooseX-ConfigFromFile';
-all_from        'lib/MooseX/ConfigFromFile.pm';
-readme_from     'lib/MooseX/ConfigFromFile.pm';
-auto_license;
-
-test_requires 'Test::More' => '0.42';
-test_requires 'Test::Fatal';
-test_requires 'Test::Requires';
-test_requires 'Test::NoWarnings'      => '1.04';
-test_requires 'Test::Without::Module';
-
-requires 'Moose'                      => '0.35';
-requires 'MooseX::Types::Path::Tiny';
-requires 'Try::Tiny';
-requires 'namespace::autoclean';
-
-resources repository => 'git://git.moose.perl.org/MooseX-ConfigFromFile.git';
-
-WriteAll;
diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/dist.ini b/dist.ini
new file mode 100644 (file)
index 0000000..73d4729
--- /dev/null
+++ b/dist.ini
@@ -0,0 +1,93 @@
+name        = MooseX-ConfigFromFile
+author      = Brandon L. Black, <blblack@gmail.com>
+abstract    = An abstract Moose role for setting attributes from a configfile
+copyright_holder = Brandon L. Black
+license     = Perl_5
+
+[MetaResources]
+bugtracker.web    = https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-ConfigFromFile
+bugtracker.mailto = bug-MooseX-ConfigFromFile@rt.cpan.org
+; r/w: gitmo@git.moose.perl.org:MooseX-ConfigFromFile.git
+repository.url    = git://git.moose.perl.org/MooseX-ConfigFromFile.git
+repository.web    = http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/MooseX-ConfigFromFile.git;a=summary
+repository.type   = git
+
+[Git::GatherDir]
+
+[@Filter]
+-bundle = @Basic
+-remove = GatherDir
+
+; use V= to override; otherwise version is incremented from last tag
+[Git::NextVersion]
+version_regexp = ^v([\d._]+)(-TRIAL)?$
+
+[AutoPrereqs]
+
+[InstallGuide]
+[MetaConfig]
+[MetaProvides::Package]
+[MetaJSON]
+[Git::Describe]
+[PkgVersion]
+[MinimumPerl]
+
+[ReadmeAnyFromPod]
+type = markdown
+filename = README.md
+location = root
+
+[NoTabsTests]
+[EOLTests]
+[PodSyntaxTests]
+[PodCoverageTests]
+;[Test::Pod::LinkCheck]     many outstanding bugs
+[Test::Pod::No404s]
+[Test::PodSpelling]
+
+[Test::Compile]
+bail_out_on_fail = 1
+
+[Test::MinimumVersion]
+[MetaTests]
+[Test::CPAN::Changes]
+[Test::Version]
+;[Test::UnusedVars]  ; broken in 5.16.0!
+[Test::ChangesHasContent]
+
+[Test::CheckDeps]
+:version = 0.005
+fatal = 1
+
+[CheckPrereqsIndexed]
+
+[Git::Remote::Check]
+remote_branch = master
+
+[Git::CheckFor::CorrectBranch]
+:version = 0.004
+release_branch = master
+release_branch = stable
+
+[Git::Check]
+allow_dirty = README.md
+
+[NextRelease]
+:version = 4.300018
+format = %-8V  %{yyyy-MM-dd HH:mm:ss ZZZZ}d (%U)
+
+[Git::Commit]
+allow_dirty = Changes
+allow_dirty = README.md
+commit_msg = %N-%v%t%n%n%c
+
+[Git::Tag]
+tag_format = v%v%t
+tag_message = v%v%t
+
+[Git::Push]
+
+[InstallRelease]
+install_command = cpanm .
+
+[Clean]
index 7a12bc2..9957047 100644 (file)
@@ -6,8 +6,6 @@ use Try::Tiny qw/ try /;
 use Carp qw(croak);
 use namespace::autoclean;
 
-our $VERSION = '0.07';
-
 requires 'get_config_from_file';
 
 has configfile => (
diff --git a/t/release-pod-coverage.t b/t/release-pod-coverage.t
deleted file mode 100644 (file)
index c059674..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-use strict;
-use warnings;
-use Test::More;
-
-BEGIN {
-  unless ($ENV{RELEASE_TESTING}) {
-    plan skip_all => 'these tests are for release candidate testing';
-  }
-}
-
-eval "use Test::Pod::Coverage 1.08";
-plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage"
-  if $@;
-
-eval "use Pod::Coverage::TrustPod";
-plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
-  if $@;
-
-all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
diff --git a/t/release-pod-syntax.t b/t/release-pod-syntax.t
deleted file mode 100644 (file)
index 7f1e5ca..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-use strict;
-use warnings;
-use Test::More;
-
-BEGIN {
-  unless ($ENV{RELEASE_TESTING}) {
-    plan skip_all => 'these tests are for release candidate testing';
-  }
-}
-
-eval "use Test::Pod 1.41";
-plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
-
-all_pod_files_ok();