curb 0.5.9.0 → 0.5.9.1
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.
Potentially problematic release.
This version of curb might be problematic. Click here for more details.
- data/ext/curb.h +3 -3
- data/ext/curb_multi.c +3 -3
- data/ext/extconf.rb +11 -9
- data/lib/curb.rb +2 -0
- metadata +2 -2
data/ext/curb.h
CHANGED
@@ -20,12 +20,12 @@
|
|
20
20
|
#include "curb_macros.h"
|
21
21
|
|
22
22
|
// These should be managed from the Rake 'release' task.
|
23
|
-
#define CURB_VERSION "0.5.9.
|
24
|
-
#define CURB_VER_NUM
|
23
|
+
#define CURB_VERSION "0.5.9.1"
|
24
|
+
#define CURB_VER_NUM 591
|
25
25
|
#define CURB_VER_MAJ 0
|
26
26
|
#define CURB_VER_MIN 5
|
27
27
|
#define CURB_VER_MIC 9
|
28
|
-
#define CURB_VER_PATCH
|
28
|
+
#define CURB_VER_PATCH 1
|
29
29
|
|
30
30
|
|
31
31
|
// Maybe not yet defined in Ruby
|
data/ext/curb_multi.c
CHANGED
@@ -92,7 +92,7 @@ VALUE ruby_curl_multi_new(VALUE klass) {
|
|
92
92
|
return new_curlm;
|
93
93
|
}
|
94
94
|
|
95
|
-
|
95
|
+
/* Hash#foreach callback for ruby_curl_multi_requests */
|
96
96
|
static int ruby_curl_multi_requests_callback(VALUE key, VALUE value, VALUE result_array) {
|
97
97
|
rb_ary_push(result_array, value);
|
98
98
|
|
@@ -113,8 +113,8 @@ static VALUE ruby_curl_multi_requests(VALUE self) {
|
|
113
113
|
|
114
114
|
result_array = rb_ary_new();
|
115
115
|
|
116
|
-
|
117
|
-
rb_hash_foreach(
|
116
|
+
/* iterate over the requests hash, and stuff references into the array. */
|
117
|
+
rb_hash_foreach(rbcm->requests, ruby_curl_multi_requests_callback, result_array);
|
118
118
|
|
119
119
|
return result_array;
|
120
120
|
}
|
data/ext/extconf.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'mkmf'
|
2
|
+
puts $CFLAGS.inspect
|
2
3
|
|
3
4
|
dir_config('curl')
|
4
5
|
|
@@ -24,15 +25,16 @@ elsif !have_library('curl') or !have_header('curl/curl.h')
|
|
24
25
|
end
|
25
26
|
|
26
27
|
# Check arch flags
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
#
|
31
|
-
#
|
32
|
-
|
33
|
-
$CFLAGS
|
34
|
-
|
35
|
-
|
28
|
+
# TODO: detect mismatched arch types when libcurl mac ports is mixed with native mac ruby or vice versa
|
29
|
+
#archs = $CFLAGS.scan(/-arch\s(.*?)\s/).first # get the first arch flag
|
30
|
+
#if archs and archs.size >= 1
|
31
|
+
# # need to reduce the number of archs...
|
32
|
+
# # guess the first one is correct... at least the first one is probably the ruby installed arch...
|
33
|
+
# # this could lead to compiled binaries that crash at runtime...
|
34
|
+
# $CFLAGS.gsub!(/-arch\s(.*?)\s/,' ')
|
35
|
+
# $CFLAGS << " -arch #{archs.first}"
|
36
|
+
# puts "Selected arch: #{archs.first}"
|
37
|
+
#end
|
36
38
|
|
37
39
|
def define(s)
|
38
40
|
$defs.push( format("-D HAVE_%s", s.to_s.upcase) )
|
data/lib/curb.rb
CHANGED
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.5.9.
|
4
|
+
version: 0.5.9.1
|
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-11-
|
13
|
+
date: 2009-11-24 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|