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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d139694ed83125acba603de859658473610860b
4
- data.tar.gz: d4b66b83ac92b8e029c71dd94792da5be94b520d
3
+ metadata.gz: 5904441f32ce8d65d84bda86d3131362f7de2cd3
4
+ data.tar.gz: b999a50aad40268d004c0131c8ee0e9778c24bb7
5
5
  SHA512:
6
- metadata.gz: db3978f648586fbbef508d33af5954dfb179b384bd71143c6aeae8627ec641b5721e7629a9072d1c6a74576a95fafd5b7af1858116295c26b5ec1dc8cafb0ca1
7
- data.tar.gz: eaba7c6cc436ec4450529332accb477f009c0911a493c0d450701924fffb2e7b8eff08e2c353e70cd69b36278a32ecab8190c43e49feeb056aea31eb89217ed5
6
+ metadata.gz: c1e25826cdec7839d764214787c23a0567047c822d7350c197aada7e952da413e56a35a85db5ee0ed911ae44d95a24aa364694370b4e0769d361358da1443a9d
7
+ data.tar.gz: b1500f07ca74a022b7816e81ad3cc438edc0d15d6eb6956f42e897ce23392c4395ea347794a9ca9543867a04799f8cb073f27fc1e54f3d9e9d5619b6ac39d2ae
@@ -1,3 +1,3 @@
1
1
  module Bindeps
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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 "Binary dependency #{@name} not installed"
45
- puts "It will now be downloaded and installed"
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 $?.to_i == 0 && ret.equal?(@version)
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
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Smith-Unna