opt-rb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/opt/expression.rb +7 -0
- data/lib/opt/problem.rb +1 -1
- data/lib/opt/product.rb +6 -0
- data/lib/opt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36273c4c91e9009dd5f1b754e6d1c01fc0e4188a4ceeac85f1e9cbb76ec27274
|
4
|
+
data.tar.gz: 8b664c75defb3b7394ddef0c64bf6a743e8012eadbf8f6f2ccabff1dda67bec4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388019490f5b877034117d3013bc41af1f633ba4762ab742b1b327386e0bed75277b9e1e3c70e0c5e82ea3c6578f22c89c46157173b5c81c2425a03afa66e853
|
7
|
+
data.tar.gz: 15dc32d76e91f2d80022427beca9f54709b894def409b877e172bea64b2f927a94071657368fc09abc8eee53b88e3c77d4129c0d946cfdb4a76aeb46fb890656
|
data/CHANGELOG.md
CHANGED
data/lib/opt/expression.rb
CHANGED
data/lib/opt/problem.rb
CHANGED
@@ -40,7 +40,7 @@ module Opt
|
|
40
40
|
|
41
41
|
raise Error, "No solvers found" if Opt.available_solvers.empty?
|
42
42
|
|
43
|
-
solver ||= (Opt.default_solvers[type] || Opt.available_solvers.find { |s| s.supports_type?(type) })
|
43
|
+
solver ||= (Opt.default_solvers[type] || Opt.available_solvers.find { |s| Opt.solvers[s].supports_type?(type) })
|
44
44
|
raise Error, "No solvers found for #{type}" unless solver
|
45
45
|
|
46
46
|
# TODO better error message
|
data/lib/opt/product.rb
CHANGED
data/lib/opt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opt-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: andrew@ankane.org
|