README.md in solve-1.2.0 vs README.md in solve-1.2.1
- old
+ new
@@ -13,11 +13,11 @@
## Usage
Create a new graph
- graph = Graph.new
+ graph = Solve::Graph.new
Add an artifact to the graph
graph.artifact("nginx", "1.0.0")
@@ -29,23 +29,23 @@
graph.artifact("ntp", "1.0.0").depends("build-essential").depends("yum")
And now solve the graph with some demands
- Solve.it!(graph, ['nginx', '>= 0.100.0'])
+ Solve.it!(graph, [['nginx', '>= 0.100.0']])
Or, if you want a topologically sorted solution
NOTE: This will raise Solve::Errors::UnsortableSolutionError if the solution contains a cycle (which can happen with ruby packages)
- Solve.it!(graph, ['nginx', '>= 0.100.0'], sorted: true)
+ Solve.it!(graph, [['nginx', '>= 0.100.0']], sorted: true)
### Increasing the solver's timeout
-By default the solver will wait 10 seconds before giving up on finding a solution. Under certain conditions a graph may be too complicated to solve within the alotted time. To increase the timeout you can set the "SOLVE_TIMEOUT" environment variable to the amount of seconds desired.
+By default the solver will wait 30 seconds before giving up on finding a solution. Under certain conditions a graph may be too complicated to solve within the alotted time. To increase the timeout you can set the "SOLVE_TIMEOUT" environment variable to the amount of seconds desired.
- $ export SOLVE_TIMEOUT=30
+ $ export SOLVE_TIMEOUT=60
-This will set the timeout to 30 seconds instead of 10 seconds.
+This will set the timeout to 60 seconds instead of the default 30 seconds.
## Authors
* [Jamie Winsor](https://github.com/reset) (<jamie@vialstudios.com>)
* [Andrew Garson](andrewGarson) (<agarson@riotgames.com>)