bundix 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bundix/source.rb +3 -2
- data/lib/bundix/version.rb +1 -1
- data/lib/bundix.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: 3faf8fe9a4c8fe4444f90a8bd22c4dbb1ccbcea1
|
4
|
+
data.tar.gz: fbd8ef63ffb26a412d6272cfb4fc6d24db5e5265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11f2fc22cf75095a582d283a92a667dd28bcf16163bd7904c0aaeab725669398f234cd05ccab3b895622d214db490b9850def133fc34310a56c2a57fbb01fb17
|
7
|
+
data.tar.gz: ef70c7ecc031803ffc77ce21dfa9e96ad0ef5a8023d43091efa4778ac73fcb35af0bfab7784248db67b15f639cf68865402c9132eb76dcd7fe481042f71034b4
|
data/lib/bundix/source.rb
CHANGED
@@ -73,8 +73,9 @@ class Bundix
|
|
73
73
|
def convert_git
|
74
74
|
revision = spec.source.options.fetch('revision')
|
75
75
|
uri = spec.source.options.fetch('uri')
|
76
|
-
|
77
|
-
|
76
|
+
output = nix_prefetch_git(uri, revision)
|
77
|
+
# FIXME: this is a hack, we should separate $stdout/$stderr in the sh call
|
78
|
+
hash = JSON.parse(output[/({[^}]+})\s*\z/m])['sha256']
|
78
79
|
fail "couldn't fetch hash for #{spec.name}-#{spec.version}" unless hash
|
79
80
|
puts "#{hash} => #{uri}" if $VERBOSE
|
80
81
|
|
data/lib/bundix/version.rb
CHANGED
data/lib/bundix.rb
CHANGED