Sha256: 7688564ed051827f06cbf60541621816572ec028b13d79722525733fede89351

Contents?: true

Size: 225 Bytes

Versions: 1

Compression:

Stored size: 225 Bytes

Contents

module Eff
  class Verifier
    class << self
      def check(file, checksum, algo = Digest::SHA1)
        file_digest = algo.file(File.expand_path(file)).hexdigest
        file_digest == checksum
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eff-0.0.1 lib/eff/verifier.rb