Skip to content

Commit

Permalink
Digest::SHA loading to Mojo::Util if not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-kimoto committed Aug 13, 2013
1 parent 302431d commit 394bada
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Gitprep.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ use Gitprep::Manager;
use Scalar::Util 'weaken';
use Validator::Custom;

# Digest::SHA loading to Mojo::Util if not loaded
{
package Mojo::Util;
eval {require Digest::SHA; import Digest::SHA qw(sha1 sha1_hex)};
}

our $VERSION = '1.0';

has 'dbi';
Expand Down

0 comments on commit 394bada

Please sign in to comment.