descriptionOpen3 replacement
ownerWincent Colaiuta <win@wincent.com>
last changeSat, 21 Aug 2010 15:46:32 +0000
readme

Wopen3 is a replacement for Open3. Unlike Open3, Wopen3 does not throw away the exit code of the executed (grandchild) process. Only a child process is spawned and the exit status is returned in $? as normal.

Usage example:

  result, errors = '', ''
  Wopen3.popen3('git', 'log') do |stdin, stdout, stderr|
    threads = []
    threads << Thread.new(stdout) do |out|
      out.each { |line| result << line }
    end
    threads << Thread.new(stderr) do |err|
      err.each { |line| errors << line }
    end
    threads.each { |thread| thread.join }
  end
  status = $?.exitstatus
  raise "Non-zero exit status #{status}" if status != 0
shortlog
2010-08-21 Wincent ColaiutaGit: ignore YARD output files master
2010-08-21 Wincent ColaiutaGit: ignore .config.yml file
2010-08-21 Wincent ColaiutaAdd yard and upload_yard Rake tasks
2010-08-21 Wincent ColaiutaAdd Bundler-generated binstubs
2010-08-21 Wincent ColaiutaAdd YARD as a development dependency
2010-07-29 Wincent ColaiutaUpdate Gemfile.lock
2010-07-29 Wincent ColaiutaFix broken rake push task
2010-07-29 Wincent ColaiutaBump version number post-release
2010-07-29 Wincent ColaiutaBump version number for 0.3 release 0.3
2010-07-29 Wincent ColaiutaAdd #success? method to Wopen3::Result
2010-07-29 Wincent ColaiutaFix 'gem push' path
2010-07-28 Wincent ColaiutaAdd specs for 'system' method
2010-07-28 Wincent ColaiutaAdd Bundler binstubs
2010-07-28 Wincent ColaiutaUse Bundler to manage development environment
2010-07-28 Wincent ColaiutaAdd RSpec as a development dependency
2010-07-28 Wincent ColaiutaGit: ignore *.gem files
...
tags
21 months ago 0.3 0.3 release
21 months ago 0.2 0.2 release
heads
20 months ago master