bindeps 0.0.9 → 0.0.10

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: ba2bd3ec00323dc75661e16bc266e0b1d202b0f4
4
- data.tar.gz: e37fc32f751c0c180b2268fc211ef7e62db980f4
3
+ metadata.gz: eefc4b0d6a9dd94e3c31c67291affeb55384da4f
4
+ data.tar.gz: 189932cf2ea2d1d46219be9323aa679378b60f6a
5
5
  SHA512:
6
- metadata.gz: bae6e6b44f6b00bd1969179b0def3926ef8759b0dad9482ec856d18337fce9d48c3b53ce4f9b30a8fb50e11504a5d8666a30946620325f6b19606ebf2ddcfe2b
7
- data.tar.gz: 5ccf3296ea9243c62477354271bb9cf3311cce11d6f06f2a85e3a231079020a34fbe66c23148942abcb7db3a12b96899db976bd8329b97eb777f1a0621a54618
6
+ metadata.gz: 333fc976974665a29e85728a5c53eb3729709bf8e68401481b7e36b965f475a8ec8d83649d06e81d6ebf9aa69e413f44fa6223c47bfcb8cd417f88257655b462
7
+ data.tar.gz: 4e0eba4b5b947c57cf105e662e8a7e32b246d325941bc13c475da888657413e9c80119f93c296ad8a2eef881f5307c5e2f0162a3678f0ead7a01ddd055374246
data/README.md CHANGED
@@ -50,6 +50,7 @@ bowtie2:
50
50
  64bit:
51
51
  linux: http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/2.2.3/bowtie2-2.2.3-linux-x86_64.zip
52
52
  macosx: http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/2.2.3/bowtie2-2.2.3-macos-x86_64.zip
53
+ unpack: true
53
54
  ```
54
55
 
55
56
  Then as soon as your app is executed, let `bindeps` check for and install any missing dependencies.
@@ -60,7 +61,7 @@ require 'bindeps'
60
61
  Bindeps.require 'binary_dependencies.yaml'
61
62
  ```
62
63
 
63
- `bindeps` will check run the `version:command` for each dependency. If the return value of the command doesn't match a regular expression test against the `version:number` field, `bindeps` will download the file that matches your system architecture, unpack it and place the binary in your path. Specifically, it is added to the `bin` directory of your RubyGems installation. This means the binary will be in the PATH as long as this version of RubyGems is in use (which is ideal for gem dependencies). If the return value does match, `bindeps` will do nothing.
64
+ `bindeps` will check run the `version:command` for each dependency. If the return value of the command doesn't match a regular expression test against the `version:number` field, `bindeps` will download the file that matches your system architecture, unpack it unless `unpack` is set to false, and place the binary in your path. Specifically, it is added to the `bin` directory of your RubyGems installation. This means the binary will be in the PATH as long as this version of RubyGems is in use (which is ideal for gem dependencies). If the return value does match, `bindeps` will do nothing.
64
65
 
65
66
  ## Contributing
66
67
 
@@ -1,3 +1,3 @@
1
1
  module Bindeps
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/lib/bindeps.rb CHANGED
@@ -16,11 +16,12 @@ module Bindeps
16
16
  tmpdir = Dir.mktmpdir
17
17
  Dir.chdir(tmpdir) do
18
18
  dependencies.each_pair do |name, config|
19
+ unpack = config.key?('unpack') ? config['unpack'] : true;
19
20
  d = Dependency.new(name,
20
21
  config['binaries'],
21
22
  config['version'],
22
23
  config['url'],
23
- config['unpack'])
24
+ unpack)
24
25
  d.install_missing
25
26
  end
26
27
  end
@@ -36,11 +37,12 @@ module Bindeps
36
37
  missing = []
37
38
  Dir.chdir(tmpdir) do
38
39
  dependencies.each_pair do |name, config|
40
+ unpack = config.key?('unpack') ? config['unpack'] : true;
39
41
  d = Dependency.new(name,
40
42
  config['binaries'],
41
43
  config['version'],
42
44
  config['url'],
43
- config['unpack'])
45
+ unpack)
44
46
  missing << name unless d.all_installed?
45
47
  end
46
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bindeps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Smith-Unna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-01 00:00:00.000000000 Z
11
+ date: 2014-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: which_works