dzilify and stuff
Jesse Luehrs [Thu, 4 Jul 2013 16:06:00 +0000 (12:06 -0400)]
.gitignore [new file with mode: 0644]
.mailmap [new file with mode: 0644]
.travis.yml [new file with mode: 0644]
Changes
MANIFEST.SKIP [deleted file]
Makefile.PL [deleted file]
dist.ini [new file with mode: 0644]
lib/Try/Tiny.pm

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..e5666a1
--- /dev/null
@@ -0,0 +1,17 @@
+cover_db
+META.*
+MYMETA.*
+Makefile
+blib
+inc
+pm_to_blib
+MANIFEST
+Makefile.old
+nytprof.out
+MANIFEST.bak
+*.sw[po]
+.DS_Store
+.build
+Try-Tiny-*
+*.bs
+*.o
diff --git a/.mailmap b/.mailmap
new file mode 100644 (file)
index 0000000..3c40626
--- /dev/null
+++ b/.mailmap
@@ -0,0 +1 @@
+Peter Rabbitson <ribasushi@cpan.org> Peter Rabbitson <rabbit@rabbit.us>
diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..e341769
--- /dev/null
@@ -0,0 +1,15 @@
+language: perl
+perl:
+    - "5.19"
+    - "5.18"
+    - "5.16"
+    - "5.14"
+    - "5.12"
+    - "5.10"
+    - "5.8"
+install:
+    - cpanm -q --notest Dist::Zilla
+    - dzil authordeps --missing | cpanm -q --notest
+    - dzil listdeps --author --missing | cpanm -q --notest
+script:
+    - dzil test --all
diff --git a/Changes b/Changes
index 2b18bc3..f57e427 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,4 +1,6 @@
+Revision history for Try-Tiny
 
+{{$NEXT}}
   - fix tests failing on 5.6.x due to differing DESTROY semantics
   - excise superfluous local($@) call - 7% speedup
   - fix (fsvo) broken URLs (RT#55659)
@@ -8,6 +10,7 @@
   - fix the prototypes shown in docs to match code (RT#79590; thanks, Pushtaev
     Vadim)
   - warn loudly on exceptions in finally() blocks
+  - dzilify
 
 0.12
   - doc fixes
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
deleted file mode 100644 (file)
index 5923545..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-# Avoid version control files.
-\bRCS\b
-\bCVS\b
-\bSCCS\b
-,v$
-\B\.svn\b
-\B\.git\b
-\b_darcs\b
-
-# Avoid Makemaker generated and utility files.
-\bMANIFEST\.bak
-\bMakefile$
-\bblib/
-\bMakeMaker-\d
-\bpm_to_blib\.ts$
-\bpm_to_blib$
-\bblibdirs\.ts$         # 6.18 through 6.25 generated this
-
-# Avoid Module::Build generated and utility files.
-\bBuild$
-\b_build/
-
-# Avoid temp and backup files.
-~$
-\.old$
-\#$
-\b\.#
-\.bak$
-
-# Avoid Devel::Cover files.
-\bcover_db\b
-
-### DEFAULT MANIFEST.SKIP ENDS HERE ####
-
-\.DS_Store$
-\.sw.$
-(\w+-)*(\w+)-\d\.\d+(?:\.tar\.gz)?$
-
-\.t\.log$
-
-\.prove$
-
-# XS shit
-\.(?:bs|c|o)$
-
-\.gitignore$
-
-MYMETA
-
-maint
diff --git a/Makefile.PL b/Makefile.PL
deleted file mode 100644 (file)
index d2773b5..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-use strict;
-
-use ExtUtils::MakeMaker;
-
-require 5.006;
-
-WriteMakefile(
-  NAME         => 'Try::Tiny',
-  VERSION_FROM => 'lib/Try/Tiny.pm',
-  INSTALLDIRS  => 'site',
-  PL_FILES     => { },
-  PREREQ_PM    => {
-    'Test::More' => 0,
-  },
-  META_MERGE => {
-    dynamic_config => 0,
-    resources => {
-      homepage => 'https://github.com/doy/try-tiny.git',
-      repository => 'git://github.com/doy/try-tiny.git',
-    },
-  },
-);
diff --git a/dist.ini b/dist.ini
new file mode 100644 (file)
index 0000000..dda9b94
--- /dev/null
+++ b/dist.ini
@@ -0,0 +1,25 @@
+name = Try-Tiny
+author = Yuval Kogman <nothingmuch@woobling.org>
+author = Jesse Luehrs <doy@tozt.net>
+license = MIT
+copyright_holder = Yuval Kogman
+
+[@DOY]
+:version = 0.12
+dist = Try-Tiny
+repository = github
+authority = cpan:NUFFIN
+bugtracker_web = https://github.com/doy/try-tiny/issues
+bugtracker_mailto =
+done_testing = 0
+Git::Tag_tag_format = %N-%v
+Git::NextVersion_version_regexp = ^Try-Tiny-(.+)$
+
+[ContributorsFromGit]
+
+[AutoPrereqs]
+; tests optionally require 5.010
+skip = ^perl$
+
+[Prereqs]
+perl = 5.006
index 061e734..c3c74a9 100644 (file)
@@ -1,11 +1,10 @@
 package Try::Tiny;
+use 5.006;
+# ABSTRACT: minimal try/catch with proper preservation of $@
 
 use strict;
 use warnings;
 
-our $VERSION = "0.12";
-$VERSION = eval $VERSION if $VERSION =~ /_/;
-
 use base 'Exporter';
 our @EXPORT = our @EXPORT_OK = qw(try catch finally);
 
@@ -161,10 +160,6 @@ __END__
 
 =pod
 
-=head1 NAME
-
-Try::Tiny - minimal try/catch with proper preservation of $@
-
 =head1 SYNOPSIS
 
 You can use Try::Tiny's C<try> and C<catch> to expect and handle exceptional
@@ -612,15 +607,5 @@ L<http://web.archive.org/web/20100305133605/http://nothingmuch.woobling.org/talk
 
 L<http://github.com/nothingmuch/try-tiny/>
 
-=head1 AUTHOR
-
-Yuval Kogman E<lt>nothingmuch@woobling.orgE<gt>
-
-=head1 COPYRIGHT
-
-  Copyright (c) 2009 Yuval Kogman. All rights reserved.
-  This program is free software; you can redistribute
-  it and/or modify it under the terms of the MIT license.
-
 =cut