opt-rb 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 8adfde8fc1962e5cf69e3bfb6eb1a8b416e5960ed4bfb63c6ffba8a2eff224a4
4
- data.tar.gz: 6d799d6e79b71715ca255bb21d6935c558031b76ea945398d4d153d53c6064ea
3
+ metadata.gz: 1e396d3499b517100500630ed4740761dc95227f8b6c8881729b3e697d881567
4
+ data.tar.gz: fc6b0f92b092ebb4f0f31f4293a16ddd33d32e9dd65a21d26ec5fab3152703f2
5
5
  SHA512:
6
- metadata.gz: 349ab72435d08d1d58203c616f194b6575c3e3210e21b0e42f23cc2dcd9e7806d1b6837e2574901cd87787432ae61c3b689535cbddf65c41cf62a0b2b49bb990
7
- data.tar.gz: d97fb3c4449fe2d281035dc6312a23ba9bda66c7bf7b2758b293463ce8a93e6a6ec113e1af1cff9d3223b52f243de9dce84d1d6fb3986e13fecc2efcb4aa2868
6
+ metadata.gz: dbbb43b00fae89524858d34557cc19ca61a41a30319f34a92234c9fea30ac1833d942081ecabee33fde2d840ae7ca199b2fd3ad398c4e9e86dc869f46659dde0
7
+ data.tar.gz: 5483e9143c9ccf84d606539735b1fd4862bfbd4d7f666abb6770fc95999fdbba085f9dc6519b7c794786eb4d921a20ec6091459cce1571eaa5ce037d7afd35bb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.4 (2023-11-28)
2
+
3
+ - Fixed `stack level too deep` error
4
+
1
5
  ## 0.1.3 (2023-06-09)
2
6
 
3
7
  - Fixed error with GLPK and threads
@@ -7,11 +7,11 @@ module Opt
7
7
  end
8
8
 
9
9
  def +(other)
10
- Expression.new([self, self.class.to_expression(other)])
10
+ Expression.new((parts || [self]) + [self.class.to_expression(other)])
11
11
  end
12
12
 
13
13
  def -(other)
14
- Expression.new([self, -self.class.to_expression(other)])
14
+ Expression.new((parts || [self]) + [-self.class.to_expression(other)])
15
15
  end
16
16
 
17
17
  def -@
data/lib/opt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opt
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
4
+ version: 0.1.4
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-06-09 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org