Skip to content

Commit

Permalink
forced UTF-8 encoding of md5 for integrity_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
adelevie committed Jun 9, 2013
1 parent 4aebb3d commit dedeec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ task :integrity_yaml do
path_without_spec = path.gsub("spec/","")
data[path_without_spec] = {
:bytes => File.size(path),
:md5 => Digest::MD5.hexdigest(File.read(path))
:md5 => Digest::MD5.file(path).hexdigest.encode('UTF-8')
} if File.file?(path)
end
File.open("spec/integrity.yml","wb") { |f| f.write YAML.dump(data)}
Expand Down

0 comments on commit dedeec2

Please sign in to comment.