eventmachine 1.0.0.beta.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/.gitignore +16 -0
  2. data/Gemfile +1 -0
  3. data/README +81 -0
  4. data/Rakefile +11 -0
  5. data/docs/COPYING +60 -0
  6. data/docs/ChangeLog +211 -0
  7. data/docs/DEFERRABLES +246 -0
  8. data/docs/EPOLL +141 -0
  9. data/docs/GNU +281 -0
  10. data/docs/INSTALL +13 -0
  11. data/docs/KEYBOARD +42 -0
  12. data/docs/LEGAL +25 -0
  13. data/docs/LIGHTWEIGHT_CONCURRENCY +130 -0
  14. data/docs/PURE_RUBY +75 -0
  15. data/docs/RELEASE_NOTES +94 -0
  16. data/docs/SMTP +4 -0
  17. data/docs/SPAWNED_PROCESSES +148 -0
  18. data/docs/TODO +8 -0
  19. data/eventmachine.gemspec +33 -0
  20. data/examples/ex_channel.rb +43 -0
  21. data/examples/ex_queue.rb +2 -0
  22. data/examples/ex_tick_loop_array.rb +15 -0
  23. data/examples/ex_tick_loop_counter.rb +32 -0
  24. data/examples/helper.rb +2 -0
  25. data/ext/binder.cpp +124 -0
  26. data/ext/binder.h +46 -0
  27. data/ext/cmain.cpp +838 -0
  28. data/ext/ed.cpp +1884 -0
  29. data/ext/ed.h +418 -0
  30. data/ext/em.cpp +2348 -0
  31. data/ext/em.h +228 -0
  32. data/ext/eventmachine.h +123 -0
  33. data/ext/extconf.rb +157 -0
  34. data/ext/fastfilereader/extconf.rb +85 -0
  35. data/ext/fastfilereader/mapper.cpp +214 -0
  36. data/ext/fastfilereader/mapper.h +59 -0
  37. data/ext/fastfilereader/rubymain.cpp +127 -0
  38. data/ext/kb.cpp +79 -0
  39. data/ext/page.cpp +107 -0
  40. data/ext/page.h +51 -0
  41. data/ext/pipe.cpp +347 -0
  42. data/ext/project.h +155 -0
  43. data/ext/rubymain.cpp +1200 -0
  44. data/ext/ssl.cpp +460 -0
  45. data/ext/ssl.h +94 -0
  46. data/java/.classpath +8 -0
  47. data/java/.project +17 -0
  48. data/java/src/com/rubyeventmachine/EmReactor.java +571 -0
  49. data/java/src/com/rubyeventmachine/EmReactorException.java +40 -0
  50. data/java/src/com/rubyeventmachine/EventableChannel.java +69 -0
  51. data/java/src/com/rubyeventmachine/EventableDatagramChannel.java +189 -0
  52. data/java/src/com/rubyeventmachine/EventableSocketChannel.java +364 -0
  53. data/lib/em/buftok.rb +138 -0
  54. data/lib/em/callback.rb +26 -0
  55. data/lib/em/channel.rb +57 -0
  56. data/lib/em/connection.rb +569 -0
  57. data/lib/em/deferrable.rb +206 -0
  58. data/lib/em/file_watch.rb +54 -0
  59. data/lib/em/future.rb +61 -0
  60. data/lib/em/iterator.rb +270 -0
  61. data/lib/em/messages.rb +66 -0
  62. data/lib/em/process_watch.rb +44 -0
  63. data/lib/em/processes.rb +119 -0
  64. data/lib/em/protocols.rb +36 -0
  65. data/lib/em/protocols/header_and_content.rb +138 -0
  66. data/lib/em/protocols/httpclient.rb +268 -0
  67. data/lib/em/protocols/httpclient2.rb +590 -0
  68. data/lib/em/protocols/line_and_text.rb +125 -0
  69. data/lib/em/protocols/line_protocol.rb +28 -0
  70. data/lib/em/protocols/linetext2.rb +161 -0
  71. data/lib/em/protocols/memcache.rb +323 -0
  72. data/lib/em/protocols/object_protocol.rb +45 -0
  73. data/lib/em/protocols/postgres3.rb +247 -0
  74. data/lib/em/protocols/saslauth.rb +175 -0
  75. data/lib/em/protocols/smtpclient.rb +357 -0
  76. data/lib/em/protocols/smtpserver.rb +640 -0
  77. data/lib/em/protocols/socks4.rb +66 -0
  78. data/lib/em/protocols/stomp.rb +200 -0
  79. data/lib/em/protocols/tcptest.rb +53 -0
  80. data/lib/em/pure_ruby.rb +1013 -0
  81. data/lib/em/queue.rb +62 -0
  82. data/lib/em/spawnable.rb +85 -0
  83. data/lib/em/streamer.rb +130 -0
  84. data/lib/em/tick_loop.rb +85 -0
  85. data/lib/em/timers.rb +57 -0
  86. data/lib/em/version.rb +3 -0
  87. data/lib/eventmachine.rb +1548 -0
  88. data/lib/jeventmachine.rb +258 -0
  89. data/lib/rubyeventmachine.rb +2 -0
  90. data/setup.rb +1585 -0
  91. data/tasks/cpp.rake_example +77 -0
  92. data/tasks/doc.rake +30 -0
  93. data/tasks/package.rake +85 -0
  94. data/tasks/test.rake +6 -0
  95. data/tests/client.crt +31 -0
  96. data/tests/client.key +51 -0
  97. data/tests/test_attach.rb +136 -0
  98. data/tests/test_basic.rb +249 -0
  99. data/tests/test_channel.rb +64 -0
  100. data/tests/test_connection_count.rb +35 -0
  101. data/tests/test_defer.rb +49 -0
  102. data/tests/test_deferrable.rb +35 -0
  103. data/tests/test_epoll.rb +160 -0
  104. data/tests/test_error_handler.rb +35 -0
  105. data/tests/test_errors.rb +82 -0
  106. data/tests/test_exc.rb +55 -0
  107. data/tests/test_file_watch.rb +49 -0
  108. data/tests/test_futures.rb +198 -0
  109. data/tests/test_get_sock_opt.rb +30 -0
  110. data/tests/test_handler_check.rb +37 -0
  111. data/tests/test_hc.rb +190 -0
  112. data/tests/test_httpclient.rb +227 -0
  113. data/tests/test_httpclient2.rb +154 -0
  114. data/tests/test_inactivity_timeout.rb +50 -0
  115. data/tests/test_kb.rb +60 -0
  116. data/tests/test_ltp.rb +190 -0
  117. data/tests/test_ltp2.rb +317 -0
  118. data/tests/test_next_tick.rb +133 -0
  119. data/tests/test_object_protocol.rb +37 -0
  120. data/tests/test_pause.rb +70 -0
  121. data/tests/test_pending_connect_timeout.rb +48 -0
  122. data/tests/test_process_watch.rb +50 -0
  123. data/tests/test_processes.rb +128 -0
  124. data/tests/test_proxy_connection.rb +144 -0
  125. data/tests/test_pure.rb +134 -0
  126. data/tests/test_queue.rb +44 -0
  127. data/tests/test_running.rb +42 -0
  128. data/tests/test_sasl.rb +72 -0
  129. data/tests/test_send_file.rb +251 -0
  130. data/tests/test_servers.rb +76 -0
  131. data/tests/test_smtpclient.rb +83 -0
  132. data/tests/test_smtpserver.rb +85 -0
  133. data/tests/test_spawn.rb +322 -0
  134. data/tests/test_ssl_args.rb +79 -0
  135. data/tests/test_ssl_methods.rb +50 -0
  136. data/tests/test_ssl_verify.rb +82 -0
  137. data/tests/test_tick_loop.rb +59 -0
  138. data/tests/test_timers.rb +160 -0
  139. data/tests/test_ud.rb +36 -0
  140. data/tests/testem.rb +31 -0
  141. metadata +240 -0
@@ -0,0 +1,31 @@
1
+ # $Id$
2
+
3
+ require 'test/unit'
4
+
5
+ module EmTestRunner
6
+ @em_root = File.expand_path(File.dirname(__FILE__) + '/../')
7
+ @lib_dir = File.join(@em_root, 'lib')
8
+ @ext_dir = File.join(@em_root, 'ext')
9
+ @java_dir = File.join(@em_root, 'java')
10
+
11
+ def self.run(glob = 'test_*.rb')
12
+ $:.unshift(@lib_dir)
13
+ $:.unshift(@ext_dir)
14
+ $:.unshift(@java_dir)
15
+
16
+ case glob
17
+ when Array
18
+ files = glob
19
+ else
20
+ files = Dir[File.dirname(__FILE__) + '/' + glob]
21
+ end
22
+
23
+ files.each do |tc|
24
+ require tc
25
+ end
26
+ end
27
+ end
28
+
29
+ if __FILE__ == $0
30
+ EmTestRunner.run
31
+ end
metadata ADDED
@@ -0,0 +1,240 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eventmachine
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: true
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ - beta
10
+ - 2
11
+ version: 1.0.0.beta.2
12
+ platform: x86-mingw32
13
+ authors:
14
+ - Francis Cianfrocca
15
+ - Aman Gupta
16
+ autorequire:
17
+ bindir: bin
18
+ cert_chain: []
19
+
20
+ date: 2010-11-13 00:00:00 +05:30
21
+ default_executable:
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: rake-compiler
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :development
34
+ version_requirements: *id001
35
+ description: |-
36
+ EventMachine implements a fast, single-threaded engine for arbitrary network
37
+ communications. It's extremely easy to use in Ruby. EventMachine wraps all
38
+ interactions with IP sockets, allowing programs to concentrate on the
39
+ implementation of network protocols. It can be used to create both network
40
+ servers and clients. To create a server or client, a Ruby program only needs
41
+ to specify the IP address and port, and provide a Module that implements the
42
+ communications protocol. Implementations of several standard network protocols
43
+ are provided with the package, primarily to serve as examples. The real goal
44
+ of EventMachine is to enable programs to easily interface with other programs
45
+ using TCP/IP, especially if custom protocols are required.
46
+ email:
47
+ - garbagecat10@gmail.com
48
+ - aman@tmm1.net
49
+ executables: []
50
+
51
+ extensions: []
52
+
53
+ extra_rdoc_files: []
54
+
55
+ files:
56
+ - .gitignore
57
+ - Gemfile
58
+ - README
59
+ - Rakefile
60
+ - docs/COPYING
61
+ - docs/ChangeLog
62
+ - docs/DEFERRABLES
63
+ - docs/EPOLL
64
+ - docs/GNU
65
+ - docs/INSTALL
66
+ - docs/KEYBOARD
67
+ - docs/LEGAL
68
+ - docs/LIGHTWEIGHT_CONCURRENCY
69
+ - docs/PURE_RUBY
70
+ - docs/RELEASE_NOTES
71
+ - docs/SMTP
72
+ - docs/SPAWNED_PROCESSES
73
+ - docs/TODO
74
+ - eventmachine.gemspec
75
+ - examples/ex_channel.rb
76
+ - examples/ex_queue.rb
77
+ - examples/ex_tick_loop_array.rb
78
+ - examples/ex_tick_loop_counter.rb
79
+ - examples/helper.rb
80
+ - ext/binder.cpp
81
+ - ext/binder.h
82
+ - ext/cmain.cpp
83
+ - ext/ed.cpp
84
+ - ext/ed.h
85
+ - ext/em.cpp
86
+ - ext/em.h
87
+ - ext/eventmachine.h
88
+ - ext/extconf.rb
89
+ - ext/fastfilereader/extconf.rb
90
+ - ext/fastfilereader/mapper.cpp
91
+ - ext/fastfilereader/mapper.h
92
+ - ext/fastfilereader/rubymain.cpp
93
+ - ext/kb.cpp
94
+ - ext/page.cpp
95
+ - ext/page.h
96
+ - ext/pipe.cpp
97
+ - ext/project.h
98
+ - ext/rubymain.cpp
99
+ - ext/ssl.cpp
100
+ - ext/ssl.h
101
+ - java/.classpath
102
+ - java/.project
103
+ - java/src/com/rubyeventmachine/EmReactor.java
104
+ - java/src/com/rubyeventmachine/EmReactorException.java
105
+ - java/src/com/rubyeventmachine/EventableChannel.java
106
+ - java/src/com/rubyeventmachine/EventableDatagramChannel.java
107
+ - java/src/com/rubyeventmachine/EventableSocketChannel.java
108
+ - lib/em/buftok.rb
109
+ - lib/em/callback.rb
110
+ - lib/em/channel.rb
111
+ - lib/em/connection.rb
112
+ - lib/em/deferrable.rb
113
+ - lib/em/file_watch.rb
114
+ - lib/em/future.rb
115
+ - lib/em/iterator.rb
116
+ - lib/em/messages.rb
117
+ - lib/em/process_watch.rb
118
+ - lib/em/processes.rb
119
+ - lib/em/protocols.rb
120
+ - lib/em/protocols/header_and_content.rb
121
+ - lib/em/protocols/httpclient.rb
122
+ - lib/em/protocols/httpclient2.rb
123
+ - lib/em/protocols/line_and_text.rb
124
+ - lib/em/protocols/line_protocol.rb
125
+ - lib/em/protocols/linetext2.rb
126
+ - lib/em/protocols/memcache.rb
127
+ - lib/em/protocols/object_protocol.rb
128
+ - lib/em/protocols/postgres3.rb
129
+ - lib/em/protocols/saslauth.rb
130
+ - lib/em/protocols/smtpclient.rb
131
+ - lib/em/protocols/smtpserver.rb
132
+ - lib/em/protocols/socks4.rb
133
+ - lib/em/protocols/stomp.rb
134
+ - lib/em/protocols/tcptest.rb
135
+ - lib/em/pure_ruby.rb
136
+ - lib/em/queue.rb
137
+ - lib/em/spawnable.rb
138
+ - lib/em/streamer.rb
139
+ - lib/em/tick_loop.rb
140
+ - lib/em/timers.rb
141
+ - lib/em/version.rb
142
+ - lib/eventmachine.rb
143
+ - lib/jeventmachine.rb
144
+ - setup.rb
145
+ - tasks/cpp.rake_example
146
+ - tasks/doc.rake
147
+ - tasks/package.rake
148
+ - tasks/test.rake
149
+ - tests/client.crt
150
+ - tests/client.key
151
+ - tests/test_attach.rb
152
+ - tests/test_basic.rb
153
+ - tests/test_channel.rb
154
+ - tests/test_connection_count.rb
155
+ - tests/test_defer.rb
156
+ - tests/test_deferrable.rb
157
+ - tests/test_epoll.rb
158
+ - tests/test_error_handler.rb
159
+ - tests/test_errors.rb
160
+ - tests/test_exc.rb
161
+ - tests/test_file_watch.rb
162
+ - tests/test_futures.rb
163
+ - tests/test_get_sock_opt.rb
164
+ - tests/test_handler_check.rb
165
+ - tests/test_hc.rb
166
+ - tests/test_httpclient.rb
167
+ - tests/test_httpclient2.rb
168
+ - tests/test_inactivity_timeout.rb
169
+ - tests/test_kb.rb
170
+ - tests/test_ltp.rb
171
+ - tests/test_ltp2.rb
172
+ - tests/test_next_tick.rb
173
+ - tests/test_object_protocol.rb
174
+ - tests/test_pause.rb
175
+ - tests/test_pending_connect_timeout.rb
176
+ - tests/test_process_watch.rb
177
+ - tests/test_processes.rb
178
+ - tests/test_proxy_connection.rb
179
+ - tests/test_pure.rb
180
+ - tests/test_queue.rb
181
+ - tests/test_running.rb
182
+ - tests/test_sasl.rb
183
+ - tests/test_send_file.rb
184
+ - tests/test_servers.rb
185
+ - tests/test_smtpclient.rb
186
+ - tests/test_smtpserver.rb
187
+ - tests/test_spawn.rb
188
+ - tests/test_ssl_args.rb
189
+ - tests/test_ssl_methods.rb
190
+ - tests/test_ssl_verify.rb
191
+ - tests/test_tick_loop.rb
192
+ - tests/test_timers.rb
193
+ - tests/test_ud.rb
194
+ - tests/testem.rb
195
+ - lib/1.8/rubyeventmachine.so
196
+ - lib/1.9/rubyeventmachine.so
197
+ - lib/1.8/fastfilereaderext.so
198
+ - lib/1.9/fastfilereaderext.so
199
+ - lib/rubyeventmachine.rb
200
+ has_rdoc: true
201
+ homepage: http://rubyeventmachine.com
202
+ licenses: []
203
+
204
+ post_install_message:
205
+ rdoc_options:
206
+ - --title
207
+ - EventMachine
208
+ - --main
209
+ - README
210
+ - -x
211
+ - lib/em/version
212
+ - -x
213
+ - lib/jeventmachine
214
+ require_paths:
215
+ - lib
216
+ required_ruby_version: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ segments:
221
+ - 0
222
+ version: "0"
223
+ required_rubygems_version: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ">"
226
+ - !ruby/object:Gem::Version
227
+ segments:
228
+ - 1
229
+ - 3
230
+ - 1
231
+ version: 1.3.1
232
+ requirements: []
233
+
234
+ rubyforge_project: eventmachine
235
+ rubygems_version: 1.3.6
236
+ signing_key:
237
+ specification_version: 3
238
+ summary: Ruby/EventMachine library
239
+ test_files: []
240
+