diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-04-29 09:56:54 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-04-29 09:56:54 -0500 |
commit | 5cc4e87315bb2f8e2242d75395ee152852b8ddaf (patch) | |
tree | 7c4735320691e77dff16e0cdcdebbb757d2e705d | |
parent | 9d39efdf67311a0a6da252e8ad70bd229858272e (diff) | |
download | bundler-seg-updater-read-comment.tar.gz |
[Updater] Add a comment why we use IO.readseg-updater-read-comment
-rw-r--r-- | lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb | 3 |
1 files changed, 3 insertions, 0 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 6142afb7c5..f19b1df3d7 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 @@ -61,6 +61,9 @@ class Bundler::CompactIndexClient def checksum_for_file(path) return nil unless path.file? + # This must use IO.read instead of Digest.file().hexdigest + # because we need to preserve \n line endings on windows when calculating + # the checksum Digest::MD5.hexdigest(IO.read(path)) end end |