curl-multi 0.1 → 0.2
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.
- data/History.txt +4 -0
- data/lib/curl-multi.rb +3 -1
- data/lib/curl-multi/version.rb +1 -1
- data/website/index.html +5 -4
- data/website/index.txt +3 -2
- metadata +4 -4
data/History.txt
CHANGED
data/lib/curl-multi.rb
CHANGED
@@ -159,6 +159,8 @@ module Curl
|
|
159
159
|
builder.include('<errno.h>')
|
160
160
|
if File.exists?('/usr/include/curl/curl.h')
|
161
161
|
builder.include('"/usr/include/curl/curl.h"')
|
162
|
+
elsif File.exists?('/opt/csw/include/curl/curl.h')
|
163
|
+
builder.include('"/opt/csw/include/curl/curl.h"')
|
162
164
|
else
|
163
165
|
builder.include('"/usr/local/include/curl/curl.h"')
|
164
166
|
end
|
@@ -302,7 +304,7 @@ module Curl
|
|
302
304
|
|
303
305
|
/* Wait */
|
304
306
|
r = select(n + 1, &rfds, &wfds, &efds, (timeout < 0) ? NULL : &tv);
|
305
|
-
if (r < 0) rb_raise(rb_eRuntimeError, "select(): %s",
|
307
|
+
if (r < 0) rb_raise(rb_eRuntimeError, "select(): %s", strerror(errno));
|
306
308
|
|
307
309
|
ready_rfda = rb_ary_new();
|
308
310
|
ready_wfda = rb_ary_new();
|
data/lib/curl-multi/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>Curl::Multi</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/curl-multi"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/curl-multi" class="numbers">0.
|
36
|
+
<a href="http://rubyforge.org/projects/curl-multi" class="numbers">0.2</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘curl-multi’</h1>
|
39
39
|
|
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
<p><code class='syntax'><span class="constant">Curl</span><span class="punct">::</span><span class="constant">Multi</span></code> provides very high-level Ruby bindings
|
45
|
-
for the libcurl multi
|
45
|
+
for the libcurl multi interface.</p>
|
46
46
|
|
47
47
|
|
48
48
|
<p>It was originally written for use by
|
@@ -71,6 +71,7 @@ maintanied by Kristján Pétursson and Keith Rarick.</p>
|
|
71
71
|
<span class="ident">puts</span> <span class="ident">ex</span>
|
72
72
|
<span class="keyword">end</span>
|
73
73
|
<span class="ident">curl</span><span class="punct">.</span><span class="ident">get</span><span class="punct">('</span><span class="string">http://www.example.org/</span><span class="punct">',</span> <span class="ident">on_success</span><span class="punct">,</span> <span class="ident">on_failure</span><span class="punct">)</span>
|
74
|
+
<span class="ident">curl</span><span class="punct">.</span><span class="ident">select</span><span class="punct">([],</span> <span class="punct">[])</span> <span class="keyword">while</span> <span class="ident">curl</span><span class="punct">.</span><span class="ident">size</span> <span class="punct">></span> <span class="number">0</span>
|
74
75
|
</pre></p>
|
75
76
|
|
76
77
|
|
@@ -111,13 +112,13 @@ submitting patches much easier.</p>
|
|
111
112
|
|
112
113
|
|
113
114
|
<p>Comments are welcome. Send mail to <a href="mailto:kr@essembly.com">Keith Rarick</a> or
|
114
|
-
discuss things in the <a href="http://groups.google.com/group/curl-multi">forum</a
|
115
|
+
discuss things in the <a href="http://groups.google.com/group/ruby-curl-multi">forum</a>.</p>
|
115
116
|
|
116
117
|
|
117
118
|
<p>Also see <a href="http://xph.us/software/">Keith’s web page</a> for curl-multi information
|
118
119
|
and other software.</p>
|
119
120
|
<p class="coda">
|
120
|
-
<a href="mailto:kr@essembly.com">Keith Rarick</a>,
|
121
|
+
<a href="mailto:kr@essembly.com">Keith Rarick</a>, 19th February 2008<br>
|
121
122
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
122
123
|
</p>
|
123
124
|
</div>
|
data/website/index.txt
CHANGED
@@ -5,7 +5,7 @@ h1. → ‘curl-multi’
|
|
5
5
|
h2. What
|
6
6
|
|
7
7
|
<code syntax="ruby">Curl::Multi</code> provides very high-level Ruby bindings
|
8
|
-
for the libcurl multi
|
8
|
+
for the libcurl multi interface.
|
9
9
|
|
10
10
|
It was originally written for use by
|
11
11
|
"www.causesonfacebook.com":http://www.causesonfacebook.com/ to process many
|
@@ -29,6 +29,7 @@ on_failure = lambda do |ex|
|
|
29
29
|
puts ex
|
30
30
|
end
|
31
31
|
curl.get('http://www.example.org/', on_success, on_failure)
|
32
|
+
curl.select([], []) while curl.size > 0
|
32
33
|
</pre>
|
33
34
|
|
34
35
|
There's not much more to the interface. A good thing, too, because we don't
|
@@ -57,7 +58,7 @@ This code is free to use under the terms of the GPL version 3.
|
|
57
58
|
h2. Contact
|
58
59
|
|
59
60
|
Comments are welcome. Send mail to "Keith Rarick":mailto:kr@essembly.com or
|
60
|
-
discuss things in the "forum":http://groups.google.com/group/curl-multi
|
61
|
+
discuss things in the "forum":http://groups.google.com/group/ruby-curl-multi.
|
61
62
|
|
62
63
|
Also see "Keith's web page":http://xph.us/software/ for curl-multi information
|
63
64
|
and other software.
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: curl-multi
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date:
|
6
|
+
version: "0.2"
|
7
|
+
date: 2008-06-02 00:00:00 -07:00
|
8
8
|
summary: Ruby bindings for the libcurl multi interface
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -56,8 +56,8 @@ files:
|
|
56
56
|
- website/stylesheets/screen.css
|
57
57
|
- website/template.rhtml
|
58
58
|
test_files:
|
59
|
-
- test/test_curl-multi.rb
|
60
59
|
- test/test_helper.rb
|
60
|
+
- test/test_curl-multi.rb
|
61
61
|
rdoc_options:
|
62
62
|
- --main
|
63
63
|
- README.txt
|