This repository has been archived by the owner on Mar 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
- Loading branch information
Yorick Peterse
committed
Mar 9, 2013
1 parent
7a92e5b
commit daa816f
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
require 'rubygems/package_task' | ||
require 'digest/sha2' | ||
|
||
GEMSPEC = Gem::Specification.load('ruby-lint.gemspec') | ||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
desc 'Creates SHA512 checksums for all built Gems' | ||
task :checksum do | ||
checksums = File.expand_path('../../checksum', __FILE__) | ||
pattern = File.expand_path('../../pkg/*.gem', __FILE__) | ||
|
||
Dir.glob(pattern).each do |path| | ||
name = File.basename(path) + '.sha512' | ||
checksum = Digest::SHA512.new.hexdigest(File.read(path)) | ||
|
||
File.open(File.join(checksums, name), 'w') do |handle| | ||
handle.write(checksum) | ||
end | ||
end | ||
end |