Sha256: 607a433f9cb82fd193e503a854a23edd6d9a43c0425dccc2273813567d5c75d2
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
# Solve [![Build Status](https://secure.travis-ci.org/reset/solve.png?branch=master)](http://travis-ci.org/reset/solve) [![Dependency Status](https://gemnasium.com/reset/solve.png?travis)](https://gemnasium.com/reset/solve) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/reset/solve) A Ruby constraint solver ## Installation $ gem install solve ## Usage Create a new graph graph = Graph.new Add an artifact to the graph graph.artifacts("nginx", "1.0.0") Now add another artifact that has a dependency graph.artifacts("mysql", "1.2.4").depends("openssl", "~> 1.0.0") Dependencies can be chained, too graph.artifacts("ntp", "1.0.0").depends("build-essential").depends("yum") And now solve the graph with some demands Solve.it!(graph, ['nginx', '>= 0.100.0']) ### Removing an artifact, or dependency from the graph graph.artifacts("nginx", "1.0.0").delete artifact.dependencies("nginx", "~> 1.0.0").delete ## Authors Author:: Jamie Winsor (<jamie@vialstudios.com>) Copyright 2012 Jamie Winsor
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solve-0.3.1 | README.md |
solve-0.3.0 | README.md |