bindeps 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71de1b82333ef1c174d78a1403332fafebb3457f
4
- data.tar.gz: 55f2630996e03564af371d223d861608baf23bd4
3
+ metadata.gz: 2d139694ed83125acba603de859658473610860b
4
+ data.tar.gz: d4b66b83ac92b8e029c71dd94792da5be94b520d
5
5
  SHA512:
6
- metadata.gz: 2a4d0b47dc2436bd811aa4e847a9fd175eadd6e630380f7cfd29cc799d29fd5006df671f5e7344cc5e0361d42a2d33c8ff5da1d7b7b0b9ee69e86efa2fb524b7
7
- data.tar.gz: 8ec3c3ee31219d8e4ceb91adefa8e98274b9bff677d4cd441ae189391d1362aae3bdc8e97ef5a5970a7d5ba36eb4e44bfdc23dd8fcd54e2a5ee034ab33e6f13a
6
+ metadata.gz: db3978f648586fbbef508d33af5954dfb179b384bd71143c6aeae8627ec641b5721e7629a9072d1c6a74576a95fafd5b7af1858116295c26b5ec1dc8cafb0ca1
7
+ data.tar.gz: eaba7c6cc436ec4450529332accb477f009c0911a493c0d450701924fffb2e7b8eff08e2c353e70cd69b36278a32ecab8190c43e49feeb056aea31eb89217ed5
@@ -1,3 +1,3 @@
1
1
  module Bindeps
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/bindeps.rb CHANGED
@@ -41,11 +41,10 @@ module Bindeps
41
41
 
42
42
  def install_missing
43
43
  unless all_installed?
44
- @binaries.each do |bin|
45
- download
46
- unpack
47
- return
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
- return false unless installed? bin
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bindeps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Smith-Unna