Skip to content

Commit

Permalink
Add checksum task
Browse files Browse the repository at this point in the history
  • Loading branch information
pointlessone committed Aug 1, 2020
1 parent 8ff67ad commit f9cc560
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ task :console do
end

RuboCop::RakeTask.new

task :checksum do
require 'digest/sha2'
built_gem_path = "prawn-#{Prawn::VERSION}.gem"
checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
checksum_path = "checksums/#{built_gem_path}.sha512"
File.write(checksum_path, checksum)
end

0 comments on commit f9cc560

Please sign in to comment.