curb 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of curb might be problematic. Click here for more details.

data/ext/curb.h CHANGED
@@ -20,11 +20,11 @@
20
20
  #include "curb_macros.h"
21
21
 
22
22
  // These should be managed from the Rake 'release' task.
23
- #define CURB_VERSION "0.3.1"
24
- #define CURB_VER_NUM 310
23
+ #define CURB_VERSION "0.3.2"
24
+ #define CURB_VER_NUM 320
25
25
  #define CURB_VER_MAJ 0
26
26
  #define CURB_VER_MIN 3
27
- #define CURB_VER_MIC 1
27
+ #define CURB_VER_MIC 2
28
28
  #define CURB_VER_PATCH 0
29
29
 
30
30
 
@@ -37,6 +37,7 @@
37
37
  #define HAVE_CURLE_SEND_FAIL_REWIND 1
38
38
  #define HAVE_CURLE_SSL_ENGINE_INITFAILED 1
39
39
  #define HAVE_CURLE_LOGIN_DENIED 1
40
+ #define HAVE_CURLMOPT_MAXCONNECTS 1
40
41
  #define HAVE_RUBY19_ST_H 1
41
42
  #define HAVE_CURL_EASY_ESCAPE 1
42
43
  #endif
@@ -87,10 +87,12 @@ static VALUE ruby_curl_multi_new(VALUE self) {
87
87
  * Set the max connections in the cache for a multi handle
88
88
  */
89
89
  static VALUE ruby_curl_multi_max_connects(VALUE self, VALUE count) {
90
+ #ifdef HAVE_CURLMOPT_MAXCONNECTS
90
91
  ruby_curl_multi *rbcm;
91
92
 
92
93
  Data_Get_Struct(self, ruby_curl_multi, rbcm);
93
94
  curl_multi_setopt(rbcm->handle, CURLMOPT_MAXCONNECTS, NUM2INT(count));
95
+ #endif
94
96
 
95
97
  return self;
96
98
  }
@@ -75,6 +75,9 @@ have_constant "curle_send_fail_rewind"
75
75
  have_constant "curle_ssl_engine_initfailed"
76
76
  have_constant "curle_login_denied"
77
77
 
78
+ # older than 7.16.3
79
+ have_constant "curlmopt_maxconnects"
80
+
78
81
  if try_compile('int main() { return 0; }','-Wall')
79
82
  $CFLAGS << ' -Wall'
80
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Bamford
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-03-19 00:00:00 -04:00
13
+ date: 2009-03-21 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16