eventmachine 0.5.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/RELEASE_NOTES +14 -1
- data/TODO +10 -0
- data/ext/cmain.cpp +100 -4
- data/ext/ed.cpp +228 -44
- data/ext/ed.h +25 -2
- data/ext/em.cpp +351 -14
- data/ext/em.h +33 -8
- data/ext/emwin.h +4 -2
- data/ext/eventmachine.h +9 -1
- data/ext/files.cpp +101 -0
- data/ext/files.h +72 -0
- data/ext/project.h +3 -1
- data/ext/rubymain.cpp +113 -5
- data/lib/em/deferrable.rb +89 -0
- data/lib/em/eventable.rb +50 -0
- data/lib/eventmachine.rb +274 -9
- data/lib/eventmachine_version.rb +42 -0
- data/lib/evma/callback.rb +35 -0
- data/lib/evma/container.rb +77 -0
- data/lib/evma/factory.rb +80 -0
- data/lib/evma/protocol.rb +89 -0
- data/lib/evma/reactor.rb +50 -0
- data/lib/evma.rb +35 -0
- data/lib/pr_eventmachine.rb +714 -0
- data/lib/protocols/header_and_content.rb +134 -0
- data/lib/protocols/httpclient.rb +233 -0
- data/lib/protocols/line_and_text.rb +141 -0
- data/lib/protocols/tcptest.rb +67 -0
- data/tests/test_basic.rb +106 -0
- data/tests/test_eventables.rb +85 -0
- data/tests/test_hc.rb +207 -0
- data/tests/test_httpclient.rb +94 -0
- data/tests/test_ltp.rb +192 -0
- data/tests/test_ud.rb +52 -0
- metadata +44 -18
- data/ext/Makefile +0 -139
- data/ext/mkmf.log +0 -59
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: eventmachine
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2006-
|
6
|
+
version: 0.7.0
|
7
|
+
date: 2006-11-22 00:00:00 -05:00
|
8
8
|
summary: Ruby/EventMachine socket engine library
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -25,35 +25,60 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
post_install_message:
|
28
29
|
authors:
|
29
30
|
- Francis Cianfrocca
|
30
31
|
files:
|
32
|
+
- tests/test_httpclient.rb
|
33
|
+
- tests/test_basic.rb
|
31
34
|
- tests/testem.rb
|
35
|
+
- tests/test_eventables.rb
|
36
|
+
- tests/test_ud.rb
|
37
|
+
- tests/test_ltp.rb
|
38
|
+
- tests/test_hc.rb
|
39
|
+
- lib/em
|
40
|
+
- lib/protocols
|
41
|
+
- lib/evma
|
32
42
|
- lib/eventmachine.rb
|
43
|
+
- lib/pr_eventmachine.rb
|
44
|
+
- lib/evma.rb
|
45
|
+
- lib/eventmachine_version.rb
|
46
|
+
- lib/em/eventable.rb
|
47
|
+
- lib/em/deferrable.rb
|
48
|
+
- lib/protocols/httpclient.rb
|
49
|
+
- lib/protocols/tcptest.rb
|
50
|
+
- lib/protocols/line_and_text.rb
|
51
|
+
- lib/protocols/header_and_content.rb
|
52
|
+
- lib/evma/reactor.rb
|
53
|
+
- lib/evma/protocol.rb
|
54
|
+
- lib/evma/container.rb
|
55
|
+
- lib/evma/factory.rb
|
56
|
+
- lib/evma/callback.rb
|
57
|
+
- ext/em.cpp
|
58
|
+
- ext/ssl.cpp
|
59
|
+
- ext/files.cpp
|
33
60
|
- ext/binder.cpp
|
34
|
-
- ext/page.h
|
35
|
-
- ext/cmain.cpp
|
36
61
|
- ext/sigs.cpp
|
37
|
-
- ext/rubymain.cpp
|
38
|
-
- ext/Makefile
|
39
|
-
- ext/sigs.h
|
40
|
-
- ext/ed.cpp
|
41
|
-
- ext/binder.h
|
42
62
|
- ext/em.h
|
43
|
-
- ext/
|
44
|
-
- ext/
|
45
|
-
- ext/
|
63
|
+
- ext/ssl.h
|
64
|
+
- ext/files.h
|
65
|
+
- ext/binder.h
|
66
|
+
- ext/sigs.h
|
46
67
|
- ext/project.h
|
47
68
|
- ext/eventmachine.h
|
48
|
-
- ext/em.cpp
|
49
|
-
- ext/extconf.rb
|
50
|
-
- ext/emwin.cpp
|
51
69
|
- ext/page.cpp
|
52
|
-
- ext/
|
53
|
-
- ext/
|
70
|
+
- ext/emwin.cpp
|
71
|
+
- ext/page.h
|
72
|
+
- ext/emwin.h
|
73
|
+
- ext/rubymain.cpp
|
74
|
+
- ext/extconf.rb
|
75
|
+
- ext/cmain.cpp
|
76
|
+
- ext/ed.cpp
|
77
|
+
- ext/ed.h
|
54
78
|
- README
|
55
79
|
- RELEASE_NOTES
|
56
80
|
- COPYING
|
81
|
+
- TODO
|
57
82
|
test_files:
|
58
83
|
- tests/testem.rb
|
59
84
|
rdoc_options:
|
@@ -66,6 +91,7 @@ extra_rdoc_files:
|
|
66
91
|
- README
|
67
92
|
- RELEASE_NOTES
|
68
93
|
- COPYING
|
94
|
+
- TODO
|
69
95
|
executables: []
|
70
96
|
|
71
97
|
extensions:
|
data/ext/Makefile
DELETED
@@ -1,139 +0,0 @@
|
|
1
|
-
|
2
|
-
SHELL = /bin/sh
|
3
|
-
|
4
|
-
#### Start of system configuration section. ####
|
5
|
-
|
6
|
-
srcdir = /home/francis/rubyforge/eventmachine/version_0/ext
|
7
|
-
topdir = /usr/local/lib/ruby/1.8/i686-linux
|
8
|
-
hdrdir = $(topdir)
|
9
|
-
VPATH = $(srcdir):$(topdir):$(hdrdir)
|
10
|
-
prefix = $(DESTDIR)/usr/local
|
11
|
-
exec_prefix = $(DESTDIR)/usr/local
|
12
|
-
sitedir = $(prefix)/lib/ruby/site_ruby
|
13
|
-
rubylibdir = $(libdir)/ruby/$(ruby_version)
|
14
|
-
archdir = $(rubylibdir)/$(arch)
|
15
|
-
sbindir = $(exec_prefix)/sbin
|
16
|
-
datadir = $(prefix)/share
|
17
|
-
includedir = $(prefix)/include
|
18
|
-
infodir = $(prefix)/info
|
19
|
-
sysconfdir = $(prefix)/etc
|
20
|
-
mandir = $(prefix)/man
|
21
|
-
libdir = $(DESTDIR)/usr/local/lib
|
22
|
-
sharedstatedir = $(prefix)/com
|
23
|
-
oldincludedir = $(DESTDIR)/usr/include
|
24
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
25
|
-
bindir = $(exec_prefix)/bin
|
26
|
-
localstatedir = $(prefix)/var
|
27
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
28
|
-
libexecdir = $(exec_prefix)/libexec
|
29
|
-
|
30
|
-
CC = gcc
|
31
|
-
LIBRUBY = $(LIBRUBY_A)
|
32
|
-
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
33
|
-
LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L$(libdir) -L.
|
34
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
35
|
-
|
36
|
-
CFLAGS = -fPIC -g -O2
|
37
|
-
CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL
|
38
|
-
CXXFLAGS = $(CFLAGS)
|
39
|
-
DLDFLAGS =
|
40
|
-
LDSHARED = $(CXX) -shared
|
41
|
-
AR = ar
|
42
|
-
EXEEXT =
|
43
|
-
|
44
|
-
RUBY_INSTALL_NAME = ruby
|
45
|
-
RUBY_SO_NAME = ruby
|
46
|
-
arch = i686-linux
|
47
|
-
sitearch = i686-linux
|
48
|
-
ruby_version = 1.8
|
49
|
-
ruby = /usr/local/bin/ruby
|
50
|
-
RUBY = $(ruby)
|
51
|
-
RM = rm -f
|
52
|
-
MAKEDIRS = mkdir -p
|
53
|
-
INSTALL = /usr/bin/install -c
|
54
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
55
|
-
INSTALL_DATA = $(INSTALL) -m 644
|
56
|
-
COPY = cp
|
57
|
-
|
58
|
-
#### End of system configuration section. ####
|
59
|
-
|
60
|
-
preload =
|
61
|
-
|
62
|
-
libpath = $(libdir)
|
63
|
-
LIBPATH = -L'$(libdir)' -Wl,-R'$(libdir)'
|
64
|
-
DEFFILE =
|
65
|
-
|
66
|
-
CLEANFILES =
|
67
|
-
DISTCLEANFILES =
|
68
|
-
|
69
|
-
extout =
|
70
|
-
extout_prefix =
|
71
|
-
target_prefix =
|
72
|
-
LOCAL_LIBS =
|
73
|
-
LIBS = -lcrypto -lssl -lpthread -ldl -lcrypt -lm -lc
|
74
|
-
SRCS = binder.cpp cmain.cpp sigs.cpp rubymain.cpp ed.cpp ssl.cpp em.cpp emwin.cpp page.cpp
|
75
|
-
OBJS = binder.o cmain.o sigs.o rubymain.o ed.o ssl.o em.o emwin.o page.o
|
76
|
-
TARGET = rubyeventmachine
|
77
|
-
DLLIB = $(TARGET).so
|
78
|
-
STATIC_LIB =
|
79
|
-
|
80
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
81
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
82
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
83
|
-
|
84
|
-
TARGET_SO = $(DLLIB)
|
85
|
-
CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
|
86
|
-
CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
|
87
|
-
|
88
|
-
all: $(DLLIB)
|
89
|
-
static: $(STATIC_LIB)
|
90
|
-
|
91
|
-
clean:
|
92
|
-
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
93
|
-
|
94
|
-
distclean: clean
|
95
|
-
@-$(RM) Makefile extconf.h conftest.* mkmf.log
|
96
|
-
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
97
|
-
|
98
|
-
realclean: distclean
|
99
|
-
install: install-so install-rb
|
100
|
-
|
101
|
-
install-so: $(RUBYARCHDIR)
|
102
|
-
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
103
|
-
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
104
|
-
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
105
|
-
install-rb: pre-install-rb install-rb-default
|
106
|
-
install-rb-default: pre-install-rb-default
|
107
|
-
pre-install-rb: Makefile
|
108
|
-
pre-install-rb-default: Makefile
|
109
|
-
$(RUBYARCHDIR):
|
110
|
-
$(MAKEDIRS) $@
|
111
|
-
|
112
|
-
site-install: site-install-so site-install-rb
|
113
|
-
site-install-so: install-so
|
114
|
-
site-install-rb: install-rb
|
115
|
-
|
116
|
-
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
117
|
-
|
118
|
-
.cc.o:
|
119
|
-
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
120
|
-
|
121
|
-
.cxx.o:
|
122
|
-
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
123
|
-
|
124
|
-
.cpp.o:
|
125
|
-
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
126
|
-
|
127
|
-
.C.o:
|
128
|
-
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
129
|
-
|
130
|
-
.c.o:
|
131
|
-
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
132
|
-
|
133
|
-
$(DLLIB): $(OBJS)
|
134
|
-
@-$(RM) $@
|
135
|
-
$(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $@ $(OBJS) $(LOCAL_LIBS) $(LIBS)
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
$(OBJS): ruby.h defines.h
|
data/ext/mkmf.log
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
have_library: checking for main() in -lpthread... -------------------- yes
|
2
|
-
|
3
|
-
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-linux -g -O2 conftest.c -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -lruby-static -lpthread -ldl -lcrypt -lm -lc"
|
4
|
-
checked program was:
|
5
|
-
/* begin */
|
6
|
-
|
7
|
-
/*top*/
|
8
|
-
int main() { return 0; }
|
9
|
-
int t() { main(); return 0; }
|
10
|
-
/* end */
|
11
|
-
|
12
|
-
--------------------
|
13
|
-
|
14
|
-
have_library: checking for main() in -lssl... -------------------- yes
|
15
|
-
|
16
|
-
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-linux -g -O2 conftest.c -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -lpthread -lruby-static -lssl -lpthread -ldl -lcrypt -lm -lc"
|
17
|
-
checked program was:
|
18
|
-
/* begin */
|
19
|
-
|
20
|
-
/*top*/
|
21
|
-
int main() { return 0; }
|
22
|
-
int t() { main(); return 0; }
|
23
|
-
/* end */
|
24
|
-
|
25
|
-
--------------------
|
26
|
-
|
27
|
-
have_library: checking for main() in -lcrypto... -------------------- yes
|
28
|
-
|
29
|
-
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-linux -g -O2 conftest.c -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -lssl -lpthread -lruby-static -lcrypto -lssl -lpthread -ldl -lcrypt -lm -lc"
|
30
|
-
checked program was:
|
31
|
-
/* begin */
|
32
|
-
|
33
|
-
/*top*/
|
34
|
-
int main() { return 0; }
|
35
|
-
int t() { main(); return 0; }
|
36
|
-
/* end */
|
37
|
-
|
38
|
-
--------------------
|
39
|
-
|
40
|
-
have_header: checking for openssl/ssl.h... -------------------- yes
|
41
|
-
|
42
|
-
"gcc -E -I. -I/usr/local/lib/ruby/1.8/i686-linux -g -O2 conftest.c -o conftest.i"
|
43
|
-
checked program was:
|
44
|
-
/* begin */
|
45
|
-
#include <openssl/ssl.h>
|
46
|
-
/* end */
|
47
|
-
|
48
|
-
--------------------
|
49
|
-
|
50
|
-
have_header: checking for openssl/err.h... -------------------- yes
|
51
|
-
|
52
|
-
"gcc -E -I. -I/usr/local/lib/ruby/1.8/i686-linux -g -O2 conftest.c -o conftest.i"
|
53
|
-
checked program was:
|
54
|
-
/* begin */
|
55
|
-
#include <openssl/err.h>
|
56
|
-
/* end */
|
57
|
-
|
58
|
-
--------------------
|
59
|
-
|