win32-open3 0.2.7-x86-mswin32-60 → 0.2.8-x86-mswin32-60
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.
- data/CHANGES +6 -0
- data/README +6 -4
- data/ext/win32/open3.c +10 -9
- data/lib/win32/open3.so +0 -0
- data/test/test_win32_open3.rb +3 -3
- metadata +3 -3
data/CHANGES
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== 0.2.8 - 27-Feb-2008
|
2
|
+
* Fixed a potential bug where nil might be returned instead of an actual
|
3
|
+
Process::Status object. Thanks go to Benny Bach for the spot.
|
4
|
+
* The 'test' Rake task now runs the 'clean' task after the fact.
|
5
|
+
* Some updates to the README about precompiled binaries.
|
6
|
+
|
1
7
|
== 0.2.7 - 11-Jan-2008
|
2
8
|
* Fixed a bug that could cause exitstatus to return bogus information. Thanks
|
3
9
|
go to Roman Zawada for the spot.
|
data/README
CHANGED
@@ -47,11 +47,13 @@
|
|
47
47
|
This appears to be an issue between VC++ 6 (which the installer was built
|
48
48
|
with) and VC++ 7.0. Your best solution is to either upgrade your C
|
49
49
|
compiler or to rebuild Ruby from scratch rather than using the installer.
|
50
|
+
|
51
|
+
= Precompiled binaries
|
50
52
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
53
|
+
If you do a typical "gem install win32-open3" you will get a precompiled
|
54
|
+
binary appropriate for your platform. If you want to build from source,
|
55
|
+
go the project page and download, download the .zip file, and run the
|
56
|
+
'install' Rake task from the command line.
|
55
57
|
|
56
58
|
= Future Plans
|
57
59
|
Replace the current implementation with a pure Ruby version.
|
data/ext/win32/open3.c
CHANGED
@@ -270,22 +270,23 @@ static void win32_pipe_finalize(OpenFile *file, int noraise)
|
|
270
270
|
int status;
|
271
271
|
|
272
272
|
if(file->f){
|
273
|
-
|
274
|
-
|
273
|
+
fclose(file->f);
|
274
|
+
file->f = NULL;
|
275
275
|
}
|
276
276
|
|
277
277
|
if(file->f2){
|
278
|
-
|
279
|
-
|
278
|
+
fclose(file->f2);
|
279
|
+
file->f2 = NULL;
|
280
280
|
}
|
281
281
|
|
282
282
|
if(pid_handle != NULL){
|
283
283
|
GetExitCodeProcess(pid_handle, &status);
|
284
284
|
CloseHandle(pid_handle);
|
285
|
-
pid_handle = NULL;
|
286
285
|
|
287
|
-
if(status != STILL_ACTIVE)
|
288
|
-
|
286
|
+
if(status != STILL_ACTIVE){
|
287
|
+
pid_handle = NULL;
|
288
|
+
win32_set_last_status(status, file->pid);
|
289
|
+
}
|
289
290
|
}
|
290
291
|
}
|
291
292
|
|
@@ -538,9 +539,9 @@ void Init_open3()
|
|
538
539
|
rb_define_module_function(mOpen3, "popen3", win32_popen3, -1);
|
539
540
|
rb_define_module_function(mOpen4, "popen4", win32_popen3, -1);
|
540
541
|
|
541
|
-
/* 0.2.
|
542
|
+
/* 0.2.8: The version of this library */
|
542
543
|
rb_define_const(mOpen3, "WIN32_OPEN3_VERSION", rb_str_new2(WIN32_OPEN3_VERSION));
|
543
544
|
|
544
|
-
/* 0.2.
|
545
|
+
/* 0.2.8: The version of this library */
|
545
546
|
rb_define_const(mOpen4, "WIN32_OPEN3_VERSION", rb_str_new2(WIN32_OPEN3_VERSION));
|
546
547
|
}
|
data/lib/win32/open3.so
CHANGED
Binary file
|
data/test/test_win32_open3.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
###########################################################################
|
2
|
-
#
|
2
|
+
# test_win32_open3.rb
|
3
3
|
#
|
4
4
|
# Test suite for the win32-open3 library. Except for the
|
5
5
|
# 'test_open3_with_arguments' test and Open4 tests, this suite passes
|
@@ -20,8 +20,8 @@ class TC_Win32_Open3 < Test::Unit::TestCase
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def test_open3_version
|
23
|
-
assert_equal('0.2.
|
24
|
-
assert_equal('0.2.
|
23
|
+
assert_equal('0.2.8', Open3::WIN32_OPEN3_VERSION)
|
24
|
+
assert_equal('0.2.8', Open4::WIN32_OPEN3_VERSION)
|
25
25
|
end
|
26
26
|
|
27
27
|
def test_open3_basic
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-open3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- Park Heesob
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-02-27 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
requirements: []
|
55
55
|
|
56
56
|
rubyforge_project: win32utils
|
57
|
-
rubygems_version: 1.3.
|
57
|
+
rubygems_version: 1.3.0
|
58
58
|
signing_key:
|
59
59
|
specification_version: 2
|
60
60
|
summary: Provides an Open3.popen3 implementation for MS Windows
|