File: fix_pod.patch

package info (click to toggle)
libmonkey-patch-perl 0.03-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 152 kB
  • sloc: perl: 175; makefile: 2
file content (83 lines) | stat: -rw-r--r-- 2,334 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Description: Some of the infrastructure clases do not provide proper POD
 documentation, thus preventing the availability of man pages for them.
 This patch adds a minimal POD fragment describing the purpose of these
 infrastructural classes.
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=125746
Author: Ernesto Hernández-Novich <emhn@usb.ve>

--- a/lib/Monkey/Patch/Handle.pm
+++ b/lib/Monkey/Patch/Handle.pm
@@ -111,6 +111,20 @@
 
 1;
 
+=head1 NAME
+
+Monkey::Patch::Handle - Handle for monkey-patched functions
+
+=head1 DESCRIPTION
+
+Monkey::Patch::Handle keeps a stack of subroutine references for
+each name (Foo::bar::baz type name), so that the coderef that lives
+at that name is always the top of the stack, and if the wrappers get
+uninstalled in a funky order all hell doesn't break loose.
+
+You should never need to use this directly, so read L(Monkey::Patch)
+instead.
+
 =pod
 
 =begin Pod::Coverage
--- a/lib/Monkey/Patch/Handle/Class.pm
+++ b/lib/Monkey/Patch/Handle/Class.pm
@@ -18,6 +18,18 @@
 
 1;
 
+=head1 NAME
+
+Monkey::Patch::Handle::Class - Handle for monkey-patching classes
+
+=head1 DESCRIPTION
+
+Monkey::Patch::Handle::Class provides the default Monkey::Patch::Handle
+for monkey-patching a whole class.
+
+You should never need to use this directly, so read L(Monkey::Patch)
+instead.
+
 =pod
 
 =begin Pod::Coverage
--- a/lib/Monkey/Patch/Handle/Object.pm
+++ b/lib/Monkey/Patch/Handle/Object.pm
@@ -15,6 +15,18 @@
 
 1;
 
+=head1 NAME
+
+Monkey::Patch::Handle::Object - Handle for monkey-patching objects
+
+=head1 DESCRIPTION
+
+Monkey::Patch::Handle::Object provides the default Monkey::Patch::Handle
+for monkey-patching a particular object.
+
+You should never need to use this directly, so read L(Monkey::Patch)
+instead.
+
 =pod
 
 =begin Pod::Coverage
--- a/lib/Monkey/Patch.pm
+++ b/lib/Monkey/Patch.pm
@@ -85,7 +85,7 @@
 =head2 patch_package (package, subname, code)
 
 Wraps C<package>'s subroutine named <subname> with your <code>.  Your code
-recieves the original subroutine as its first argument, followed by any
+receives the original subroutine as its first argument, followed by any
 arguments the subroutine would have normally gotten.  You can always call the
 subroutine ref your received; if there was no subroutine by that name, the
 coderef will simply do nothing.