noreply@rubyforge.org
2006-Feb-08 17:29 UTC
[Win32utils-devel] [ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
Feature Requests item #3502, was opened at 2006-02-08 10:29 You can respond by visiting: rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85 Category: win32-open3 Group: Code Status: Open Resolution: None Priority: 4 Submitted By: Daniel Berger (djberg96) Assigned to: Park Heesob (phasis68) Summary: Allow win32-open3 to take a block Initial Comment: I think we should allow win32-open3''s methods to take a block in the way that the Unix open3 module works, e.g. Open3.popen3(cmd){ |cmd_in, cmd_out, cmd_err| # ... } Each pipe should be closed via ensure as open3.rb does. This keeps the API compatible with the current Ruby API, and is probably a better way to use the module in general (since the pipes are guaranteed to be closed at the end of the block). Regards, Dan ---------------------------------------------------------------------- You can respond by visiting: rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85
noreply@rubyforge.org
2006-Feb-09 00:42 UTC
[Win32utils-devel] [ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
Feature Requests item #3502, was opened at 2006-02-09 02:29 You can respond by visiting: rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85 Category: win32-open3 Group: Code>Status: ClosedResolution: None Priority: 4 Submitted By: Daniel Berger (djberg96) Assigned to: Park Heesob (phasis68) Summary: Allow win32-open3 to take a block Initial Comment: I think we should allow win32-open3''s methods to take a block in the way that the Unix open3 module works, e.g. Open3.popen3(cmd){ |cmd_in, cmd_out, cmd_err| # ... } Each pipe should be closed via ensure as open3.rb does. This keeps the API compatible with the current Ruby API, and is probably a better way to use the module in general (since the pipes are guaranteed to be closed at the end of the block). Regards, Dan ---------------------------------------------------------------------->Comment By: Park Heesob (phasis68)Date: 2006-02-09 09:42 Message: I modified and committed for your request. ---------------------------------------------------------------------- You can respond by visiting: rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85
noreply at rubyforge.org
2006-Feb-10 02:24 UTC
[Win32utils-devel] [ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
Feature Requests item #3502, was opened at 2006-02-08 10:29 You can respond by visiting: rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85 Category: win32-open3 Group: Code Status: Closed>Resolution: AcceptedPriority: 4 Submitted By: Daniel Berger (djberg96) Assigned to: Park Heesob (phasis68) Summary: Allow win32-open3 to take a block Initial Comment: I think we should allow win32-open3''s methods to take a block in the way that the Unix open3 module works, e.g. Open3.popen3(cmd){ |cmd_in, cmd_out, cmd_err| # ... } Each pipe should be closed via ensure as open3.rb does. This keeps the API compatible with the current Ruby API, and is probably a better way to use the module in general (since the pipes are guaranteed to be closed at the end of the block). Regards, Dan ---------------------------------------------------------------------->Comment By: Daniel Berger (djberg96)Date: 2006-02-09 19:24 Message: Excellent! Thank you! ---------------------------------------------------------------------- Comment By: Park Heesob (phasis68) Date: 2006-02-08 17:42 Message: I modified and committed for your request. ---------------------------------------------------------------------- You can respond by visiting: rubyforge.org/tracker/?func=detail&atid=414&aid=3502&group_id=85