rulp 0.0.35 → 0.0.36

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rulp/expression.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90c0920b51f974fa7b72d116b7f947f641611b9a
4
- data.tar.gz: 45250d704438bab16313f9216097fa35f50470a8
3
+ metadata.gz: ec4bc2043f06b69ccb828507ef01a1d3ab8bae91
4
+ data.tar.gz: c19fd2e3d66f247b716f3985c6432e63be1e4c34
5
5
  SHA512:
6
- metadata.gz: 1808ae9c9d425dbd55f0a33a08f5d0a2b699756bc42bf976a6bdb953ff150aa2f84caedcc49350149b51eb52439504ecb50e1b03b4de7fb06d1cf9ad40f66de7
7
- data.tar.gz: c78c8b088a4627da7323413c68c7e5cb7e52d0a5ea38895092c32824b6c9464412ef0298fd58c68f490a28d952880d7c9589938231175836c2cacfb9abd5d5f4
6
+ metadata.gz: 97793f53e062d84923272806e27997151112b00610076984acaae161eeec55b5a4336e840935ae525d41eaa34f19e068f03df8be5dcd412e16529e996b0d4428
7
+ data.tar.gz: 83c53e65afed2ba668d2b2f3af5eb7e37530df849e14a1ade79ff18493ecc8757cc43203dd961821379b8b400b0a3dee7b5ac6cef39a08f60bd895e08ff6a5f7
@@ -104,6 +104,7 @@ class Fragment
104
104
  case @operand
105
105
  when -1 then " - #{@lv}"
106
106
  when 1 then " + #{@lv}"
107
+ when ->(op){ op < 0} then " - #{@operand.abs} #{@lv}"
107
108
  else " + #{@operand} #{@lv}"
108
109
  end
109
110
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rulp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter Coppieters
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2016-07-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple Ruby LP description DSL
14
14
  email: wc@pico.net.nz