bindeps 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bindeps/version.rb +1 -1
- data/lib/bindeps.rb +9 -7
- 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: 2d139694ed83125acba603de859658473610860b
|
4
|
+
data.tar.gz: d4b66b83ac92b8e029c71dd94792da5be94b520d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db3978f648586fbbef508d33af5954dfb179b384bd71143c6aeae8627ec641b5721e7629a9072d1c6a74576a95fafd5b7af1858116295c26b5ec1dc8cafb0ca1
|
7
|
+
data.tar.gz: eaba7c6cc436ec4450529332accb477f009c0911a493c0d450701924fffb2e7b8eff08e2c353e70cd69b36278a32ecab8190c43e49feeb056aea31eb89217ed5
|
data/lib/bindeps/version.rb
CHANGED
data/lib/bindeps.rb
CHANGED
@@ -41,11 +41,10 @@ module Bindeps
|
|
41
41
|
|
42
42
|
def install_missing
|
43
43
|
unless all_installed?
|
44
|
-
@
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
end
|
44
|
+
puts "Binary dependency #{@name} not installed"
|
45
|
+
puts "It will now be downloaded and installed"
|
46
|
+
download
|
47
|
+
unpack
|
49
48
|
end
|
50
49
|
end
|
51
50
|
|
@@ -80,7 +79,7 @@ module Bindeps
|
|
80
79
|
Dir.chdir dir do
|
81
80
|
Dir['**/*'].each do |extracted|
|
82
81
|
if @binaries.include? File.basename(extracted)
|
83
|
-
install extracted
|
82
|
+
install(extracted) unless File.diretory?(extracted)
|
84
83
|
end
|
85
84
|
end
|
86
85
|
end
|
@@ -89,7 +88,10 @@ module Bindeps
|
|
89
88
|
|
90
89
|
def all_installed?
|
91
90
|
@binaries.each do |bin|
|
92
|
-
|
91
|
+
unless installed? bin
|
92
|
+
puts "required binary #{bin} is not installed"
|
93
|
+
return false
|
94
|
+
end
|
93
95
|
end
|
94
96
|
true
|
95
97
|
end
|