curb 0.3.4 → 0.3.5

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.4"
24
- #define CURB_VER_NUM 340
23
+ #define CURB_VERSION "0.3.6"
24
+ #define CURB_VER_NUM 360
25
25
  #define CURB_VER_MAJ 0
26
26
  #define CURB_VER_MIN 3
27
- #define CURB_VER_MIC 4
27
+ #define CURB_VER_MIC 6
28
28
  #define CURB_VER_PATCH 0
29
29
 
30
30
 
@@ -38,7 +38,7 @@
38
38
  #define HAVE_CURLE_SSL_ENGINE_INITFAILED 1
39
39
  #define HAVE_CURLE_LOGIN_DENIED 1
40
40
  #define HAVE_CURLMOPT_MAXCONNECTS 1
41
- #define HAVE_CURLMOPT_PIPELINING 1
42
- #define HAVE_RUBY19_ST_H 1
41
+ #define HAVE_CURLM_BAD_SOCKET 1
42
+ #define HAVE_CURLM_UNKNOWN_OPTION 1
43
43
  #define HAVE_CURL_EASY_ESCAPE 1
44
44
  #endif
@@ -392,12 +392,16 @@ void raise_curl_multi_error_exception(CURLMcode code) {
392
392
  case CURLM_INTERNAL_ERROR: /* 4 */
393
393
  exclz = mCurlErrInternalError;
394
394
  break;
395
+ #if HAVE_CURLM_BAD_SOCKET
395
396
  case CURLM_BAD_SOCKET: /* 5 */
396
397
  exclz = mCurlErrBadSocket;
397
398
  break;
399
+ #endif
400
+ #if HAVE_CURLM_UNKNOWN_OPTION
398
401
  case CURLM_UNKNOWN_OPTION: /* 6 */
399
402
  exclz = mCurlErrUnknownOption;
400
403
  break;
404
+ #endif
401
405
  default:
402
406
  exclz = eCurlErrError;
403
407
  exmsg = "Unknown error result from libcurl";
@@ -77,7 +77,10 @@ have_constant "curle_login_denied"
77
77
 
78
78
  # older than 7.16.3
79
79
  have_constant "curlmopt_maxconnects"
80
- have_constant "curlmopt_pipelining"
80
+
81
+ # centos 4.5 build of libcurl
82
+ have_constant "curlm_bad_socket"
83
+ have_constant "curlm_unknown_option"
81
84
 
82
85
  if try_compile('int main() { return 0; }','-Wall')
83
86
  $CFLAGS << ' -Wall'
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
4
+ version: 0.3.5
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-04-27 00:00:00 -04:00
13
+ date: 2009-06-08 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -32,21 +32,19 @@ files:
32
32
  - lib/curb.rb
33
33
  - lib/curl.rb
34
34
  - ext/curb.c
35
- - ext/curb_easy.c
36
- - ext/curb_errors.c
37
- - ext/curb_multi.c
38
35
  - ext/curb_postfield.c
39
- - ext/curb.h
40
- - ext/curb_config.h
36
+ - ext/curb_multi.c
37
+ - ext/curb_errors.c
38
+ - ext/curb_easy.c
41
39
  - ext/curb_easy.h
42
40
  - ext/curb_errors.h
43
41
  - ext/curb_macros.h
44
- - ext/curb_multi.h
42
+ - ext/curb.h
45
43
  - ext/curb_postfield.h
44
+ - ext/curb_config.h
45
+ - ext/curb_multi.h
46
46
  has_rdoc: true
47
47
  homepage: http://curb.rubyforge.org/
48
- licenses: []
49
-
50
48
  post_install_message:
51
49
  rdoc_options:
52
50
  - --main
@@ -69,19 +67,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
67
  requirements: []
70
68
 
71
69
  rubyforge_project: curb
72
- rubygems_version: 1.3.2
70
+ rubygems_version: 1.3.1
73
71
  signing_key:
74
- specification_version: 3
72
+ specification_version: 2
75
73
  summary: Ruby libcurl bindings
76
74
  test_files:
77
- - tests/alltests.rb
75
+ - tests/tc_curl_multi.rb
76
+ - tests/tc_curl_postfield.rb
78
77
  - tests/bug_curb_easy_blocks_ruby_threads.rb
79
- - tests/bug_instance_post_differs_from_class_post.rb
78
+ - tests/unittests.rb
80
79
  - tests/bug_require_last_or_segfault.rb
81
- - tests/helper.rb
82
- - tests/require_last_or_segfault_script.rb
80
+ - tests/bug_instance_post_differs_from_class_post.rb
83
81
  - tests/tc_curl_download.rb
82
+ - tests/alltests.rb
83
+ - tests/helper.rb
84
84
  - tests/tc_curl_easy.rb
85
- - tests/tc_curl_multi.rb
86
- - tests/tc_curl_postfield.rb
87
- - tests/unittests.rb
85
+ - tests/require_last_or_segfault_script.rb