website/index.html in evdispatch-0.1.0 vs website/index.html in evdispatch-0.1.1
- old
+ new
@@ -16,18 +16,22 @@
<div id="main">
<h1>evdispatch</h1>
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/evdispatch"; return false'>
<p>Get Version</p>
- <a href="http://rubyforge.org/projects/evdispatch" class="numbers">0.1.0</a>
+ <a href="http://rubyforge.org/projects/evdispatch" class="numbers">0.1.1</a>
</div>
- <h1>→ ‘evdispatch’</h1>
+ <h4 style="float:right;padding-right:10px;">→ ‘evdispatch’</h4>
-
<h2>What</h2>
+ <p>A library for making http requests in parallel. Uses the libev library to run
+an event loop on a background posix thread, that uses libcurls multi interface
+to issue <span class="caps">HTTP</span> requests.</p>
+
+
<h2>Installing</h2>
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">evdispatch</span></pre></p>
@@ -36,47 +40,34 @@
<h2>Demonstration of usage</h2>
- <p>require ‘evdispatch’</p>
+ <p><pre class='syntax'>
+<span class="ident">require</span> <span class="punct">'</span><span class="string">rubygems</span><span class="punct">'</span>
+<span class="ident">require</span> <span class="punct">'</span><span class="string">evdispatch</span><span class="punct">'</span>
+<span class="comment"># create a new dispatch loop</span>
+<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>
- <ol>
- <li>create a new dispatch loop
-d = Evdispatch::Loop.new</li>
- </ol>
+<span class="comment"># start the event loop thread</span>
+<span class="ident">d</span><span class="punct">.</span><span class="ident">start</span>
+<span class="comment"># send a dispatch http request and store a handle to the request</span>
+<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">("</span><span class="string">http://www.google.com/</span><span class="punct">")</span>
- <ol>
- <li>start the event loop thread
-d.start</li>
- </ol>
+<span class="comment"># do some processing and later on check for the response</span>
+<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>
+<span class="ident">puts</span> <span class="ident">response</span><span class="punct">[</span><span class="symbol">:response_time</span><span class="punct">]</span>
+<span class="ident">puts</span> <span class="ident">response</span><span class="punct">[</span><span class="symbol">:body</span><span class="punct">]</span>
- <ol>
- <li>send a dispatch http request and store a handle to the request
-google_id = d.request_http(“http://www.google.com/”)</li>
- </ol>
+<span class="comment"># sometime later you can stop the event loop</span>
+<span class="ident">d</span><span class="punct">.</span><span class="ident">stop</span>
+</pre></p>
- <ol>
- <li>do some processing and later on check for the response
-response = d.response( google_id )</li>
- </ol>
-
-
- <p>puts response[:response_time]
-puts response[:body]</p>
-
-
- <ol>
- <li>sometime later you can stop the event loop
-d.stop</li>
- </ol>
-
-
<h2>Forum</h2>
<p><a href="http://groups.google.com/group/evdispatch">http://groups.google.com/group/evdispatch</a></p>
@@ -85,10 +76,10 @@
<p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people’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>
- <p>The trunk repository is <code>svn://rubyforge.org/var/svn/evdispatch/trunk</code> for anonymous access.</p>
+ <p>The trunk repository is <a href="http://evdispatch.rubyforge.org/svn/trunk/">http://evdispatch.rubyforge.org/svn/trunk</a> for anonymous access.</p>
<h2>License</h2>