fix for resolving the digest module

This commit is contained in:
John Bintz 2011-05-23 21:36:51 -04:00
parent 492b5a4114
commit 307d13a517
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
require 'rbconfig'
require 'digest/sha1'
module Guard
@ -53,7 +54,7 @@ module Guard
end
def file_content_modified?(path)
sha1_checksum = Digest::SHA1.file(path).to_s
sha1_checksum = ::Digest::SHA1.file(path).to_s
if sha1_checksums_hash[path] != sha1_checksum
@sha1_checksums_hash[path] = sha1_checksum
true

View File

@ -59,4 +59,4 @@ module Guard
end
end
end
end