Andrea Veri 61375b8
# Some of the infrastructure clases do not provide proper POD
Andrea Veri 61375b8
# documentation, thus preventing the availability of man pages for them.
Andrea Veri 61375b8
# This patch adds a minimal POD fragment describing the purpose of these
Andrea Veri 61375b8
# infrastructural classes.
Andrea Veri 61375b8
# Forwarded: https://rt.cpan.org/Ticket/Display.html?id=125746
Andrea Veri 61375b8
# Author: Ernesto Hernández-Novich <emhn@usb.ve>
Andrea Veri 61375b8
--- a/lib/Monkey/Patch/Handle.pm
Andrea Veri 61375b8
+++ b/lib/Monkey/Patch/Handle.pm
Andrea Veri 61375b8
@@ -111,6 +111,20 @@
Andrea Veri 61375b8
 
Andrea Veri 61375b8
 1;
Andrea Veri 61375b8
 
Andrea Veri 61375b8
+=head1 NAME
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+Monkey::Patch::Handle - Handle for monkey-patched functions
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+=head1 DESCRIPTION
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+Monkey::Patch::Handle keeps a stack of subroutine references for
Andrea Veri 61375b8
+each name (Foo::bar::baz type name), so that the coderef that lives
Andrea Veri 61375b8
+at that name is always the top of the stack, and if the wrappers get
Andrea Veri 61375b8
+uninstalled in a funky order all hell doesn't break loose.
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+You should never need to use this directly, so read L(Monkey::Patch)
Andrea Veri 61375b8
+instead.
Andrea Veri 61375b8
+
Andrea Veri 61375b8
 =pod
Andrea Veri 61375b8
 
Andrea Veri 61375b8
 =begin Pod::Coverage
Andrea Veri 61375b8
--- a/lib/Monkey/Patch/Handle/Class.pm
Andrea Veri 61375b8
+++ b/lib/Monkey/Patch/Handle/Class.pm
Andrea Veri 61375b8
@@ -18,6 +18,18 @@
Andrea Veri 61375b8
 
Andrea Veri 61375b8
 1;
Andrea Veri 61375b8
 
Andrea Veri 61375b8
+=head1 NAME
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+Monkey::Patch::Handle::Class - Handle for monkey-patching classes
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+=head1 DESCRIPTION
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+Monkey::Patch::Handle::Class provides the default Monkey::Patch::Handle
Andrea Veri 61375b8
+for monkey-patching a whole class.
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+You should never need to use this directly, so read L(Monkey::Patch)
Andrea Veri 61375b8
+instead.
Andrea Veri 61375b8
+
Andrea Veri 61375b8
 =pod
Andrea Veri 61375b8
 
Andrea Veri 61375b8
 =begin Pod::Coverage
Andrea Veri 61375b8
--- a/lib/Monkey/Patch/Handle/Object.pm
Andrea Veri 61375b8
+++ b/lib/Monkey/Patch/Handle/Object.pm
Andrea Veri 61375b8
@@ -15,6 +15,18 @@
Andrea Veri 61375b8
 
Andrea Veri 61375b8
 1;
Andrea Veri 61375b8
 
Andrea Veri 61375b8
+=head1 NAME
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+Monkey::Patch::Handle::Object - Handle for monkey-patching objects
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+=head1 DESCRIPTION
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+Monkey::Patch::Handle::Object provides the default Monkey::Patch::Handle
Andrea Veri 61375b8
+for monkey-patching a particular object.
Andrea Veri 61375b8
+
Andrea Veri 61375b8
+You should never need to use this directly, so read L(Monkey::Patch)
Andrea Veri 61375b8
+instead.
Andrea Veri 61375b8
+
Andrea Veri 61375b8
 =pod
Andrea Veri 61375b8
 
Andrea Veri 61375b8
 =begin Pod::Coverage
Andrea Veri 61375b8
--- a/lib/Monkey/Patch.pm
Andrea Veri 61375b8
+++ b/lib/Monkey/Patch.pm
Andrea Veri 61375b8
@@ -85,7 +85,7 @@
Andrea Veri 61375b8
 =head2 patch_package (package, subname, code)
Andrea Veri 61375b8
 
Andrea Veri 61375b8
 Wraps C<package>'s subroutine named <subname> with your .  Your code
Andrea Veri 61375b8
-recieves the original subroutine as its first argument, followed by any
Andrea Veri 61375b8
+receives the original subroutine as its first argument, followed by any
Andrea Veri 61375b8
 arguments the subroutine would have normally gotten.  You can always call the
Andrea Veri 61375b8
 subroutine ref your received; if there was no subroutine by that name, the
Andrea Veri 61375b8
 coderef will simply do nothing.