Skip to content

Commit 532c1d9

Browse files
committed
🔒️ Align checksums directory with rake build:checksum
1 parent 490c875 commit 532c1d9

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111
### Removed
1212

13+
## [1.0.5] - 2022-09-20 ([tag][1.0.5t])
14+
### Added
15+
- SHA 256 Checksum for release (in addition to SHA 512) (@pboling)
16+
- Aligned checksums directory name with `rake build:checksum` task
17+
1318
## [1.0.4] - 2022-09-19 ([tag][1.0.4t])
1419
### Added
1520
- Certificate for signing gem releases (@pboling)
1621
- Gemspec metadata (@pboling)
1722
- funding_uri
1823
- mailing_list_uri
1924
- Installation and usage documentation (@pboling)
20-
- Checksums for released gems (@pboling)
25+
- SHA 512 Checksum for release (@pboling)
2126
### Changed
2227
- Gem releases are now cryptographically signed (@pboling)
2328

bin/checksum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ raise 'Too Many Gems' if gems.length > 1
88

99
built_gem_path = gems.first
1010
checksum_512 = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
11-
checksum_512_path = "checksum/#{built_gem_path}.sha512"
11+
checksum_512_path = "checksums/#{built_gem_path}.sha512"
1212
File.open(checksum_512_path, 'w') { |f| f.write(checksum_512) }
1313

1414
checksum_256 = Digest::SHA256.new.hexdigest(File.read(built_gem_path))
15-
checksum_256_path = "checksum/#{built_gem_path}.sha256"
15+
checksum_256_path = "checksums/#{built_gem_path}.sha256"
1616
File.open(checksum_256_path, 'w') { |f| f.write(checksum_256) }
1717

1818
puts "You must now git add and commit '#{checksum_256_path}' and '#{checksum_512_path}'"

0 commit comments

Comments
 (0)