diff options
author | Matt Wrock <matt@mattwrock.com> | 2016-04-28 22:48:24 -0700 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2016-04-28 22:48:24 -0700 |
commit | 700a10b1f7ec9451999927504b01c077fa00f290 (patch) | |
tree | 17d8a6e8327b857e59701fa0d8a1cb32cbb103a4 | |
parent | 83d7963850cbb1acbcf352767e8f831e442dc788 (diff) | |
download | bundler-700a10b1f7ec9451999927504b01c077fa00f290.tar.gz |
compute index checksums with IO.read instead of file method to avout carriage returns on windows
-rw-r--r-- | lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb b/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb index a3cdc55140..2fba7e7625 100644 --- a/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb +++ b/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb @@ -49,7 +49,7 @@ class Bundler::CompactIndexClient def checksum_for_file(path) return nil unless path.file? - Digest::MD5.file(path).hexdigest + Digest::MD5.hexdigest(IO.read(path)) end end end |