bindeps 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bindeps/version.rb +1 -1
- data/lib/bindeps.rb +9 -3
- 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: 5904441f32ce8d65d84bda86d3131362f7de2cd3
|
4
|
+
data.tar.gz: b999a50aad40268d004c0131c8ee0e9778c24bb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1e25826cdec7839d764214787c23a0567047c822d7350c197aada7e952da413e56a35a85db5ee0ed911ae44d95a24aa364694370b4e0769d361358da1443a9d
|
7
|
+
data.tar.gz: b1500f07ca74a022b7816e81ad3cc438edc0d15d6eb6956f42e897ce23392c4395ea347794a9ca9543867a04799f8cb073f27fc1e54f3d9e9d5619b6ac39d2ae
|
data/lib/bindeps/version.rb
CHANGED
data/lib/bindeps.rb
CHANGED
@@ -41,8 +41,8 @@ module Bindeps
|
|
41
41
|
|
42
42
|
def install_missing
|
43
43
|
unless all_installed?
|
44
|
-
puts "
|
45
|
-
puts "
|
44
|
+
puts "binary dependency #{@name} not installed"
|
45
|
+
puts "it will now be downloaded and installed"
|
46
46
|
download
|
47
47
|
unpack
|
48
48
|
end
|
@@ -100,9 +100,15 @@ module Bindeps
|
|
100
100
|
path = Which.which(bin)
|
101
101
|
if path
|
102
102
|
ret = `#{@version_cmd}`.strip
|
103
|
-
if
|
103
|
+
if ret && (/#{@version}/ =~ ret)
|
104
104
|
return path
|
105
|
+
else
|
106
|
+
puts "installed version should have been #{@version}"
|
107
|
+
puts "but it was:"
|
108
|
+
puts ret
|
105
109
|
end
|
110
|
+
else
|
111
|
+
puts "binary #{bin} is not in the PATH"
|
106
112
|
end
|
107
113
|
false
|
108
114
|
end
|