Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
13 lines (11 sloc) 478 Bytes
desc 'Creates a SHA512 checksum of the current version'
task :checksum do
checksums = File.expand_path('../../checksum', __FILE__)
name = "#{GEMSPEC.name}-#{GEMSPEC.version}.gem"
path = File.join(File.expand_path('../../pkg', __FILE__), name)
checksum_name = File.basename(path) + '.sha512'
checksum = Digest::SHA512.new.hexdigest(File.read(path))
File.open(File.join(checksums, checksum_name), 'w') do |handle|
handle.write(checksum)
end
end
You can’t perform that action at this time.