oplop 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/oplop/cli.rb +6 -1
  2. data/lib/oplop/version.rb +1 -1
  3. metadata +1 -1
@@ -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.status
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
 
@@ -1,3 +1,3 @@
1
1
  module Oplop
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: oplop
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brian Kaney