curl-multi 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2 2008-06-02
2
+
3
+ * Build fixes on Solaris
4
+
1
5
  == 0.1 2007-11-08
2
6
 
3
7
  * Initial release
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", sys_errlist[errno]);
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();
@@ -17,7 +17,7 @@
17
17
  module Curl #:nodoc:
18
18
  class Multi #:nodoc:
19
19
  module VERSION #:nodoc:
20
- STRING = '0.1'
20
+ STRING = '0.2'
21
21
  end
22
22
  end
23
23
  end
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.1</a>
36
+ <a href="http://rubyforge.org/projects/curl-multi" class="numbers">0.2</a>
37
37
  </div>
38
38
  <h1>&#x2192; ‘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 intefrace.</p>
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">&gt;</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></p>
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&#8217;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>, 9th November 2007<br>
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. &#x2192; ‘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 intefrace.
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.0
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.1"
7
- date: 2007-11-09 00:00:00 -08:00
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