curb 0.6.4.0 → 0.6.4.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.6.4.0"
24
- #define CURB_VER_NUM 640
23
+ #define CURB_VERSION "0.6.4.1"
24
+ #define CURB_VER_NUM 641
25
25
  #define CURB_VER_MAJ 0
26
26
  #define CURB_VER_MIN 6
27
27
  #define CURB_VER_MIC 4
28
- #define CURB_VER_PATCH 0
28
+ #define CURB_VER_PATCH 1
29
29
 
30
30
 
31
31
  // Maybe not yet defined in Ruby
@@ -1086,7 +1086,12 @@ static VALUE ruby_curl_easy_ftp_response_timeout_get(VALUE self, VALUE ftp_respo
1086
1086
  CURB_IMMED_GETTER(ruby_curl_easy, ftp_response_timeout, 0);
1087
1087
  }
1088
1088
 
1089
-
1089
+ /*
1090
+ * call-seq:
1091
+ * easy.username = "foo" => String
1092
+ *
1093
+ * Set the HTTP Authentication username.
1094
+ */
1090
1095
  static VALUE ruby_curl_easy_username_set(VALUE self, VALUE username) {
1091
1096
  #if HAVE_CURLOPT_USERNAME
1092
1097
  CURB_OBJECT_HSETTER(ruby_curl_easy, username);
@@ -1095,6 +1100,12 @@ static VALUE ruby_curl_easy_username_set(VALUE self, VALUE username) {
1095
1100
  #endif
1096
1101
  }
1097
1102
 
1103
+ /*
1104
+ * call-seq:
1105
+ * easy.username => String
1106
+ *
1107
+ * Get the current username
1108
+ */
1098
1109
  static VALUE ruby_curl_easy_username_get(VALUE self, VALUE username) {
1099
1110
  #if HAVE_CURLOPT_USERNAME
1100
1111
  CURB_OBJECT_HGETTER(ruby_curl_easy, username);
@@ -1103,6 +1114,12 @@ static VALUE ruby_curl_easy_username_get(VALUE self, VALUE username) {
1103
1114
  #endif
1104
1115
  }
1105
1116
 
1117
+ /*
1118
+ * call-seq:
1119
+ * easy.password = "foo" => String
1120
+ *
1121
+ * Set the HTTP Authentication password.
1122
+ */
1106
1123
  static VALUE ruby_curl_easy_password_set(VALUE self, VALUE password) {
1107
1124
  #if HAVE_CURLOPT_PASSWORD
1108
1125
  CURB_OBJECT_HSETTER(ruby_curl_easy, password);
@@ -1111,6 +1128,12 @@ static VALUE ruby_curl_easy_password_set(VALUE self, VALUE password) {
1111
1128
  #endif
1112
1129
  }
1113
1130
 
1131
+ /*
1132
+ * call-seq:
1133
+ * easy.password => String
1134
+ *
1135
+ * Get the current password
1136
+ */
1114
1137
  static VALUE ruby_curl_easy_password_get(VALUE self, VALUE password) {
1115
1138
  #if HAVE_CURLOPT_PASSWORD
1116
1139
  CURB_OBJECT_HGETTER(ruby_curl_easy, password);
@@ -12,7 +12,7 @@
12
12
  #define rb_easy_set(key,val) rb_hash_aset(rbce->opts, rb_easy_hkey(key) , val)
13
13
  #define rb_easy_get(key) rb_hash_aref(rbce->opts, rb_easy_hkey(key))
14
14
  #define rb_easy_del(key) rb_hash_delete(rbce->opts, rb_easy_hkey(key))
15
- #define rb_easy_nil(key) (rb_hash_lookup(rbce->opts, rb_easy_hkey(key)) == Qnil)
15
+ #define rb_easy_nil(key) (rb_hash_aref(rbce->opts, rb_easy_hkey(key)) == Qnil)
16
16
  #define rb_easy_type_check(key,type) (rb_type(rb_hash_aref(rbce->opts, rb_easy_hkey(key))) == type)
17
17
 
18
18
  // TODO: rb_sym_to_s may not be defined?
@@ -4,7 +4,7 @@ puts $CFLAGS.inspect
4
4
  dir_config('curl')
5
5
 
6
6
  if find_executable('curl-config')
7
- $CFLAGS << " #{`curl-config --cflags`.strip}"
7
+ $CFLAGS << " #{`curl-config --cflags`.strip} -g"
8
8
  if ENV['STATIC_BUILD']
9
9
  $LIBS << " #{`curl-config --static-libs`.strip}"
10
10
  else
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.4.0
4
+ version: 0.6.4.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-14 00:00:00 -05:00
13
+ date: 2010-01-16 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -32,18 +32,18 @@ files:
32
32
  - lib/curb.rb
33
33
  - lib/curl.rb
34
34
  - ext/curb.c
35
- - ext/curb_postfield.c
36
- - ext/curb_multi.c
37
- - ext/curb_errors.c
38
35
  - ext/curb_easy.c
36
+ - ext/curb_errors.c
37
+ - ext/curb_multi.c
38
+ - ext/curb_postfield.c
39
39
  - ext/curb_upload.c
40
+ - ext/curb.h
40
41
  - ext/curb_easy.h
41
42
  - ext/curb_errors.h
42
- - ext/curb_upload.h
43
43
  - ext/curb_macros.h
44
- - ext/curb.h
45
- - ext/curb_postfield.h
46
44
  - ext/curb_multi.h
45
+ - ext/curb_postfield.h
46
+ - ext/curb_upload.h
47
47
  has_rdoc: true
48
48
  homepage: http://curb.rubyforge.org/
49
49
  licenses: []
@@ -75,18 +75,17 @@ 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
78
+ - tests/alltests.rb
80
79
  - tests/bug_curb_easy_blocks_ruby_threads.rb
81
- - tests/unittests.rb
82
- - tests/mem_check.rb
83
- - tests/bug_require_last_or_segfault.rb
84
80
  - tests/bug_instance_post_differs_from_class_post.rb
85
- - tests/tc_curl_download.rb
86
- - tests/alltests.rb
87
- - tests/helper.rb
88
- - tests/tc_curl_easy.rb
89
81
  - tests/bug_multi_segfault.rb
90
- - tests/require_last_or_segfault_script.rb
91
82
  - tests/bug_postfields_crash.rb
92
- - tests/s.rb
83
+ - tests/bug_require_last_or_segfault.rb
84
+ - tests/helper.rb
85
+ - tests/mem_check.rb
86
+ - tests/require_last_or_segfault_script.rb
87
+ - tests/tc_curl_download.rb
88
+ - tests/tc_curl_easy.rb
89
+ - tests/tc_curl_multi.rb
90
+ - tests/tc_curl_postfield.rb
91
+ - tests/unittests.rb
data/tests/s.rb DELETED
@@ -1,4 +0,0 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
2
-
3
- c = Curl::Easy.new("http://www.google.com/")
4
- c.perform