Sha256: 092e67e23d088c50e2dab300f7d751f3b72917cdfa60760c11c17f5244580a8f

Contents?: true

Size: 317 Bytes

Versions: 100

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

require 'digest'

module SdrClient
  module Deposit
    module FileMetadataBuilderOperations
      # SHA1 for this file.
      class SHA1
        NAME = 'sha1'
        def self.for(file_path:, **)
          Digest::SHA1.file(file_path).hexdigest
        end
      end
    end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
sdr-client-0.43.1 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.43.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.42.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.41.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.40.1 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.40.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.39.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.38.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.37.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.36.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.35.1 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.35.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.34.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.33.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.32.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.31.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.30.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.29.0 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.28.4 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb
sdr-client-0.28.3 lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb