Skip to content

Commit

Permalink
dzilify and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Jul 4, 2013
1 parent 621db99 commit 12b7dc6
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 89 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Peter Rabbitson <[email protected]> Peter Rabbitson <[email protected]>
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
Expand Down
50 changes: 0 additions & 50 deletions MANIFEST.SKIP

This file was deleted.

22 changes: 0 additions & 22 deletions Makefile.PL

This file was deleted.

25 changes: 25 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name = Try-Tiny
author = Yuval Kogman <[email protected]>
author = Jesse Luehrs <[email protected]>
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
19 changes: 2 additions & 17 deletions lib/Try/Tiny.pm
Original file line number Diff line number Diff line change
@@ -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);

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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>[email protected]E<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

0 comments on commit 12b7dc6

Please sign in to comment.