evdispatch 0.1.0 → 0.1.1

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.
Files changed (73) hide show
  1. data/Manifest.txt +65 -65
  2. data/ext/revdispatch/extconf.rb +12 -11
  3. data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/Makefile.am +1 -1
  4. data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/Makefile.in +2 -2
  5. data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/configure +1 -2
  6. data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/configure.ac +2 -3
  7. data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/Makefile.in +5 -4
  8. data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/aclocal.m4 +29 -0
  9. data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/configure +64 -28
  10. data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/configure.ac +1 -1
  11. data/ext/revdispatch/libdispatch-0.1/libev-3.2/libev.la +35 -0
  12. data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/src/Makefile.in +1 -1
  13. data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/test/Makefile.in +1 -1
  14. data/ext/revdispatch/test.rb +1 -1
  15. data/lib/evdispatch/version.rb +1 -1
  16. data/website/index.html +24 -33
  17. data/website/index.txt +8 -2
  18. data/website/stylesheets/screen.css +2 -2
  19. data/website/template.html.erb +1 -0
  20. metadata +66 -66
  21. data/ext/revdispatch/libevdispatch/confdefs.h +0 -32
  22. data/ext/revdispatch/libevdispatch/test/helper.rb +0 -94
  23. data/ext/revdispatch/libevdispatch/test/next_test.rb +0 -8
  24. data/ext/revdispatch/libevdispatch/test/server.rb +0 -9
  25. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/Changelog +0 -0
  26. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/LICENSE +0 -0
  27. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/README +0 -0
  28. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/TODO +0 -0
  29. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/aclocal.m4 +0 -0
  30. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/autogen.sh +0 -0
  31. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/config.guess +0 -0
  32. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/config.h.in +0 -0
  33. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/config.sub +0 -0
  34. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/depcomp +0 -0
  35. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/install-sh +0 -0
  36. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/Changes +0 -0
  37. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/LICENSE +0 -0
  38. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/Makefile.am +0 -0
  39. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/README +0 -0
  40. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/autogen.sh +0 -0
  41. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/config.guess +0 -0
  42. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/config.h.in +0 -0
  43. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/config.sub +0 -0
  44. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev++.h +0 -0
  45. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev.3 +0 -0
  46. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev.c +0 -0
  47. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev.h +0 -0
  48. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev.pod +0 -0
  49. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev_epoll.c +0 -0
  50. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev_kqueue.c +0 -0
  51. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev_poll.c +0 -0
  52. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev_port.c +0 -0
  53. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev_select.c +0 -0
  54. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev_vars.h +0 -0
  55. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev_win32.c +0 -0
  56. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ev_wrap.h +0 -0
  57. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/event.c +0 -0
  58. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/event.h +0 -0
  59. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/install-sh +0 -0
  60. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/libev.m4 +0 -0
  61. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/ltmain.sh +0 -0
  62. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/missing +0 -0
  63. /data/ext/revdispatch/{libevdispatch/libev → libdispatch-0.1/libev-3.2}/mkinstalldirs +0 -0
  64. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/ltmain.sh +0 -0
  65. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/missing +0 -0
  66. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/src/Makefile.am +0 -0
  67. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/src/ev_dispatch.cc +0 -0
  68. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/src/ev_dispatch.h +0 -0
  69. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/src/ev_http.cc +0 -0
  70. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/src/ev_http.h +0 -0
  71. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/test/Makefile.am +0 -0
  72. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/test/key_test.cc +0 -0
  73. /data/ext/revdispatch/{libevdispatch → libdispatch-0.1}/test/next_test.cc +0 -0
@@ -2,7 +2,7 @@ module Evdispatch #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -18,14 +18,18 @@
18
18
  <h1>evdispatch</h1>
19
19
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/evdispatch"; return false'>
20
20
  <p>Get Version</p>
21
- <a href="http://rubyforge.org/projects/evdispatch" class="numbers">0.1.0</a>
21
+ <a href="http://rubyforge.org/projects/evdispatch" class="numbers">0.1.1</a>
22
22
  </div>
23
- <h1>&#x2192; &#8216;evdispatch&#8217;</h1>
24
-
23
+ <h4 style="float:right;padding-right:10px;">&#x2192; &#8216;evdispatch&#8217;</h4>
25
24
 
26
25
  <h2>What</h2>
27
26
 
28
27
 
28
+ <p>A library for making http requests in parallel. Uses the libev library to run
29
+ an event loop on a background posix thread, that uses libcurls multi interface
30
+ to issue <span class="caps">HTTP</span> requests.</p>
31
+
32
+
29
33
  <h2>Installing</h2>
30
34
 
31
35
 
@@ -38,41 +42,28 @@
38
42
  <h2>Demonstration of usage</h2>
39
43
 
40
44
 
41
- <p>require &#8216;evdispatch&#8217;</p>
42
-
43
-
44
- <ol>
45
- <li>create a new dispatch loop
46
- d = Evdispatch::Loop.new</li>
47
- </ol>
48
-
49
-
50
- <ol>
51
- <li>start the event loop thread
52
- d.start</li>
53
- </ol>
54
-
55
-
56
- <ol>
57
- <li>send a dispatch http request and store a handle to the request
58
- google_id = d.request_http(&#8220;http://www.google.com/&#8221;)</li>
59
- </ol>
45
+ <p><pre class='syntax'>
46
+ <span class="ident">require</span> <span class="punct">'</span><span class="string">rubygems</span><span class="punct">'</span>
47
+ <span class="ident">require</span> <span class="punct">'</span><span class="string">evdispatch</span><span class="punct">'</span>
60
48
 
49
+ <span class="comment"># create a new dispatch loop</span>
50
+ <span class="ident">d</span> <span class="punct">=</span> <span class="constant">Evdispatch</span><span class="punct">::</span><span class="constant">Loop</span><span class="punct">.</span><span class="ident">new</span>
61
51
 
62
- <ol>
63
- <li>do some processing and later on check for the response
64
- response = d.response( google_id )</li>
65
- </ol>
52
+ <span class="comment"># start the event loop thread</span>
53
+ <span class="ident">d</span><span class="punct">.</span><span class="ident">start</span>
66
54
 
55
+ <span class="comment"># send a dispatch http request and store a handle to the request</span>
56
+ <span class="ident">google_id</span> <span class="punct">=</span> <span class="ident">d</span><span class="punct">.</span><span class="ident">request_http</span><span class="punct">(&quot;</span><span class="string">http://www.google.com/</span><span class="punct">&quot;)</span>
67
57
 
68
- <p>puts response[:response_time]
69
- puts response[:body]</p>
58
+ <span class="comment"># do some processing and later on check for the response</span>
59
+ <span class="ident">response</span> <span class="punct">=</span> <span class="ident">d</span><span class="punct">.</span><span class="ident">response</span><span class="punct">(</span> <span class="ident">google_id</span> <span class="punct">)</span>
70
60
 
61
+ <span class="ident">puts</span> <span class="ident">response</span><span class="punct">[</span><span class="symbol">:response_time</span><span class="punct">]</span>
62
+ <span class="ident">puts</span> <span class="ident">response</span><span class="punct">[</span><span class="symbol">:body</span><span class="punct">]</span>
71
63
 
72
- <ol>
73
- <li>sometime later you can stop the event loop
74
- d.stop</li>
75
- </ol>
64
+ <span class="comment"># sometime later you can stop the event loop</span>
65
+ <span class="ident">d</span><span class="punct">.</span><span class="ident">stop</span>
66
+ </pre></p>
76
67
 
77
68
 
78
69
  <h2>Forum</h2>
@@ -87,7 +78,7 @@ d.stop</li>
87
78
  <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
88
79
 
89
80
 
90
- <p>The trunk repository is <code>svn://rubyforge.org/var/svn/evdispatch/trunk</code> for anonymous access.</p>
81
+ <p>The trunk repository is <a href="http://evdispatch.rubyforge.org/svn/trunk/">http://evdispatch.rubyforge.org/svn/trunk</a> for anonymous access.</p>
91
82
 
92
83
 
93
84
  <h2>License</h2>
data/website/index.txt CHANGED
@@ -1,10 +1,13 @@
1
1
  h1. evdispatch
2
2
 
3
- h1. &#x2192; 'evdispatch'
3
+ <h4 style="float:right;padding-right:10px;">&#x2192; &#8216;evdispatch&#8217;</h4>
4
4
 
5
5
 
6
6
  h2. What
7
7
 
8
+ A library for making http requests in parallel. Uses the libev library to run
9
+ an event loop on a background posix thread, that uses libcurls multi interface
10
+ to issue HTTP requests.
8
11
 
9
12
  h2. Installing
10
13
 
@@ -15,6 +18,8 @@ h2. The basics
15
18
 
16
19
  h2. Demonstration of usage
17
20
 
21
+ <pre syntax="ruby">
22
+ require 'rubygems'
18
23
  require 'evdispatch'
19
24
 
20
25
  # create a new dispatch loop
@@ -34,6 +39,7 @@ puts response[:body]
34
39
 
35
40
  # sometime later you can stop the event loop
36
41
  d.stop
42
+ </pre>
37
43
 
38
44
 
39
45
  h2. Forum
@@ -44,7 +50,7 @@ h2. How to submit patches
44
50
 
45
51
  Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
46
52
 
47
- The trunk repository is <code>svn://rubyforge.org/var/svn/evdispatch/trunk</code> for anonymous access.
53
+ The trunk repository is <a href="http://evdispatch.rubyforge.org/svn/trunk/">http://evdispatch.rubyforge.org/svn/trunk</a> for anonymous access.
48
54
 
49
55
  h2. License
50
56
 
@@ -1,5 +1,5 @@
1
1
  body {
2
- background-color: #E1D1F1;
2
+ background-color: white;
3
3
  font-family: "Georgia", sans-serif;
4
4
  font-size: 16px;
5
5
  line-height: 1.6em;
@@ -24,7 +24,7 @@ li {
24
24
  }
25
25
  a {
26
26
  color: #5E5AFF;
27
- background-color: #DAC;
27
+ background-color: white;
28
28
  font-weight: normal;
29
29
  text-decoration: underline;
30
30
  }
@@ -22,6 +22,7 @@
22
22
  </div>
23
23
  <%= body %>
24
24
  <p class="coda">
25
+ <a href="http://xullicious.blogspot.com/">Xullicious</a><br/>
25
26
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
26
27
  </p>
27
28
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evdispatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd A. Fisher
@@ -56,73 +56,73 @@ files:
56
56
  - website/javascripts/rounded_corners_lite.inc.js
57
57
  - website/stylesheets/screen.css
58
58
  - website/template.html.erb
59
- - ext/revdispatch/revdispatch.cc
60
- - ext/revdispatch/extconf.rb
61
- - ext/revdispatch/libevdispatch/Changelog
62
- - ext/revdispatch/libevdispatch/LICENSE
63
- - ext/revdispatch/libevdispatch/Makefile.am
64
- - ext/revdispatch/libevdispatch/Makefile.in
65
- - ext/revdispatch/libevdispatch/README
66
- - ext/revdispatch/libevdispatch/TODO
67
- - ext/revdispatch/libevdispatch/aclocal.m4
68
- - ext/revdispatch/libevdispatch/autogen.sh
69
- - ext/revdispatch/libevdispatch/confdefs.h
70
- - ext/revdispatch/libevdispatch/config.guess
71
- - ext/revdispatch/libevdispatch/config.h.in
72
- - ext/revdispatch/libevdispatch/config.sub
73
- - ext/revdispatch/libevdispatch/configure
74
- - ext/revdispatch/libevdispatch/configure.ac
75
- - ext/revdispatch/libevdispatch/depcomp
76
- - ext/revdispatch/libevdispatch/install-sh
77
- - ext/revdispatch/libevdispatch/libev/Changes
78
- - ext/revdispatch/libevdispatch/libev/LICENSE
79
- - ext/revdispatch/libevdispatch/libev/Makefile.am
80
- - ext/revdispatch/libevdispatch/libev/Makefile.in
81
- - ext/revdispatch/libevdispatch/libev/README
82
- - ext/revdispatch/libevdispatch/libev/aclocal.m4
83
- - ext/revdispatch/libevdispatch/libev/autogen.sh
84
- - ext/revdispatch/libevdispatch/libev/config.guess
85
- - ext/revdispatch/libevdispatch/libev/config.h.in
86
- - ext/revdispatch/libevdispatch/libev/config.sub
87
- - ext/revdispatch/libevdispatch/libev/configure
88
- - ext/revdispatch/libevdispatch/libev/configure.ac
89
- - ext/revdispatch/libevdispatch/libev/ev++.h
90
- - ext/revdispatch/libevdispatch/libev/ev.3
91
- - ext/revdispatch/libevdispatch/libev/ev.c
92
- - ext/revdispatch/libevdispatch/libev/ev.h
93
- - ext/revdispatch/libevdispatch/libev/ev.pod
94
- - ext/revdispatch/libevdispatch/libev/ev_epoll.c
95
- - ext/revdispatch/libevdispatch/libev/ev_kqueue.c
96
- - ext/revdispatch/libevdispatch/libev/ev_poll.c
97
- - ext/revdispatch/libevdispatch/libev/ev_port.c
98
- - ext/revdispatch/libevdispatch/libev/ev_select.c
99
- - ext/revdispatch/libevdispatch/libev/ev_vars.h
100
- - ext/revdispatch/libevdispatch/libev/ev_win32.c
101
- - ext/revdispatch/libevdispatch/libev/ev_wrap.h
102
- - ext/revdispatch/libevdispatch/libev/event.c
103
- - ext/revdispatch/libevdispatch/libev/event.h
104
- - ext/revdispatch/libevdispatch/libev/install-sh
105
- - ext/revdispatch/libevdispatch/libev/libev.m4
106
- - ext/revdispatch/libevdispatch/libev/ltmain.sh
107
- - ext/revdispatch/libevdispatch/libev/missing
108
- - ext/revdispatch/libevdispatch/libev/mkinstalldirs
109
- - ext/revdispatch/libevdispatch/ltmain.sh
110
- - ext/revdispatch/libevdispatch/missing
111
- - ext/revdispatch/libevdispatch/src/Makefile.am
112
- - ext/revdispatch/libevdispatch/src/Makefile.in
113
- - ext/revdispatch/libevdispatch/src/ev_dispatch.cc
114
- - ext/revdispatch/libevdispatch/src/ev_dispatch.h
115
- - ext/revdispatch/libevdispatch/src/ev_http.cc
116
- - ext/revdispatch/libevdispatch/src/ev_http.h
117
- - ext/revdispatch/libevdispatch/test/Makefile.am
118
- - ext/revdispatch/libevdispatch/test/Makefile.in
119
- - ext/revdispatch/libevdispatch/test/helper.rb
120
- - ext/revdispatch/libevdispatch/test/key_test.cc
121
- - ext/revdispatch/libevdispatch/test/next_test.cc
122
- - ext/revdispatch/libevdispatch/test/next_test.rb
123
- - ext/revdispatch/libevdispatch/test/server.rb
124
59
  - ext/revdispatch/server.rb
125
60
  - ext/revdispatch/test.rb
61
+ - ext/revdispatch/extconf.rb
62
+ - ext/revdispatch/revdispatch.cc
63
+ - ext/revdispatch/libdispatch-0.1/
64
+ - ext/revdispatch/libdispatch-0.1/src/
65
+ - ext/revdispatch/libdispatch-0.1/test/
66
+ - ext/revdispatch/libdispatch-0.1/Changelog
67
+ - ext/revdispatch/libdispatch-0.1/LICENSE
68
+ - ext/revdispatch/libdispatch-0.1/Makefile.am
69
+ - ext/revdispatch/libdispatch-0.1/Makefile.in
70
+ - ext/revdispatch/libdispatch-0.1/README
71
+ - ext/revdispatch/libdispatch-0.1/TODO
72
+ - ext/revdispatch/libdispatch-0.1/aclocal.m4
73
+ - ext/revdispatch/libdispatch-0.1/autogen.sh
74
+ - ext/revdispatch/libdispatch-0.1/config.guess
75
+ - ext/revdispatch/libdispatch-0.1/config.h.in
76
+ - ext/revdispatch/libdispatch-0.1/config.sub
77
+ - ext/revdispatch/libdispatch-0.1/configure
78
+ - ext/revdispatch/libdispatch-0.1/configure.ac
79
+ - ext/revdispatch/libdispatch-0.1/depcomp
80
+ - ext/revdispatch/libdispatch-0.1/install-sh
81
+ - ext/revdispatch/libdispatch-0.1/ltmain.sh
82
+ - ext/revdispatch/libdispatch-0.1/missing
83
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev++.h
84
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev.c
85
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev.h
86
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev_epoll.c
87
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev_kqueue.c
88
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev_poll.c
89
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev_port.c
90
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev_select.c
91
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev_vars.h
92
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev_win32.c
93
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev_wrap.h
94
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/event.c
95
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/event.h
96
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/Changes
97
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/LICENSE
98
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/Makefile.am
99
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/Makefile.in
100
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/README
101
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/aclocal.m4
102
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/autogen.sh
103
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/config.guess
104
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/config.h.in
105
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/config.sub
106
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/configure
107
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/configure.ac
108
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev.3
109
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ev.pod
110
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/install-sh
111
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/libev.la
112
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/libev.m4
113
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/ltmain.sh
114
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/missing
115
+ - ext/revdispatch/libdispatch-0.1/libev-3.2/mkinstalldirs
116
+ - ext/revdispatch/libdispatch-0.1/src/ev_dispatch.h
117
+ - ext/revdispatch/libdispatch-0.1/src/ev_http.h
118
+ - ext/revdispatch/libdispatch-0.1/src/Makefile.am
119
+ - ext/revdispatch/libdispatch-0.1/src/Makefile.in
120
+ - ext/revdispatch/libdispatch-0.1/src/ev_dispatch.cc
121
+ - ext/revdispatch/libdispatch-0.1/src/ev_http.cc
122
+ - ext/revdispatch/libdispatch-0.1/test/Makefile.am
123
+ - ext/revdispatch/libdispatch-0.1/test/Makefile.in
124
+ - ext/revdispatch/libdispatch-0.1/test/key_test.cc
125
+ - ext/revdispatch/libdispatch-0.1/test/next_test.cc
126
126
  has_rdoc: true
127
127
  homepage: http://evdispatch.rubyforge.org
128
128
  post_install_message:
@@ -1,32 +0,0 @@
1
- #define PACKAGE_NAME ""
2
- #define PACKAGE_TARNAME ""
3
- #define PACKAGE_VERSION ""
4
- #define PACKAGE_STRING ""
5
- #define PACKAGE_BUGREPORT ""
6
- #define PACKAGE "libdispatch"
7
- #define VERSION "0.1"
8
- #define STDC_HEADERS 1
9
- #define HAVE_SYS_TYPES_H 1
10
- #define HAVE_SYS_STAT_H 1
11
- #define HAVE_STDLIB_H 1
12
- #define HAVE_STRING_H 1
13
- #define HAVE_MEMORY_H 1
14
- #define HAVE_STRINGS_H 1
15
- #define HAVE_INTTYPES_H 1
16
- #define HAVE_STDINT_H 1
17
- #define HAVE_UNISTD_H 1
18
- #define HAVE_DLFCN_H 1
19
- #define HAVE_CURL_CURL_H 1
20
- #define HAVE_CURL_SOCKET_T 1
21
- #define HAVE_SYS_INOTIFY_H 1
22
- #define HAVE_SYS_EPOLL_H 1
23
- #define HAVE_SYS_QUEUE_H 1
24
- #define HAVE_POLL_H 1
25
- #define HAVE_SYS_SELECT_H 1
26
- #define HAVE_INOTIFY_INIT 1
27
- #define HAVE_EPOLL_CTL 1
28
- #define HAVE_POLL 1
29
- #define HAVE_SELECT 1
30
- #define HAVE_LIBRT 1
31
- #define HAVE_CLOCK_GETTIME 1
32
- #define HAVE_LIBM 1
@@ -1,94 +0,0 @@
1
- require 'rubygems'
2
- require 'ebb'
3
- #require File.dirname(__FILE__) + '/../ruby_lib/ebb'
4
- #require 'test/unit'
5
- #require 'net/http'
6
- #require 'socket'
7
- require 'json'
8
-
9
-
10
- Ebb.log = File.open('/dev/null','w')
11
-
12
- TEST_PORT = 4044
13
-
14
-
15
- class HelperApp
16
- def call(env)
17
- commands = env['PATH_INFO'].split('/')
18
-
19
- if commands.include?('delay')
20
- n = commands.last.to_i
21
- raise "delay called with n <= 0" if n < 0
22
- sleep n
23
- body = "delayed #{n} seconds"
24
- status = 200
25
-
26
- elsif commands.include?('bytes')
27
- n = commands.last.to_i
28
- raise "bytes called with n <= 0" if n <= 0
29
- body = "C"*n
30
- status = 200
31
-
32
- elsif commands.include?('test_post_length')
33
- input_body = env['rack.input'].read
34
-
35
- content_length_header = env['HTTP_CONTENT_LENGTH'].to_i
36
-
37
- if content_length_header == input_body.length
38
- body = "Content-Length matches input length"
39
- status = 200
40
- else
41
- body = "Content-Length header is #{content_length_header} but body length is #{input_body.length}"
42
- status = 500
43
- end
44
-
45
- else
46
- status = 404
47
- body = "Undefined url"
48
- end
49
-
50
- env['rack.input'] = env['rack.input'].read
51
- env.delete('rack.errors')
52
- env['output'] = body
53
- env['status'] = status
54
-
55
- [status, {'Content-Type' => 'text/json'}, env.to_json]
56
- end
57
- end
58
- =begin
59
- class Test::Unit::TestCase
60
- def get(path)
61
- response = Net::HTTP.get_response(URI.parse("http://0.0.0.0:#{TEST_PORT}#{path}"))
62
- end
63
-
64
- def post(path, data)
65
- response = Net::HTTP.post_form(URI.parse("http://0.0.0.0:#{TEST_PORT}#{path}"), data)
66
- end
67
- end
68
-
69
- class ServerTest < Test::Unit::TestCase
70
- def get(path)
71
- response = Net::HTTP.get_response(URI.parse("http://0.0.0.0:#{TEST_PORT}#{path}"))
72
- env = JSON.parse(response.body)
73
- end
74
-
75
- def post(path, data)
76
- response = Net::HTTP.post_form(URI.parse("http://0.0.0.0:#{TEST_PORT}#{path}"), data)
77
- env = JSON.parse(response.body)
78
- end
79
-
80
- def setup
81
- Thread.new { Ebb.start_server(HelperApp.new, :port => TEST_PORT) }
82
- sleep 0.1 until Ebb.running?
83
- end
84
-
85
- def teardown
86
- Ebb.stop_server
87
- sleep 0.1 while Ebb.running?
88
- end
89
-
90
- def default_test
91
- assert true
92
- end
93
- end
94
- =end
@@ -1,8 +0,0 @@
1
- test_dir = File.dirname(__FILE__)
2
- require test_dir + '/helper'
3
- puts "starting up ebb";
4
- Thread.start{ Ebb.start_server(HelperApp.new, :port => TEST_PORT) }
5
- sleep 0.1 until Ebb.running?
6
- system("#{test_dir}/next_test")
7
- Ebb.stop_server
8
- sleep 0.1 while Ebb.running?
@@ -1,9 +0,0 @@
1
- # shamelessly copied directly from ebb gem
2
- require File.dirname(__FILE__) + '/helper'
3
- trap("INT") {
4
- puts "got int"
5
- Ebb.stop_server
6
- sleep 0.1 while Ebb.running?
7
- }
8
- puts "starting up ebb";
9
- Ebb.start_server(HelperApp.new, :port => TEST_PORT)