Sha256: bc45be209f9a6eaf6214a8a66702d3c4829299f021afb72d2255bbf97bdc4a91

Contents?: true

Size: 293 Bytes

Versions: 10

Compression:

Stored size: 293 Bytes

Contents

# frozen_string_literal: true

module SdrClient
  module Deposit
    module FileMetadataBuilderOperations
      # MD5 for this file.
      class MD5
        NAME = 'md5'
        def self.for(filepath:, **)
          Digest::MD5.file(filepath).hexdigest
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sdr-client-2.18.0 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.17.0 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.16.0 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.13.2 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.13.1 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.13.0 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.13.0.beta2 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.13.0.beta1 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.12.0 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
sdr-client-2.11.1 lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb