File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
- funding_uri
18
18
- mailing_list_uri
19
19
- Installation and usage documentation (@pboling )
20
+ - Checksums for released gems (@pboling )
21
+ ### Changed
22
+ - Gem releases are now cryptographically signed (@pboling )
20
23
21
24
## [ 1.0.3] - 2022-09-06
22
25
### Fixed
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'digest/sha2'
5
+ gems = Dir [ '*.gem' ]
6
+ puts "Found: #{ gems . inspect } "
7
+ raise 'Too Many Gems' if gems . length > 1
8
+
9
+ built_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 } '"
You can’t perform that action at this time.
0 commit comments