Sha256: 15ffcfb6dddacd637e805447610f78dd79f46ce7e6e22aaeb702fbd67d46ee5f

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

module Avro
  class Schema
    # Returns the SHA-256 fingerprint of the Resolution Canonical Form for the
    # schema as an Integer
    def sha256_resolution_fingerprint
      resolution_form = ResolutionCanonicalForm.to_resolution_form(self)
      Digest::SHA256.hexdigest(resolution_form).to_i(16)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
avro-resolution_canonical_form-0.3.0 lib/avro/resolution_fingerprint.rb
avro-resolution_canonical_form-0.2.1 lib/avro/resolution_fingerprint.rb
avro-resolution_canonical_form-0.2.0 lib/avro/resolution_fingerprint.rb
avro-resolution_canonical_form-0.2.0.rc0 lib/avro/resolution_fingerprint.rb
avro-resolution_canonical_form-0.1.0 lib/avro/resolution_fingerprint.rb
avro-resolution_canonical_form-0.1.0.rc0 lib/avro/resolution_fingerprint.rb