Sha256: f6fa952f429ee98cc0f753fcc7e45977cf6dad346ab12455e2e745a87d2efa1b

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'digest/sha2'

gemname         = :defi
ARGV[0]         = File.read('VERSION.semver').chomp if ARGV[0].nil?
built_gem_path  = "pkg/#{gemname}-#{ARGV[0]}.gem"
checksum        = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
checksum_path   = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"

File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
defi-1.1.5 pkg_checksum
defi-1.1.4 pkg_checksum