Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .document
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LICENSE.txt
README.md
lib/
12 changes: 6 additions & 6 deletions lib/open3/jruby_windows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ def popen3(*cmd, &block)
end
module_function :popen3

IO_3 = proc do |process|
IO_3 = proc do |process| # :nodoc:
[process.getOutputStream.to_io, process.getInputStream.to_io, process.getErrorStream.to_io]
end

BUILD_2 = proc do |builder|
BUILD_2 = proc do |builder| # :nodoc:
builder.redirectError(ProcessBuilder::Redirect::INHERIT)
end

IO_2 = proc do |process|
IO_2 = proc do |process| # :nodoc:
[process.getOutputStream.to_io, process.getInputStream.to_io]
end

Expand All @@ -42,7 +42,7 @@ def popen2(*cmd, &block)
end
module_function :popen2

BUILD_2E = proc do |builder|
BUILD_2E = proc do |builder| # :nodoc:
builder.redirectErrorStream(true)
end

Expand All @@ -56,7 +56,7 @@ def popen2e(*cmd, &block)
end
module_function :popen2e

def processbuilder_run(cmd, opts, build: nil, io:)
def processbuilder_run(cmd, opts, build: nil, io:) # :nodoc:
opts.each do |k, v|
if Integer === k
if IO == v || !(String === v || v.respond_to?(:to_path))
Expand Down Expand Up @@ -113,7 +113,7 @@ class << self
private :processbuilder_run
end

class DetachThread < Thread
class DetachThread < Thread # :nodoc:
attr_reader :pid

def initialize(pid)
Expand Down
1 change: 1 addition & 0 deletions lib/open3/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module Open3
# The version string
VERSION = "0.2.1"
end