File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ puts "Found: #{gems.inspect}"
77raise 'Too Many Gems' if gems . length > 1
88
99built_gem_path = gems . first
10- checksum = Digest ::SHA512 . new . hexdigest ( File . read ( built_gem_path ) )
11- checksum_path = "checksum/#{ built_gem_path } .sha512"
12- File . open ( checksum_path , 'w' ) { |f | f . write ( checksum ) }
13- puts "You must now git add and commit '#{ checksum_path } '"
10+ checksum_512 = Digest ::SHA512 . new . hexdigest ( File . read ( built_gem_path ) )
11+ checksum_512_path = "checksum/#{ built_gem_path } .sha512"
12+ File . open ( checksum_512_path , 'w' ) { |f | f . write ( checksum_512 ) }
13+
14+ checksum_256 = Digest ::SHA256 . new . hexdigest ( File . read ( built_gem_path ) )
15+ checksum_256_path = "checksum/#{ built_gem_path } .sha256"
16+ File . open ( checksum_256_path , 'w' ) { |f | f . write ( checksum_256 ) }
17+
18+ puts "You must now git add and commit '#{ checksum_256_path } ' and '#{ checksum_512_path } '"
Original file line number Diff line number Diff line change 1+ d4c135e6773fc7747d38e1af60f4ced100aa8f328bbf1dc70c5ca376afcc8446
You can’t perform that action at this time.
0 commit comments