curb 0.6.5.0 → 0.6.5.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.

Files changed (4) hide show
  1. data/ext/curb.h +3 -3
  2. data/ext/curb_easy.c +5 -0
  3. data/tests/s.rb +4 -0
  4. metadata +19 -18
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.6.5.0"
24
- #define CURB_VER_NUM 650
23
+ #define CURB_VERSION "0.6.5.1"
24
+ #define CURB_VER_NUM 651
25
25
  #define CURB_VER_MAJ 0
26
26
  #define CURB_VER_MIN 6
27
27
  #define CURB_VER_MIC 5
28
- #define CURB_VER_PATCH 0
28
+ #define CURB_VER_PATCH 1
29
29
 
30
30
 
31
31
  // Maybe not yet defined in Ruby
@@ -1999,6 +1999,11 @@ static VALUE ruby_curl_easy_perform_post(int argc, VALUE *argv, VALUE self) {
1999
1999
  ruby_curl_easy_post_body_set(self, post_body);
2000
2000
  }
2001
2001
 
2002
+ /* if post body is not defined, set it so we enable POST header, even though the request body is empty */
2003
+ if( rb_easy_nil("postdata_buffer") ) {
2004
+ ruby_curl_easy_post_body_set(self, post_body);
2005
+ }
2006
+
2002
2007
  return handle_perform(self,rbce);
2003
2008
  }
2004
2009
  }
@@ -0,0 +1,4 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
2
+
3
+ c = Curl::Easy.new("http://www.google.com/")
4
+ c.perform
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.6.5.0
4
+ version: 0.6.5.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: 2010-01-26 00:00:00 -05:00
13
+ date: 2010-01-29 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -29,21 +29,21 @@ files:
29
29
  - Rakefile
30
30
  - doc.rb
31
31
  - ext/extconf.rb
32
- - lib/curl.rb
33
32
  - lib/curb.rb
33
+ - lib/curl.rb
34
34
  - ext/curb.c
35
- - ext/curb_upload.c
36
35
  - ext/curb_postfield.c
37
- - ext/curb_easy.c
38
36
  - ext/curb_multi.c
39
37
  - ext/curb_errors.c
40
- - ext/curb_errors.h
41
- - ext/curb_multi.h
42
- - ext/curb.h
38
+ - ext/curb_easy.c
39
+ - ext/curb_upload.c
43
40
  - ext/curb_easy.h
44
- - ext/curb_postfield.h
41
+ - ext/curb_errors.h
45
42
  - ext/curb_upload.h
46
43
  - ext/curb_macros.h
44
+ - ext/curb.h
45
+ - ext/curb_postfield.h
46
+ - ext/curb_multi.h
47
47
  has_rdoc: true
48
48
  homepage: http://curb.rubyforge.org/
49
49
  licenses: []
@@ -75,18 +75,19 @@ signing_key:
75
75
  specification_version: 3
76
76
  summary: Ruby libcurl bindings
77
77
  test_files:
78
+ - tests/tc_curl_multi.rb
79
+ - tests/tc_curl_postfield.rb
80
+ - tests/bug_curb_easy_blocks_ruby_threads.rb
81
+ - tests/unittests.rb
78
82
  - tests/mem_check.rb
79
83
  - tests/bug_require_last_or_segfault.rb
80
- - tests/helper.rb
81
- - tests/tc_curl_postfield.rb
82
84
  - tests/bug_instance_post_differs_from_class_post.rb
83
- - tests/bug_multi_segfault.rb
85
+ - tests/tc_curl_download.rb
84
86
  - tests/alltests.rb
85
- - tests/bug_postfields_crash.rb
86
- - tests/require_last_or_segfault_script.rb
87
- - tests/unittests.rb
88
- - tests/tc_curl_multi.rb
89
87
  - tests/bug_curb_easy_post_with_string_no_content_length_header.rb
90
- - tests/tc_curl_download.rb
88
+ - tests/helper.rb
91
89
  - tests/tc_curl_easy.rb
92
- - tests/bug_curb_easy_blocks_ruby_threads.rb
90
+ - tests/bug_multi_segfault.rb
91
+ - tests/require_last_or_segfault_script.rb
92
+ - tests/bug_postfields_crash.rb
93
+ - tests/s.rb