curb 0.5.9.0 → 0.5.9.1

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,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.0"
24
- #define CURB_VER_NUM 590
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 0
28
+ #define CURB_VER_PATCH 1
29
29
 
30
30
 
31
31
  // Maybe not yet defined in Ruby
@@ -92,7 +92,7 @@ VALUE ruby_curl_multi_new(VALUE klass) {
92
92
  return new_curlm;
93
93
  }
94
94
 
95
- // Hash#foreach callback for ruby_curl_multi_requests
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
- // iterate over the requests hash, and stuff references into the array.
117
- rb_hash_foreach( rbcm->requests, ruby_curl_multi_requests_callback, result_array );
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
  }
@@ -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
- archs = $CFLAGS.scan(/-arch\s(.*?)\s/).first # get the first arch flag
28
- if archs and archs.size >= 1
29
- # need to reduce the number of archs...
30
- # guess the first one is correct... at least the first one is probably the ruby installed arch...
31
- # this could lead to compiled binaries that crash at runtime...
32
- $CFLAGS.gsub!(/-arch\s(.*?)\s/,' ')
33
- $CFLAGS << " -arch #{archs.first}"
34
- puts "Selected arch: #{archs.first}"
35
- end
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) )
@@ -1,6 +1,7 @@
1
1
  require 'curb_core'
2
2
 
3
3
  module Curl
4
+
4
5
  class Easy
5
6
  class << self
6
7
 
@@ -54,6 +55,7 @@ module Curl
54
55
  self.cert
55
56
  end
56
57
  end
58
+
57
59
  class Multi
58
60
  class << self
59
61
  # call-seq:
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.0
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-23 00:00:00 -05:00
13
+ date: 2009-11-24 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies: []
16
16