From: Jesse Luehrs Date: Thu, 4 Jul 2013 16:06:00 +0000 (-0400) Subject: dzilify and stuff X-Git-Tag: Try-Tiny-0.13~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=12b7dc6c414667cc6149670898a9a7444a2807a9;p=p5sagit%2FTry-Tiny.git dzilify and stuff --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e5666a1 --- /dev/null +++ b/.gitignore @@ -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 index 0000000..3c40626 --- /dev/null +++ b/.mailmap @@ -0,0 +1 @@ +Peter Rabbitson Peter Rabbitson diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e341769 --- /dev/null +++ b/.travis.yml @@ -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 --- 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 index 5923545..0000000 --- a/MANIFEST.SKIP +++ /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 index d2773b5..0000000 --- a/Makefile.PL +++ /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 index 0000000..dda9b94 --- /dev/null +++ b/dist.ini @@ -0,0 +1,25 @@ +name = Try-Tiny +author = Yuval Kogman +author = Jesse Luehrs +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 diff --git a/lib/Try/Tiny.pm b/lib/Try/Tiny.pm index 061e734..c3c74a9 100644 --- a/lib/Try/Tiny.pm +++ b/lib/Try/Tiny.pm @@ -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 and C to expect and handle exceptional @@ -612,15 +607,5 @@ L -=head1 AUTHOR - -Yuval Kogman Enothingmuch@woobling.orgE - -=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