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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23ee3c9e204511dddfb441e59544963a7b4cf212
4
- data.tar.gz: e67e4bd46b4a04f64bc4e98670d73dedde02bf22
3
+ metadata.gz: 666aad998c28329d70decb7921d18be58db0d167
4
+ data.tar.gz: c4ef5b404aa4a055a74cb6b27699248c4608cafd
5
5
  SHA512:
6
- metadata.gz: f978498f791d8881bea67c2ca2fd48f6f02c270ea3f4305509f2f3ddd0b3a250db63ba2dc48aab0302b88629265e0e5efa5c963821d325c299b49d284c550389
7
- data.tar.gz: ebd36c60caf7f9cde62fb62f4de7372ca20555aaeff7d379b594288f56398df3c9a6c2e4954956754ba5e09059db3e7c43b6021da450eee48875e1fdd44f0781
6
+ metadata.gz: 111b54208737052fb70c908f1dcc6a0d7a14bf54460886ae6c06e5d3bb48d6dd2b7dad0346d3c16bcee1acd00ad1d604a6b40d416e014b1c05be43521e880083
7
+ data.tar.gz: bf015a1a6ecaed51b4bc109779e79a7644b25bc747b6cbeb054156e12068c51e3efd34223eb4d7752960af97dc1c9bc175ce8326a73e4d3b0f4c44e285e17014
@@ -1,3 +1,6 @@
1
+ # v0.2.10
2
+ * Remove units that do not satisfy requirements prior to world prune
3
+
1
4
  # v0.2.8
2
5
  * Provide helpful error when world contains no units to satisfy requirement
3
6
 
@@ -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(
@@ -1,4 +1,4 @@
1
1
  module Grimoire
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.2.8')
3
+ VERSION = Gem::Version.new('0.2.10')
4
4
  end
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.8
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-21 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo