win32-open3 0.2.6-x86-mswin32-60 → 0.2.7-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,11 @@
1
+ == 0.2.7 - 11-Jan-2008
2
+ * Fixed a bug that could cause exitstatus to return bogus information. Thanks
3
+ go to Roman Zawada for the spot.
4
+ * Added a 'build_binary_gem' Rake task.
5
+ * Updates to the gemspec, including the addition of Park Heesob as the primary
6
+ author in the gemspec.
7
+ * Renamed the test file and the example file.
8
+
1
9
  == 0.2.6 - 1-June-2007
2
10
  * Fixed RubyForge bug #20455 (closed IO stream). Thanks go an anonymous user
3
11
  for the spot.
@@ -41,4 +49,4 @@
41
49
  * Added some information to the README file about possible compiler problems.
42
50
 
43
51
  == 0.1.0 - 8-Oct-2004
44
- * Initial release
52
+ * Initial release
data/ext/win32/open3.c CHANGED
@@ -282,6 +282,7 @@ static void win32_pipe_finalize(OpenFile *file, int noraise)
282
282
  if(pid_handle != NULL){
283
283
  GetExitCodeProcess(pid_handle, &status);
284
284
  CloseHandle(pid_handle);
285
+ pid_handle = NULL;
285
286
 
286
287
  if(status != STILL_ACTIVE)
287
288
  win32_set_last_status(status, file->pid);
data/lib/win32/open3.so CHANGED
Binary file
@@ -14,11 +14,14 @@ class TC_Win32_Open3 < Test::Unit::TestCase
14
14
  def setup
15
15
  @good_cmd = 'ver'
16
16
  @bad_cmd = 'verb'
17
+ @stdin = nil
18
+ @stdout = nil
19
+ @stderr = nil
17
20
  end
18
21
 
19
22
  def test_open3_version
20
- assert_equal('0.2.6', Open3::WIN32_OPEN3_VERSION)
21
- assert_equal('0.2.6', Open4::WIN32_OPEN3_VERSION)
23
+ assert_equal('0.2.7', Open3::WIN32_OPEN3_VERSION)
24
+ assert_equal('0.2.7', Open4::WIN32_OPEN3_VERSION)
22
25
  end
23
26
 
24
27
  def test_open3_basic
@@ -84,7 +87,7 @@ class TC_Win32_Open3 < Test::Unit::TestCase
84
87
  assert_kind_of(String, fout.gets)
85
88
  assert_nil(ferr.gets)
86
89
  end
87
-
90
+
88
91
  def test_handle_bad_content
89
92
  fin, fout, ferr = Open3.popen3(@bad_cmd)
90
93
  assert_kind_of(String, ferr.gets)
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-open3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
- - Daniel J. Berger
7
+ - Park Heesob
8
+ - Daniel Berger
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2008-06-01 00:00:00 -06:00
13
+ date: 2009-01-11 00:00:00 -07:00
13
14
  default_executable:
14
15
  dependencies: []
15
16
 
@@ -20,18 +21,15 @@ executables: []
20
21
  extensions: []
21
22
 
22
23
  extra_rdoc_files:
23
- - CHANGES
24
24
  - README
25
+ - CHANGES
25
26
  - MANIFEST
26
- - doc/open3.txt
27
27
  - ext/win32/open3.c
28
28
  files:
29
- - doc/open3.txt
30
- - test/tc_open3.rb
31
- - lib/win32
32
29
  - lib/win32/open3.so
33
- - CHANGES
30
+ - test/test_win32_open3.rb
34
31
  - README
32
+ - CHANGES
35
33
  - MANIFEST
36
34
  - ext/win32/open3.c
37
35
  has_rdoc: true
@@ -56,9 +54,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
54
  requirements: []
57
55
 
58
56
  rubyforge_project: win32utils
59
- rubygems_version: 1.1.1
57
+ rubygems_version: 1.3.1
60
58
  signing_key:
61
59
  specification_version: 2
62
60
  summary: Provides an Open3.popen3 implementation for MS Windows
63
61
  test_files:
64
- - test/tc_open3.rb
62
+ - test/test_win32_open3.rb
data/doc/open3.txt DELETED
@@ -1,75 +0,0 @@
1
- = Description
2
- An open3 library for MS Windows.
3
-
4
- = Synopsis
5
- require 'win32/open3'
6
-
7
- Open3.popen3('ver'){ |io_in, io_out, io_err|
8
- error = io_err.gets
9
- if error
10
- puts "Error: " + error.chomp
11
- exit
12
- end
13
- puts "Result: " + io_out.readlines.last.chomp
14
- }
15
-
16
- = Module functions
17
- Open3.popen3(command, mode='t', show=false)
18
-
19
- Open3.popen3(command, mode='t', show=false){ |io_in, io_out, io_err| ... }
20
-
21
- Executes 'command', returning an array of three IO handles representing
22
- STDIN, STDOUT and STDERR, respectively. In block form these IO handles
23
- are yielded back to the block and automatically closed at the end of the
24
- block.
25
-
26
- You may optionally pass a mode flag of 't' (text, the default) or 'b'
27
- (binary) to this method.
28
-
29
- If the 'show' variable is set to true, then a console window is shown.
30
-
31
- Open4.popen4(command, mode='t', show=false)
32
-
33
- Open4.popen4(command, mode='t', show=false){ |io_in, io_out, io_err, pid| ... }
34
-
35
- Executes 'command', returning an array consisting of three IO handles,
36
- representing STDIN, STDOUT and STDERR, respectively, as well as the PID
37
- of the newly generated process. In block form these IO handles and pid
38
- are yielded back to the block and automatically closed at the end of the
39
- block.
40
-
41
- You may optionally pass a mode flag of 't' (text, the default) or 'b'
42
- (binary) to this method.
43
-
44
- If the 'show' variable is set to true, then a console window is shown.
45
-
46
- = Notes
47
- This is a remake of Park Heesob's win32_popen package. It has been reworked
48
- in order to make the API (nearly) identical to the Open3 package currently
49
- included in the Ruby standard library.
50
-
51
- For now only the popen3 and popen4 methods have been included. In later
52
- releases we will probably add the popen2 and posix_popen methods back in.
53
-
54
- = Acknowledgements
55
- Thanks go to Samuel Tesla and John-Mason Shackelford for their patches that
56
- enabled us to set Process::Status.
57
-
58
- = Known Bugs
59
- None that I know of. Please log any other bug reports on the RubyForge
60
- project page at http://www.rubyforge.net/projects/win32utils.
61
-
62
- = License
63
- Ruby's
64
-
65
- = Copyright
66
- (C) 2003-2008 Daniel J. Berger, All Rights Reserved .
67
-
68
- = Warranty
69
- This package is provided "as is" and without any express or
70
- implied warranties, including, without limitation, the implied
71
- warranties of merchantability and fitness for a particular purpose.
72
-
73
- = Authors
74
- Park Heesob
75
- Daniel J. Berger