win32-open3 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +6 -0
- data/README +6 -4
- data/doc/open3.txt +1 -1
- data/ext/win32/open3.c +10 -9
- data/ext/win32/open3.h +1 -1
- data/test/test_win32_open3.rb +3 -3
- metadata +3 -11
- data/ext/Makefile +0 -181
- data/ext/mkmf.log +0 -19
- data/ext/open3-i386-mswin32.def +0 -2
- data/ext/open3-i386-mswin32.exp +0 -0
- data/ext/open3-i386-mswin32.lib +0 -0
- data/ext/open3-i386-mswin32.pdb +0 -0
- data/ext/open3.obj +0 -0
- data/ext/vc60.pdb +0 -0
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/doc/open3.txt
CHANGED
@@ -63,7 +63,7 @@ Open4.popen4(command, mode='t', show=false){ |io_in, io_out, io_err, pid| ... }
|
|
63
63
|
Ruby's
|
64
64
|
|
65
65
|
= Copyright
|
66
|
-
(C) 2003-
|
66
|
+
(C) 2003-2009 Daniel J. Berger, All Rights Reserved .
|
67
67
|
|
68
68
|
= Warranty
|
69
69
|
This package is provided "as is" and without any express or
|
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/ext/win32/open3.h
CHANGED
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: ruby
|
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
|
|
@@ -30,14 +30,6 @@ files:
|
|
30
30
|
- doc/open3.txt
|
31
31
|
- test/test_win32_open3.rb
|
32
32
|
- ext/extconf.rb
|
33
|
-
- ext/Makefile
|
34
|
-
- ext/mkmf.log
|
35
|
-
- ext/open3-i386-mswin32.def
|
36
|
-
- ext/open3-i386-mswin32.exp
|
37
|
-
- ext/open3-i386-mswin32.lib
|
38
|
-
- ext/open3-i386-mswin32.pdb
|
39
|
-
- ext/open3.obj
|
40
|
-
- ext/vc60.pdb
|
41
33
|
- ext/win32
|
42
34
|
- ext/win32/open3.c
|
43
35
|
- ext/win32/open3.h
|
@@ -66,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
58
|
requirements: []
|
67
59
|
|
68
60
|
rubyforge_project: win32utils
|
69
|
-
rubygems_version: 1.3.
|
61
|
+
rubygems_version: 1.3.0
|
70
62
|
signing_key:
|
71
63
|
specification_version: 2
|
72
64
|
summary: Provides an Open3.popen3 implementation for MS Windows
|
data/ext/Makefile
DELETED
@@ -1,181 +0,0 @@
|
|
1
|
-
|
2
|
-
SHELL = /bin/sh
|
3
|
-
|
4
|
-
#### Start of system configuration section. ####
|
5
|
-
|
6
|
-
srcdir = win32
|
7
|
-
topdir = C:/Ruby/lib/ruby/1.8/i386-mswin32
|
8
|
-
hdrdir = $(topdir)
|
9
|
-
VPATH = $(srcdir);$(topdir);$(hdrdir)
|
10
|
-
|
11
|
-
DESTDIR = C:
|
12
|
-
prefix = $(DESTDIR)/Ruby
|
13
|
-
exec_prefix = $(prefix)
|
14
|
-
sitedir = $(prefix)/lib/ruby/site_ruby
|
15
|
-
rubylibdir = $(libdir)/ruby/$(ruby_version)
|
16
|
-
archdir = $(rubylibdir)/$(arch)
|
17
|
-
sbindir = $(exec_prefix)/sbin
|
18
|
-
datadir = $(prefix)/share
|
19
|
-
includedir = $(prefix)/include
|
20
|
-
infodir = $(prefix)/info
|
21
|
-
sysconfdir = $(prefix)/etc
|
22
|
-
mandir = $(prefix)/man
|
23
|
-
libdir = $(exec_prefix)/lib
|
24
|
-
sharedstatedir = $(DESTDIR)/etc
|
25
|
-
oldincludedir = $(DESTDIR)/usr/include
|
26
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
27
|
-
localstatedir = $(DESTDIR)/var
|
28
|
-
bindir = $(exec_prefix)/bin
|
29
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
30
|
-
libexecdir = $(exec_prefix)/libexec
|
31
|
-
|
32
|
-
CC = cl -nologo
|
33
|
-
LIBRUBY = $(RUBY_SO_NAME).lib
|
34
|
-
LIBRUBY_A = $(RUBY_SO_NAME)-static.lib
|
35
|
-
LIBRUBYARG_SHARED = $(LIBRUBY)
|
36
|
-
LIBRUBYARG_STATIC = $(LIBRUBY_A)
|
37
|
-
|
38
|
-
RUBY_EXTCONF_H =
|
39
|
-
CFLAGS = -MD -Zi -O2b2xg- -G6
|
40
|
-
INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
|
41
|
-
DEFS =
|
42
|
-
CPPFLAGS = -DHAVE_TYPE_RB_PID_T
|
43
|
-
CXXFLAGS = $(CFLAGS)
|
44
|
-
DLDFLAGS = -link -incremental:no -debug -opt:ref -opt:icf -dll $(LIBPATH) -def:$(DEFFILE) -implib:$(*F:.so=)-$(arch).lib -pdb:$(*F:.so=)-$(arch).pdb
|
45
|
-
LDSHARED = cl -nologo -LD
|
46
|
-
AR = lib -nologo
|
47
|
-
EXEEXT = .exe
|
48
|
-
|
49
|
-
RUBY_INSTALL_NAME = ruby
|
50
|
-
RUBY_SO_NAME = msvcrt-ruby18
|
51
|
-
arch = i386-mswin32
|
52
|
-
sitearch = i386-msvcrt
|
53
|
-
ruby_version = 1.8
|
54
|
-
ruby = C:/Ruby/bin/ruby
|
55
|
-
RUBY = $(ruby:/=\)
|
56
|
-
RM = $(RUBY) -run -e rm -- -f
|
57
|
-
MAKEDIRS = @$(RUBY) -run -e mkdir -- -p
|
58
|
-
INSTALL = @$(RUBY) -run -e install -- -vp
|
59
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
60
|
-
INSTALL_DATA = $(INSTALL) -m 0644
|
61
|
-
COPY = copy > nul
|
62
|
-
|
63
|
-
#### End of system configuration section. ####
|
64
|
-
|
65
|
-
preload =
|
66
|
-
|
67
|
-
libpath = . $(libdir)
|
68
|
-
LIBPATH = -libpath:"." -libpath:"$(libdir)"
|
69
|
-
DEFFILE = $(TARGET)-$(arch).def
|
70
|
-
|
71
|
-
CLEANFILES = mkmf.log
|
72
|
-
DISTCLEANFILES = vc*.pdb $(DEFFILE)
|
73
|
-
|
74
|
-
extout =
|
75
|
-
extout_prefix =
|
76
|
-
target_prefix = /win32
|
77
|
-
LOCAL_LIBS =
|
78
|
-
LIBS = $(LIBRUBYARG_SHARED) oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib
|
79
|
-
SRCS = open3.c
|
80
|
-
OBJS = open3.obj
|
81
|
-
TARGET = open3
|
82
|
-
DLLIB = $(TARGET).so
|
83
|
-
EXTSTATIC =
|
84
|
-
STATIC_LIB =
|
85
|
-
|
86
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
87
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
88
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
89
|
-
|
90
|
-
TARGET_SO = $(DLLIB)
|
91
|
-
CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
|
92
|
-
CLEANOBJS = *.obj *.lib *.s[ol] *.pdb *.exp *.bak
|
93
|
-
|
94
|
-
all: $(DLLIB)
|
95
|
-
static: $(STATIC_LIB)
|
96
|
-
|
97
|
-
clean:
|
98
|
-
@-$(RM) $(CLEANLIBS:/=\) $(CLEANOBJS:/=\) $(CLEANFILES:/=\)
|
99
|
-
|
100
|
-
distclean: clean
|
101
|
-
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
102
|
-
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES:/=\)
|
103
|
-
|
104
|
-
realclean: distclean
|
105
|
-
install: install-so install-rb
|
106
|
-
|
107
|
-
install-so: $(RUBYARCHDIR)
|
108
|
-
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
109
|
-
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
110
|
-
$(INSTALL_PROG) $(DLLIB:/=\) $(RUBYARCHDIR:/=\)
|
111
|
-
install-rb: pre-install-rb install-rb-default
|
112
|
-
install-rb-default: pre-install-rb-default
|
113
|
-
pre-install-rb: Makefile
|
114
|
-
pre-install-rb-default: Makefile
|
115
|
-
$(RUBYARCHDIR):
|
116
|
-
$(MAKEDIRS) $@
|
117
|
-
|
118
|
-
site-install: site-install-so site-install-rb
|
119
|
-
site-install-so: install-so
|
120
|
-
site-install-rb: install-rb
|
121
|
-
|
122
|
-
.SUFFIXES: .c .m .cc .cxx .cpp .obj
|
123
|
-
|
124
|
-
{$(srcdir)}.cc{}.obj:
|
125
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
126
|
-
|
127
|
-
{$(topdir)}.cc{}.obj:
|
128
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
129
|
-
|
130
|
-
{$(hdrdir)}.cc{}.obj:
|
131
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
132
|
-
|
133
|
-
.cc.obj:
|
134
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
135
|
-
|
136
|
-
{$(srcdir)}.cxx{}.obj:
|
137
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
138
|
-
|
139
|
-
{$(topdir)}.cxx{}.obj:
|
140
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
141
|
-
|
142
|
-
{$(hdrdir)}.cxx{}.obj:
|
143
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
144
|
-
|
145
|
-
.cxx.obj:
|
146
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
147
|
-
|
148
|
-
{$(srcdir)}.cpp{}.obj:
|
149
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
150
|
-
|
151
|
-
{$(topdir)}.cpp{}.obj:
|
152
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
153
|
-
|
154
|
-
{$(hdrdir)}.cpp{}.obj:
|
155
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
156
|
-
|
157
|
-
.cpp.obj:
|
158
|
-
$(CXX) $(INCFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c -Tp$(<:\=/)
|
159
|
-
|
160
|
-
{$(srcdir)}.c{}.obj:
|
161
|
-
$(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
162
|
-
|
163
|
-
{$(topdir)}.c{}.obj:
|
164
|
-
$(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
165
|
-
|
166
|
-
{$(hdrdir)}.c{}.obj:
|
167
|
-
$(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
168
|
-
|
169
|
-
.c.obj:
|
170
|
-
$(CC) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) -c -Tc$(<:\=/)
|
171
|
-
|
172
|
-
$(DLLIB): $(DEFFILE) $(OBJS)
|
173
|
-
@-$(RM) $@
|
174
|
-
$(LDSHARED) -Fe$(@) $(OBJS) $(LIBS) $(LOCAL_LIBS) $(DLDFLAGS)
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
$(DEFFILE):
|
179
|
-
$(RUBY) -e "puts 'EXPORTS', 'Init_$(TARGET)'" > $@
|
180
|
-
|
181
|
-
$(OBJS): {.;$(srcdir);$(topdir);$(hdrdir)}ruby.h {.;$(srcdir);$(topdir);$(hdrdir)}defines.h
|
data/ext/mkmf.log
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
have_type: checking for rb_pid_t in ruby.h... -------------------- yes
|
2
|
-
|
3
|
-
"cl -nologo -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c conftest.c"
|
4
|
-
conftest.c
|
5
|
-
checked program was:
|
6
|
-
/* begin */
|
7
|
-
1: #define WIN32_LEAN_AND_MEAN
|
8
|
-
2: #define WIN32
|
9
|
-
3: #include <winsock2.h>
|
10
|
-
4: #include <windows.h>
|
11
|
-
5: #include <ruby.h>
|
12
|
-
6:
|
13
|
-
7: /*top*/
|
14
|
-
8: typedef rb_pid_t conftest_type;
|
15
|
-
9: static conftest_type conftestval[sizeof(conftest_type)?1:-1];
|
16
|
-
/* end */
|
17
|
-
|
18
|
-
--------------------
|
19
|
-
|
data/ext/open3-i386-mswin32.def
DELETED
data/ext/open3-i386-mswin32.exp
DELETED
Binary file
|
data/ext/open3-i386-mswin32.lib
DELETED
Binary file
|
data/ext/open3-i386-mswin32.pdb
DELETED
Binary file
|
data/ext/open3.obj
DELETED
Binary file
|
data/ext/vc60.pdb
DELETED
Binary file
|