require 'digest/md5'

module Jekyll::Minibundle
  module AssetStamp
    def self.from_file(path)
      Digest::MD5.hexdigest(File.read(path))
    end
  end
end

require 'digest/md5'

module Jekyll::Minibundle
  module AssetStamp
    def self.from_file(path)
      Digest::MD5.file(path).hexdigest
    end
  end
end

Create asset stamp by reading file in chunks
Create asset stamp by reading file in chunks

Because an asset file can be really big, we should avoid reading it into
memory as a whole. We conserve memory by reading it in chunks.
