Sha256: 3c192a27a217329be1e9e8aac516d8d9b656421acd00a12c3910594100af9aa5

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8
module TestServer
  class Sha256Calculator < ChecksumCalculator
    private

    attr_reader :engine

    def compute_checksum(file)
      Checksum.new(
        algorithm: :sha256,
        prefix: 'SHA256',
        engine: Digest::SHA256,
        data: File.read(file.path),
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
test_server-0.5.2 lib/test_server/sha256_calculator.rb
test_server-0.5.1 lib/test_server/sha256_calculator.rb
test_server-0.5.0 lib/test_server/sha256_calculator.rb