solve 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solve.rb +6 -2
- data/lib/solve/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04ed0566c24a6be5c32e5a6b13911cf7c1ae20ef
|
4
|
+
data.tar.gz: 5fb06b3e2def2cf8f6355d48662aecd95db5c724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 063768523d3fd67a04eb80910b9e27d7e3f9b2c54df07a05e7da7faa1dd3e124e3338aa782a2db967a6111d91e43f361bc82ba9441c9733f57e7f9b6c0775c12
|
7
|
+
data.tar.gz: c5f7696eaf9c2d3f76951b39e05d81b29af0f4e4a8852c34d2c114f2e2398b2a982b938feaa892ba269a10d7d8acf76b5e3976a6dc1a58e279c8d416304e4793
|
data/lib/solve.rb
CHANGED
@@ -10,12 +10,14 @@ module Solve
|
|
10
10
|
require_relative 'solve/ruby_solver'
|
11
11
|
require_relative 'solve/gecode_solver'
|
12
12
|
|
13
|
+
# We have to set the default engine here, it gets set on the wrong object if
|
14
|
+
# we put this in the metaclass context below.
|
15
|
+
@engine = :ruby
|
16
|
+
|
13
17
|
class << self
|
14
18
|
# @return [Solve::Formatter]
|
15
19
|
attr_reader :tracer
|
16
20
|
|
17
|
-
@engine = :ruby
|
18
|
-
|
19
21
|
# Returns the currently configured engine.
|
20
22
|
# @see #engine=
|
21
23
|
# @return [Symbol]
|
@@ -73,4 +75,6 @@ module Solve
|
|
73
75
|
|
74
76
|
private :solver_for_engine
|
75
77
|
end
|
78
|
+
|
76
79
|
end
|
80
|
+
|
data/lib/solve/version.rb
CHANGED