Karen Etheridge [Wed, 16 Mar 2016 02:06:28 +0000]
move the repository to p5sagit (github and shadowcat)
Karen Etheridge [Wed, 16 Mar 2016 02:05:19 +0000]
declare a minimum version for my bundle (and podweaver bundle)
Karen Etheridge [Wed, 16 Mar 2016 02:04:06 +0000]
remove stale version control link in pod
Karen Etheridge [Tue, 15 Mar 2016 23:42:45 +0000]
increment $VERSION after 0.26 release
Karen Etheridge [Tue, 15 Mar 2016 23:42:45 +0000]
Try-Tiny-0.26-TRIAL
- switch from finalizers using an array to a hash, to resolve segfaults when
creating a pseudofork on MSWin before perl 5.20 (Graham Knop,
karenetheridge/Sub-Name/#3)
Karen Etheridge [Tue, 15 Mar 2016 23:21:39 +0000]
provide proper references to pull requests from older repositories
Karen Etheridge [Tue, 15 Mar 2016 23:09:02 +0000]
give credit by real name, when known
Karen Etheridge [Tue, 15 Mar 2016 23:07:03 +0000]
Changes entry for PR#3
Graham Knop [Tue, 15 Mar 2016 21:46:31 +0000]
use a hash rather than array for finalizers to fix segfault
Localizing an array entry causes segfaults when creating a pseudofork on
Win32 perl < 5.20.
Karen Etheridge [Mon, 22 Feb 2016 20:17:22 +0000]
increment $VERSION after 0.25 release
Karen Etheridge [Mon, 22 Feb 2016 20:17:22 +0000]
Try-Tiny-0.25-TRIAL
- "finally" blocks are now run for all methods of leaving the try block
(including via exit, goto) (mauke, RT#112099)
Karen Etheridge [Fri, 19 Feb 2016 23:07:41 +0000]
remove unneeded shebangs
Karen Etheridge [Mon, 22 Feb 2016 19:45:57 +0000]
Changes entry for PR#1
Lukas Mai [Sun, 21 Feb 2016 19:36:19 +0000]
use a lexical variable to prevent external fondling
Lukas Mai [Fri, 19 Feb 2016 17:24:53 +0000]
always run finally blocks no matter how we leave the try block (RT #112099)
Karen Etheridge [Tue, 22 Dec 2015 01:27:39 +0000]
add a check that we don't accidentally introduce new unwanted prereqs
Karen Etheridge [Tue, 22 Dec 2015 00:34:13 +0000]
update tooling to avoid detecting the optional use of perl 5.010
Karen Etheridge [Fri, 11 Dec 2015 05:20:43 +0000]
increment $VERSION after 0.24 release
Karen Etheridge [Fri, 11 Dec 2015 05:20:42 +0000]
Try-Tiny-0.24
- fix prereq errors in 0.23
Karen Etheridge [Fri, 11 Dec 2015 05:16:12 +0000]
move Sub::Util prereq to suggests
Karen Etheridge [Fri, 11 Dec 2015 05:15:59 +0000]
strip perl 5.010 test prereq
Karen Etheridge [Fri, 11 Dec 2015 04:05:23 +0000]
increment $VERSION after 0.23 release
Karen Etheridge [Fri, 11 Dec 2015 04:05:22 +0000]
Try-Tiny-0.23
- fix syntax of example code (Rudolf Leermakers, PR#22)
- 'perl' removed from prerequisite recommendations, to avoid tripping up
CPAN clients (Graham Knop)
- Sub::Util is used preferentially to Sub::Name in most cases (Graham Knop,
PR#27)
Karen Etheridge [Fri, 11 Dec 2015 04:02:54 +0000]
remove xt/author/clean-namespaces.t - Carp imports not cleaned up; _subname glob left behind
Karen Etheridge [Fri, 11 Dec 2015 03:59:35 +0000]
remove xt/release/minimum-version.t that fails on t/*when.t
Karen Etheridge [Fri, 11 Dec 2015 03:51:02 +0000]
fix spelling tests
Karen Etheridge [Fri, 11 Dec 2015 03:47:05 +0000]
tighten up .gitignore entries
Karen Etheridge [Fri, 11 Dec 2015 03:45:59 +0000]
update copyright data
Karen Etheridge [Fri, 11 Dec 2015 03:40:40 +0000]
switch to my bundle
Karen Etheridge [Fri, 11 Dec 2015 03:25:51 +0000]
travis now supports 5.22
Karen Etheridge [Fri, 11 Dec 2015 03:25:43 +0000]
Changes entries for next release
Graham Knop [Thu, 19 Nov 2015 20:18:57 +0000]
prefer Sub::Util to Sub::Name
Sub::Util can name subs as well, and is in core in newer versions. Try
to use it instead of Sub::Name, although prefer Sub::Name if it is
already loaded.
Each module has some edge cases though. Sub::Name has a memory leak
prior to 0.08. Some systems can end up with a version of Sub::Util that
doesn't have the set_subname sub. Check for these cases as well when
picking a module to use.
Also optimize out the sub naming if neither module is available.
Graham Knop [Thu, 19 Nov 2015 20:15:40 +0000]
remove perl from test recommendations
Newer versions of CPAN.pm install recommendations by default. They
treat them as hard dependencies. Since a dependency on perl is
impossible for CPAN.pm to fulfill, it will refuse to install Try::Tiny
on perl 5.8 with the default settings.
There isn't really anything useful to be done with a recommendation on a
newer perl version, so just remove it.
Jesse Luehrs [Sat, 17 Jan 2015 19:51:17 +0000]
Merge pull request #22 from hatsuseno/master
Minor documentation fix; assign actual strings, not hashrefs.
Rudolf Leermakers [Tue, 6 Jan 2015 13:22:44 +0000]
Minor documentation fix; assign actual strings, not hashrefs.
Jesse Luehrs [Fri, 12 Dec 2014 16:57:16 +0000]
update travis
Jesse Luehrs [Fri, 12 Dec 2014 16:26:40 +0000]
Merge pull request #21 from cm-perl/master
Typo in comment
cm-perl [Fri, 12 Dec 2014 16:17:10 +0000]
Typo in comment
Jesse Luehrs [Tue, 29 Apr 2014 19:40:02 +0000]
changelog
Jesse Luehrs [Tue, 29 Apr 2014 19:30:33 +0000]
fix tabs
Jesse Luehrs [Tue, 29 Apr 2014 19:20:42 +0000]
add Sub::Name and perl 5.010 to test recommendations (fixes #18)
Jesse Luehrs [Tue, 15 Apr 2014 13:46:36 +0000]
changelog
Jesse Luehrs [Tue, 15 Apr 2014 13:33:01 +0000]
sigh
Jesse Luehrs [Tue, 15 Apr 2014 13:22:11 +0000]
changelog
Jesse Luehrs [Tue, 15 Apr 2014 13:20:45 +0000]
packaging
Jesse Luehrs [Tue, 15 Apr 2014 13:19:45 +0000]
skip test if Capture::Tiny is too old (Martin Popel, fixes #17)
Jesse Luehrs [Fri, 21 Mar 2014 21:20:24 +0000]
changelog
Jesse Luehrs [Fri, 21 Mar 2014 21:19:19 +0000]
changelog
Jesse Luehrs [Fri, 21 Mar 2014 20:19:27 +0000]
Merge pull request #15 from Flimm/master
Add warning to POD about try/finally
David Lowe [Fri, 7 Mar 2014 17:33:54 +0000]
Add warning to POD about try/finally
try/finally suppresses errors, which is unexpected behaviour if you come
from another programming language.
Jesse Luehrs [Thu, 23 Jan 2014 01:52:51 +0000]
changelog
Jesse Luehrs [Thu, 23 Jan 2014 01:48:15 +0000]
changelog
Jesse Luehrs [Thu, 23 Jan 2014 01:36:30 +0000]
fix test plan
Jesse Luehrs [Thu, 23 Jan 2014 01:34:37 +0000]
Merge pull request #11 from ilmari/global-destruction
Import 'import' instead of inheriting it
Jesse Luehrs [Thu, 23 Jan 2014 01:30:47 +0000]
packaging stuff
Jesse Luehrs [Thu, 23 Jan 2014 00:42:20 +0000]
Merge pull request #13 from anaxagoras/master
Better docs on capturing success with catch block
awalker [Wed, 22 Jan 2014 19:02:56 +0000]
second example now behaves the same as the first
anaxagoras [Tue, 21 Jan 2014 16:47:24 +0000]
Better docs on capturing success with catch block
While there is a note that calls it out below, I believe the behavior and usage of capturing success when also using a catch{} block is sufficiently different to the example that it merits its own example in the same code block. My rationale is twofold:
1) Because it is sufficiently different in behavior, giving an example goes a long way towards understanding.
2) Because this is a critical feature to have fail and it might be easy for someone reading the docs to digest the example and move on before reading the note below (which is unemphasized), it is best to have the second code example alongside the first with a meaningful name so that they are both digested at the same time.
Dagfinn Ilmari Mannsåker [Thu, 24 Oct 2013 22:02:43 +0000]
Test loading during global destruction
Dagfinn Ilmari Mannsåker [Sun, 20 Oct 2013 12:53:36 +0000]
Import 'import' instead of inheriting it
This fixes errors when the first use of Try::Tiny happens during global
destruction on Perl >= 5.10.0.
The problem is that the inheritance caches don't get invalidated during
global destruction, and base.pm skips classes that the calling class
already inherits from, thus populating an initial empty inheritance
cache, which doesn't get invalidated when it adds the class to @ISA.
Jesse Luehrs [Sat, 17 Aug 2013 18:33:25 +0000]
changelog
Jesse Luehrs [Sat, 17 Aug 2013 18:33:08 +0000]
changelog
Jesse Luehrs [Sat, 17 Aug 2013 18:31:25 +0000]
Merge pull request #10 from pghmcfc/old-test-more
Avoid dependency on Test::More 0.88
Paul Howarth [Sat, 17 Aug 2013 18:02:57 +0000]
The use of done_testing implies a dependency of Test::More 0.88 or
later. To avoid this, and provide compatibility with older versions,
remove done_testing and supply a test plan.
To ensure that the end of the test is reached (rather than exiting
early due to an error), I added an additional "pass" test to bump
the test count.
Jesse Luehrs [Fri, 16 Aug 2013 17:29:19 +0000]
changelog
Jesse Luehrs [Fri, 16 Aug 2013 18:30:10 +0000]
changelog
Jesse Luehrs [Fri, 16 Aug 2013 17:21:18 +0000]
Merge pull request #9 from haarg/gd-fork-bug
work around perl bug where pads may be reused in cleanup after fork
Graham Knop [Fri, 16 Aug 2013 06:08:22 +0000]
work around perl bug where pads may be reused in cleanup after fork
During global destruction triggered by a explicit exit after forking,
perl may re-use the pad for try in a nested call in a DESTROY. All
variables used must be explictly initialized to avoid this.
Jesse Luehrs [Wed, 10 Jul 2013 15:50:24 +0000]
changelog
Jesse Luehrs [Wed, 10 Jul 2013 15:15:07 +0000]
changelog
Jesse Luehrs [Wed, 10 Jul 2013 15:14:44 +0000]
remove accidental Sub::Name test dep
Jesse Luehrs [Tue, 9 Jul 2013 21:05:36 +0000]
Merge pull request #8 from markstos/master
fix missing semicolon in docs.
Mark Stosberg [Tue, 9 Jul 2013 21:02:48 +0000]
Add missing semicolon in docs
This looked wrong without a semicolon, so I tested it. Sure enough, it was a syntax error without it, and ran as expected with it.
Jesse Luehrs [Mon, 8 Jul 2013 21:58:58 +0000]
changelog
Jesse Luehrs [Mon, 8 Jul 2013 21:58:22 +0000]
changelog
Jesse Luehrs [Mon, 8 Jul 2013 21:57:14 +0000]
make this consistent
Mark Fowler [Fri, 5 Jul 2013 19:40:46 +0000]
fix line endings
Mark Fowler [Fri, 5 Jul 2013 19:06:03 +0000]
tests for finally name too
Mark Fowler [Fri, 5 Jul 2013 18:42:56 +0000]
tests for naming
Mark Fowler [Wed, 25 Jul 2012 15:13:56 +0000]
Change caller to show blocks belonging to our caller
Mark Fowler [Wed, 25 Jul 2012 14:59:10 +0000]
name the try, catch and finally blocks
Jesse Luehrs [Fri, 5 Jul 2013 19:19:59 +0000]
changelog
Jesse Luehrs [Fri, 5 Jul 2013 18:51:07 +0000]
also die on catch/finally in scalar context (RT#81070)
Jesse Luehrs [Thu, 4 Jul 2013 16:23:38 +0000]
changelog
Jesse Luehrs [Thu, 4 Jul 2013 16:11:09 +0000]
eh, don't test 5.8
Jesse Luehrs [Thu, 4 Jul 2013 16:02:36 +0000]
update test counts for removing use_ok
Jesse Luehrs [Thu, 4 Jul 2013 16:12:56 +0000]
update this link too
Jesse Luehrs [Thu, 4 Jul 2013 16:10:02 +0000]
stop using use_ok, it's pointless
Jesse Luehrs [Thu, 4 Jul 2013 16:06:00 +0000]
dzilify and stuff
Jesse Luehrs [Thu, 4 Jul 2013 14:32:25 +0000]
Merge pull request #7 from ribasushi/master
Various housekeeping etc
Peter Rabbitson [Thu, 4 Jul 2013 10:58:38 +0000]
Fix linkage brainfart from
2245f1ae
Peter Rabbitson [Thu, 4 Jul 2013 09:42:24 +0000]
The construct introduced in
2b0d579d8 confuses perl 5.6 - simplify
Peter Rabbitson [Thu, 4 Jul 2013 08:25:02 +0000]
Make sure users are properly notified of (useless) exceptions in finally blocks
It is possible to rewrite Try::Tiny to invoke the finally blocks without
the use of scope guards, however to do this an extra eval frame around
catch will have to be introduced. Furthermore code in the wild may rely
on the "ignorance" of a finally() exception.
In short - the proper fix may no longer be feasible due to backcompat
issues, therefore the current warning seems like the only feasible
compromise.
Ricardo Signes [Sat, 15 Sep 2012 02:15:31 +0000]
correct prototypes in docs
Peter Rabbitson [Thu, 4 Jul 2013 07:02:18 +0000]
Clarify exception on unexpected try() arguments
Peter Rabbitson [Thu, 4 Jul 2013 06:45:13 +0000]
Sanity check erroneous invocations
Peter Rabbitson [Thu, 4 Jul 2013 05:48:56 +0000]
Fix broken link to slides (RT#55659)
Peter Rabbitson [Thu, 4 Jul 2013 05:06:06 +0000]
We already explicitly save the value of $@ - local()ization is not needed
511c05cae introduced an extension to try{} - unlike in an eval{} a try{}
block has access to the previous value of $@. Since we already have a copy,
we can do a manual restore of $@ instead of the expensive local() mechanism.
Results in a 7% speedup of bare try{} on 5.16
Peter Rabbitson [Thu, 4 Jul 2013 04:19:38 +0000]
This is no longer a TODO, but given the experimental nature not ready to be documented
https://metacpan.org/module/SHAY/perl-5.17.3/pod/perldelta.pod#given-now-aliases-the-global-_
Peter Rabbitson [Thu, 4 Jul 2013 04:12:42 +0000]
"Modernize" code a bit
Turn on warnings everywhere (5.6 being lowest target)
Silence experimental warnings in given/when tests