solve 3.0.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -11
- data/lib/solve/version.rb +1 -1
- data/solve.gemspec +1 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f98e82557be55630967e87dfdd9ea736f35726a
|
4
|
+
data.tar.gz: 67393b28b08b724a5757e719952cf714b9c80795
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bfc3f44166d72453209de947ad476a628d20c70e7ab018aff858ea2d9aff0137aaaa061e71c1318d8bbf1d8feeea7767f9e402de21770ae32cc5dfbd1dde8bb
|
7
|
+
data.tar.gz: 5a52f195f4e63e11b0783f29e87c66893dfe8c81d487af244207d868d2d950ca4320be85d6a86a4e28ba658cbe87052a3f72f454929bccbec99f686fd7918115
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ A Ruby versioning constraint solver implementing [Semantic Versioning 2.0.0](htt
|
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
```
|
9
|
+
```shell
|
10
10
|
$ gem install solve
|
11
11
|
```
|
12
12
|
|
@@ -14,37 +14,37 @@ $ gem install solve
|
|
14
14
|
|
15
15
|
Create a new graph
|
16
16
|
|
17
|
-
```
|
17
|
+
```ruby
|
18
18
|
graph = Solve::Graph.new
|
19
19
|
```
|
20
20
|
|
21
21
|
Add an artifact to the graph
|
22
22
|
|
23
|
-
```
|
23
|
+
```ruby
|
24
24
|
graph.artifact("nginx", "1.0.0")
|
25
25
|
```
|
26
26
|
|
27
27
|
Now add another artifact that has a dependency
|
28
28
|
|
29
|
-
```
|
29
|
+
```ruby
|
30
30
|
graph.artifact("mysql", "1.2.4-alpha.1").depends("openssl", "~> 1.0.0")
|
31
31
|
```
|
32
32
|
|
33
33
|
Dependencies can be chained, too
|
34
34
|
|
35
|
-
```
|
35
|
+
```ruby
|
36
36
|
graph.artifact("ntp", "1.0.0").depends("build-essential").depends("yum")
|
37
37
|
```
|
38
38
|
|
39
39
|
And now solve the graph with some demands
|
40
40
|
|
41
|
-
```
|
41
|
+
```ruby
|
42
42
|
Solve.it!(graph, [['nginx', '>= 0.100.0']])
|
43
43
|
```
|
44
44
|
|
45
45
|
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)
|
46
46
|
|
47
|
-
```
|
47
|
+
```ruby
|
48
48
|
Solve.it!(graph, [['nginx', '>= 0.100.0']], sorted: true)
|
49
49
|
```
|
50
50
|
|
@@ -55,13 +55,13 @@ Solve supports two different resolvers. A pure Ruby solver implemented using [Mo
|
|
55
55
|
You can set the resolver by calling `Solver.engine=` with the symbol `:ruby` or `:gecode`.
|
56
56
|
|
57
57
|
```ruby
|
58
|
-
|
59
|
-
|
58
|
+
Solver.engine = :ruby
|
59
|
+
Solver.engine = :gecode
|
60
60
|
```
|
61
61
|
|
62
62
|
The Ruby solver is installed and enabled by default. If you'd like to use the Gecode solver you can do so by installing the dep-selector gem or adding it to your Gemfile:
|
63
63
|
|
64
|
-
```
|
64
|
+
```shell
|
65
65
|
$ gem install dep_selector
|
66
66
|
```
|
67
67
|
|
@@ -69,7 +69,7 @@ $ gem install dep_selector
|
|
69
69
|
|
70
70
|
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.
|
71
71
|
|
72
|
-
```
|
72
|
+
```shell
|
73
73
|
$ export SOLVE_TIMEOUT=60
|
74
74
|
```
|
75
75
|
|
data/lib/solve/version.rb
CHANGED
data/solve.gemspec
CHANGED
@@ -17,11 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.required_ruby_version = ">= 2.1.0"
|
18
18
|
|
19
19
|
s.add_dependency "semverse", ">= 1.1", "< 3.0"
|
20
|
-
s.add_dependency "molinillo", "
|
20
|
+
s.add_dependency "molinillo", ">= 0.5"
|
21
21
|
|
22
22
|
s.add_development_dependency 'thor'
|
23
23
|
s.add_development_dependency 'rake'
|
24
|
-
|
25
24
|
s.add_development_dependency 'spork'
|
26
25
|
s.add_development_dependency 'rspec'
|
27
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: semverse
|
@@ -36,16 +36,16 @@ dependencies:
|
|
36
36
|
name: molinillo
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0.
|
41
|
+
version: '0.5'
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '0.
|
48
|
+
version: '0.5'
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: thor
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
version: '0'
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
169
|
+
rubygems_version: 2.6.8
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: A Ruby version constraint solver implementing Semantic Versioning 2.0.0-rc.1
|