rulp 0.0.33 → 0.0.34

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/rulp.rb +3 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 667bb32b7af10e9b7d5d3ef49f145c2bcf099666
4
- data.tar.gz: d83a7c0f32b99c99516cff298c4cefbd42eca1e6
3
+ metadata.gz: 0bba7ca32b2b626745aab95c69ea44739505eb69
4
+ data.tar.gz: b860a1717f0eabc4209e2b4aeacc75e0e3bef656
5
5
  SHA512:
6
- metadata.gz: 4720bb81b243820b4bf398c6d0c90bc92b062a72d4c4dd0c886d5c36d365b3bfa42d689d22fa9713934276640e2bc7f0b9de0a4388481a2228b7fe5e7fc46dc1
7
- data.tar.gz: f4998646a8e2b3d3658f663f0f8701a5914b337f256585378755d1fb9712431df1a6cbec3f2af7e9185b45eacc0e0374555c58a69811b61f1efead4c3ab5c0e6
6
+ metadata.gz: 509e3d0965ab38569e412293ed1cd5c4a7f9fc164f83e5b3540eb93f772ccff9e70fe106c42595fe53d58a9e5e146a7a2affe07d3fd905d3958297cd6457a96d
7
+ data.tar.gz: ccf7da341e7898bd4aeef9253fc4f2efa5aa019bbc7085a9bd0949ac9e245457faf93fc1f029b3ac5355a3cb310b15147603c4ca037f8b48c094157ce5e1642d
@@ -72,16 +72,13 @@ module Rulp
72
72
  solver_class.exists? if(solver_class)
73
73
  end
74
74
 
75
-
76
75
  def self.exec(command)
77
- result = ""
78
76
  Open3.popen2e("#{command} #{Rulp.print_solver_outputs ? "" : "> /dev/null 2>&1"}") do | inp, out, thr|
79
- out.each do |line|
77
+ out.each.map do |line|
80
78
  Rulp.log(Logger::DEBUG, line)
81
- result << line
79
+ line
82
80
  end
83
- end
84
- return result
81
+ end.join
85
82
  end
86
83
 
87
84
  class Problem
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.33
4
+ version: 0.0.34
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-14 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple Ruby LP description DSL
14
14
  email: wc@pico.net.nz