grimoire 0.2.10 → 0.2.12

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: 666aad998c28329d70decb7921d18be58db0d167
4
- data.tar.gz: c4ef5b404aa4a055a74cb6b27699248c4608cafd
3
+ metadata.gz: d9cfc6ad36d174cff8752d6025c8fdd7445c6596
4
+ data.tar.gz: 90e49128ef18f2b08b043d3b55ff0cf7cd889d4b
5
5
  SHA512:
6
- metadata.gz: 111b54208737052fb70c908f1dcc6a0d7a14bf54460886ae6c06e5d3bb48d6dd2b7dad0346d3c16bcee1acd00ad1d604a6b40d416e014b1c05be43521e880083
7
- data.tar.gz: bf015a1a6ecaed51b4bc109779e79a7644b25bc747b6cbeb054156e12068c51e3efd34223eb4d7752960af97dc1c9bc175ce8326a73e4d3b0f4c44e285e17014
6
+ metadata.gz: 5fe68466d8f030a354af88830f985ab74adfc75d4a07352ae3e7cdf57b9334ae06b6d1a5c7b8af721555ec7c43e94de71345982a778054c931d3f517c82bdf2f
7
+ data.tar.gz: 3e315421c9b172c0eb667e59d5f81372246bbbeb07a2e601cf0c94cde96378fc2c9ae8f780bff6b90ed859dcd1fd9633e8b0a5490c6fe139bf49e70e01225785
@@ -1,3 +1,6 @@
1
+ # v0.2.12
2
+ * Raise solution error on world prune if no units available for requirements
3
+
1
4
  # v0.2.10
2
5
  * Remove units that do not satisfy requirements prior to world prune
3
6
 
@@ -102,6 +102,13 @@ module Grimoire
102
102
  end
103
103
  end
104
104
  end
105
+ missing_new_world = requirements.requirements.find_all do |req|
106
+ new_world.units[req.name].nil? || new_world.units[req.name].empty?
107
+ end
108
+ unless(missing_new_world.empty?)
109
+ missed_units = missing_new_world.map(&:name).sort
110
+ raise Error::NoSolution.new "Failed to satisfy core requirements (#{missed_units.join(', ')})"
111
+ end
105
112
  @world = new_world
106
113
  @new_world = nil
107
114
  self
@@ -1,4 +1,4 @@
1
1
  module Grimoire
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.2.10')
3
+ VERSION = Gem::Version.new('0.2.12')
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.10
4
+ version: 0.2.12
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-27 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo
@@ -112,3 +112,4 @@ signing_key:
112
112
  specification_version: 4
113
113
  summary: Constraint solver
114
114
  test_files: []
115
+ has_rdoc: