rulp 0.0.38 → 0.0.39

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 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c078192763db654f9e49fa5c540bd80a4c005eb
4
- data.tar.gz: 5295481820dcb872fc1f2da08e31b08bb09066bd
3
+ metadata.gz: 9bdeaf714f88f3a6c304d57bf144ab68bc8a0ad1
4
+ data.tar.gz: d1335d15a48de88683bbb0a1db4a55d0b363fabd
5
5
  SHA512:
6
- metadata.gz: 548508e1000eda048dab20ad923af15c51d0a31f9e4a7e48154b7a34fb5e6ee12b3e5d108e32066906fca308e1fd35aff6763115867803dbf453e7e60f417f0c
7
- data.tar.gz: 5c9d6584ae4e0a9a0f8b13c9a8372e2ee88db7b186645950edf0502e43ae0fd9247b83cac8956948e1814ab07a60bb308f4e8d936080839cd23738dbf1d51b40
6
+ metadata.gz: b2838d051f41778c10dae4cf8dd2813075ea73da173f60f640bb5062aedf6d42ba7ef89df04667379f147781de3401a8d19aa2a90e856edcf5e72d8e38e8786d
7
+ data.tar.gz: 43a92d139aeb7c72b1f722c0b71cd77a14c20c35e3bfd7986aae0c87bafd1dc515710a334ed5a1d5d4232baeba38f6184dc0e7b1cbe540babe2134ac8cc438e9
@@ -10,7 +10,7 @@ class Expressions
10
10
 
11
11
  def to_s
12
12
  as_str = @expressions[0].to_s
13
- as_str = as_str[3..-1] if(as_str[1] == '+')
13
+ as_str = as_str[1] == '+' ? as_str[3..-1] : as_str.dup
14
14
  (@expressions.length - 1).times do |i|
15
15
  as_str << @expressions[i + 1].to_s
16
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.38
4
+ version: 0.0.39
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-10-20 00:00:00.000000000 Z
11
+ date: 2016-11-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple Ruby LP description DSL
14
14
  email: wc@pico.net.nz