Project

bindeps

0.01
No commit activity in last 3 years
No release in over 3 years
binary dependency management for ruby gems
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 0.7
>= 4.7.5, ~> 4
>= 10.3.2, ~> 10.3
>= 1.2.1, ~> 1.2
>= 0.8.2, ~> 0.8
>= 0.9.7, ~> 0.9

Runtime

>= 1.0.2, ~> 1.0
 Project Readme

Bindeps

Build Status Dependency Status Coverage Status Code Climate Gem Version License

Simple binary dependency management for Ruby gems

Installation

$ gem install bindeps

Usage

Create a YAML file describing your dependencies as a dictionary. Read the bindeps YAML format specifications.

bowtie2:
  binaries:
    - bowtie2
    - bowtie2-align-l
    - bowtie2-align-s
    - bowtie2-build
    - bowtie2-build-l
    - bowtie2-build-s
    - bowtie2-inspect
    - bowtie2-inspect-l
    - bowtie2-inspect-s
  version:
    number: '2.2.3'
    command: 'bowtie2 --version'
  url:
    64bit:
      linux: http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/2.2.3/bowtie2-2.2.3-linux-x86_64.zip
      macosx: http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/2.2.3/bowtie2-2.2.3-macos-x86_64.zip
  unpack: true

Then as soon as your app is executed, let bindeps check for and install any missing dependencies.

require 'bindeps'

Bindeps.require 'binary_dependencies.yaml'

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.

Specifying an install directory

Simply pass the destination directory as the second argument to Bindeps::require():

Bindeps.require('deps.yaml', '/some/install/directory')

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes with tests (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request