rulp 0.0.36 → 0.0.37

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 +2 -1
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec4bc2043f06b69ccb828507ef01a1d3ab8bae91
4
- data.tar.gz: c19fd2e3d66f247b716f3985c6432e63be1e4c34
3
+ metadata.gz: 24ea4ff75137f7dd26a615f67c102e28c6ae5edd
4
+ data.tar.gz: 52a059be407b0fece8e54367dc7278334a1e1bed
5
5
  SHA512:
6
- metadata.gz: 97793f53e062d84923272806e27997151112b00610076984acaae161eeec55b5a4336e840935ae525d41eaa34f19e068f03df8be5dcd412e16529e996b0d4428
7
- data.tar.gz: 83c53e65afed2ba668d2b2f3af5eb7e37530df849e14a1ade79ff18493ecc8757cc43203dd961821379b8b400b0a3dee7b5ac6cef39a08f60bd895e08ff6a5f7
6
+ metadata.gz: f958a0b4fe424b9f3459a59c713d9a6bb40ed17546dcbcbd20e8f733bb0a39ef699c140fa65f104dd9196680e730a13ae8eb77ba6eea164f593d0b5544b67992
7
+ data.tar.gz: d118c3f9269b20f49d2bf08b5bd8d32b2cde46485e0600160b750bd39ca89b141f7e7a9c7257ca7ed7a58829cc09375faf10344dfed22b94f9aabda6fc603335
@@ -9,7 +9,8 @@ class Expressions
9
9
  end
10
10
 
11
11
  def to_s
12
- as_str = @expressions[0].to_s[3..-1]
12
+ as_str = @expressions[0].to_s
13
+ as_str = as_str[3..-1] if(as_str[1] == '+')
13
14
  (@expressions.length - 1).times do |i|
14
15
  as_str << @expressions[i + 1].to_s
15
16
  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.36
4
+ version: 0.0.37
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-20 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple Ruby LP description DSL
14
14
  email: wc@pico.net.nz
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project:
66
- rubygems_version: 2.4.5
66
+ rubygems_version: 2.5.1
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Ruby Linear Programming
@@ -74,4 +74,3 @@ test_files:
74
74
  - test/test_infeasible.rb
75
75
  - test/test_save_to_file.rb
76
76
  - test/test_simple.rb
77
- has_rdoc: