Skip to content

Commit

Permalink
Add some extra modules
Browse files Browse the repository at this point in the history
Make sure POD encoding is UTF-8, so that the SYNOPSIS shows up right
Fix version dep of Math::BigInt
  • Loading branch information
SineSwiper committed Mar 18, 2013
1 parent 0d7a992 commit 906e91f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions lib/sanity.pm
Expand Up @@ -292,6 +292,13 @@ my @FLAGS = (
perl5i::latest
Toolkit
),
# new adds
qw(
Function::Parameters
Function::Parameters/strict
Switch::Plain
Quote::Code
),
);
my %FLAGS; # namespace abuse I know...
$FLAGS{$FLAGS[$_]} = $_ for (0 .. @FLAGS-1);
Expand Down Expand Up @@ -532,7 +539,7 @@ sub load_pragma {
# Specific exceptions

# (:param format for certain modules)
@options = map { ":$_" } @options if ($module =~ /^(?:open|indirect|charnames|autodie)$/);
@options = map { ":$_" } @options if ($module =~ /^(?:open|indirect|charnames|autodie|Function::Parameters)$/);
# ^V = $^V (like feature)
@options = map { $_ = ($_ eq '^V') ? $VER_PACK : $_ } @options;
# remove feature/HINT/unicode
Expand Down Expand Up @@ -725,6 +732,8 @@ sub decode_pragmahash {

__END__
=encoding utf-8
=head1 SYNOPSIS
use sanity;
Expand Down Expand Up @@ -917,7 +926,7 @@ fatal to older Perls. See L<https://rt.perl.org/rt3/Ticket/Display.html?id=1129
Certain pragmas really only exist to make sure the code is designed right. These
pragmas are deemed "optional" by C<sanity>. In other words, if the user doesn't
have them, it will just silently ignore them and move on. If C<sanity> thinks your
have them, it will just silently ignore them and move on. If C<sanity> thinks you're
an author/coder of the module itself (.git/svn/$ENV checks), it will give you a
warning that they are missing, but move on.
Expand Down Expand Up @@ -1112,6 +1121,11 @@ This feature was borrowed from L<strictures> and tweaked.
true
autolocale
Toolkit
Function::Parameters
Function::Parameters/strict
Switch::Plain
Quote::Code
Am I missing something? Let me know.
Expand Down
2 changes: 1 addition & 1 deletion lib/sanity/BaseCalc.pm
Expand Up @@ -6,7 +6,7 @@ package # hide from PAUSE

use strict;
use Carp;
use Math::BigInt;
use Math::BigInt 1.78; # 1.78 = round_mode => common
use Math::BigFloat;

# configure some basic big number stuff
Expand Down

0 comments on commit 906e91f

Please sign in to comment.