pkgforge 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pkgforge/components/deps.rb +9 -6
- data/lib/pkgforge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41ffe55f7c506d38a4be46bfbcb89b7b7ec49f79
|
4
|
+
data.tar.gz: 6146d7d7d1a8c88165deb5bc079a85c026a81570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4046b67e1b623ddd4662d199aa615fd4514fddf28beee96663b5485ab3e7284bf792b186b10f5eb8aa13d34ace973f1b7f5b002e5ae9ae9eb65683501cba1bb5
|
7
|
+
data.tar.gz: 7360342df27396a35cf130d30303c92ff7cbff37f01eea9f51b0155dc57270825bbf2fc060e6be1fa501af96a40fa3b91b381c0f78a5bf637b0c93d7e315f0d2
|
@@ -52,13 +52,16 @@ module PkgForge
|
|
52
52
|
|
53
53
|
Contract String, Maybe[String] => nil
|
54
54
|
def verify_file(file, expected = nil)
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
case expected
|
56
|
+
when nil
|
57
|
+
raise "No checksum provided for #{file}"
|
58
|
+
when 'skip'
|
59
|
+
puts "Skipping checksum for #{file}"
|
60
|
+
else
|
61
|
+
actual = Digest::SHA256.file(file).hexdigest
|
62
|
+
return if actual == expected
|
63
|
+
raise "Checksum fail for #{file}: #{actual} (actual) != #{expected} (expected)" # rubocop:disable Metrics/LineLength
|
58
64
|
end
|
59
|
-
actual = Digest::SHA256.file(file).hexdigest
|
60
|
-
return if actual == expected
|
61
|
-
raise "Checksum fail for #{file}: #{actual} (actual) != #{expected} (expected)" # rubocop:disable Metrics/LineLength
|
62
65
|
end
|
63
66
|
|
64
67
|
Contract String, String => nil
|
data/lib/pkgforge/version.rb
CHANGED