fix for resolving the digest module
This commit is contained in:
parent
492b5a4114
commit
307d13a517
@ -1,4 +1,5 @@
|
|||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
|
require 'digest/sha1'
|
||||||
|
|
||||||
module Guard
|
module Guard
|
||||||
|
|
||||||
@ -53,7 +54,7 @@ module Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
def file_content_modified?(path)
|
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
|
if sha1_checksums_hash[path] != sha1_checksum
|
||||||
@sha1_checksums_hash[path] = sha1_checksum
|
@sha1_checksums_hash[path] = sha1_checksum
|
||||||
true
|
true
|
||||||
|
@ -59,4 +59,4 @@ module Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user