grimoire 0.2.8 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/grimoire/solver.rb +8 -0
- data/lib/grimoire/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 666aad998c28329d70decb7921d18be58db0d167
|
4
|
+
data.tar.gz: c4ef5b404aa4a055a74cb6b27699248c4608cafd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 111b54208737052fb70c908f1dcc6a0d7a14bf54460886ae6c06e5d3bb48d6dd2b7dad0346d3c16bcee1acd00ad1d604a6b40d416e014b1c05be43521e880083
|
7
|
+
data.tar.gz: bf015a1a6ecaed51b4bc109779e79a7644b25bc747b6cbeb054156e12068c51e3efd34223eb4d7752960af97dc1c9bc175ce8326a73e4d3b0f4c44e285e17014
|
data/CHANGELOG.md
CHANGED
data/lib/grimoire/solver.rb
CHANGED
@@ -77,6 +77,14 @@ module Grimoire
|
|
77
77
|
exception.unit_name = req.name
|
78
78
|
raise exception
|
79
79
|
end
|
80
|
+
world.units[req.name].delete_if do |r_unit|
|
81
|
+
unless(req.requirement.satisfied_by?(r_unit.version))
|
82
|
+
debug "Pruning unit due to root requirement satisfaction failure - #{req.name}: #{req.requirement} not satisfied by #{r_unit.name} @ #{r_unit.version}"
|
83
|
+
true
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
requirements.requirements.each do |req|
|
80
88
|
world.units[req.name].each do |r_unit|
|
81
89
|
begin
|
82
90
|
req_list = RequirementList.new(
|
data/lib/grimoire/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grimoire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo
|