README.md in solve-0.2.1 vs README.md in solve-0.3.0
- old
+ new
@@ -1,6 +1,9 @@
# 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
@@ -18,22 +21,20 @@
Now add another artifact that has a dependency
graph.artifacts("mysql", "1.2.4").depends("openssl", "~> 1.0.0")
-Setup some demands
+Dependencies can be chained, too
- graph.demands('nginx', '>= 0.100.0')
+ graph.artifacts("ntp", "1.0.0").depends("build-essential").depends("yum")
-And now solve the graph
+And now solve the graph with some demands
- Solve.it!(graph)
+ Solve.it!(graph, ['nginx', '>= 0.100.0'])
-### Removing an artifact, demand, or dependency
+### Removing an artifact, or dependency from the graph
graph.artifacts("nginx", "1.0.0").delete
-
- graph.demands('nginx', '>= 0.100.0').delete
artifact.dependencies("nginx", "~> 1.0.0").delete
## Authors