oplop 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/oplop/cli.rb +6 -1
- data/lib/oplop/version.rb +1 -1
- metadata +1 -1
data/lib/oplop/cli.rb
CHANGED
@@ -45,7 +45,12 @@ HELP
|
|
45
45
|
Open3.popen3(copy_program) do |stdin, stdout, stderr, wait_thr|
|
46
46
|
stdin.print string
|
47
47
|
stdin.close
|
48
|
-
wait_thr.
|
48
|
+
# ruby 1.9 has wait_thr, 1.8 doesn't
|
49
|
+
if wait_thr.nil?
|
50
|
+
!! stderr.read.strip
|
51
|
+
else
|
52
|
+
wait_thr.status
|
53
|
+
end
|
49
54
|
end
|
50
55
|
end
|
51
56
|
|
data/lib/oplop/version.rb
CHANGED