curb 0.3.1 → 0.3.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/ext/curb.h +3 -3
- data/ext/curb_config.h +1 -0
- data/ext/curb_multi.c +2 -0
- data/ext/extconf.rb +3 -0
- metadata +2 -2
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.
|
|
24
|
-
#define CURB_VER_NUM
|
|
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
|
|
27
|
+
#define CURB_VER_MIC 2
|
|
28
28
|
#define CURB_VER_PATCH 0
|
|
29
29
|
|
|
30
30
|
|
data/ext/curb_config.h
CHANGED
data/ext/curb_multi.c
CHANGED
|
@@ -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
|
}
|
data/ext/extconf.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
13
|
+
date: 2009-03-21 00:00:00 -04:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies: []
|
|
16
16
|
|