Skip to content

Commit

Permalink
Hide monkey patching from PAUSE
Browse files Browse the repository at this point in the history
Prevent PAUSE from trying to index packages that are only used for monkey patching.  Will also prevent UNAUTHORIZED flag on metacpan.
  • Loading branch information
haarg committed Jul 18, 2014
1 parent db17562 commit a29ec98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Twig/XPath.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ use vars qw($VERSION);
$VERSION="0.02";

BEGIN
{ package XML::XPath::NodeSet;
{ package # hide from PAUSE
XML::XPath::NodeSet;
no warnings; # to avoid the "Subroutine sort redefined" message
# replace the native sort routine by a Twig'd one
sub sort
Expand All @@ -26,7 +27,8 @@ BEGIN
return $self;
}

package XML::XPathEngine::NodeSet;
package # hide from PAUSE
XML::XPathEngine::NodeSet;
no warnings; # to avoid the "Subroutine sort redefined" message
# replace the native sort routine by a Twig'd one
sub sort
Expand Down

0 comments on commit a29ec98

Please sign in to comment.