Sha256: b751925cd962d67dc7407e25647215c08caaa4a4199b72db2747cf27f54404fa

Contents?: true

Size: 297 Bytes

Versions: 10

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

module SdrClient
  module Deposit
    module FileMetadataBuilderOperations
      # SHA1 for this file.
      class SHA1
        NAME = 'sha1'
        def self.for(filepath:, **)
          Digest::SHA1.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/sha1.rb
sdr-client-2.17.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-2.16.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-2.13.2 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-2.13.1 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-2.13.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-2.13.0.beta2 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-2.13.0.beta1 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-2.12.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-2.11.1 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb