Skip to content

Commit

Permalink
fix for resolving the digest module
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbintz committed May 24, 2011
1 parent 492b5a4 commit 307d13a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/guard/listener.rb
@@ -1,4 +1,5 @@
require 'rbconfig'
require 'digest/sha1'

module Guard

Expand Down Expand Up @@ -53,7 +54,7 @@ def file_modified?(path)
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
Expand Down
2 changes: 1 addition & 1 deletion lib/guard/watcher.rb
Expand Up @@ -59,4 +59,4 @@ def call_action(matches)
end

end
end
end

0 comments on commit 307d13a

Please sign in to comment.