Sha256: acc810d9692d31271cebf77eff992716054a48ff43a24e7507080d169a0df932

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

#!/usr/bin/env ruby

require 'digest/sha2'

gemname         = :opushon
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

1 entries across 1 versions & 1 rubygems

Version Path
opushon-0.2.1 pkg_checksum