curb 0.9.2 → 0.9.3

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/ext/curb.c +12 -0
  3. data/ext/curb.h +3 -3
  4. data/ext/extconf.rb +9 -6
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2d299f9e0dce739a74ea53589cc402c4dc2ae2b
4
- data.tar.gz: efd8d73f02b9da758c3861a93489e78bb770e4af
3
+ metadata.gz: 2964444d7cc4bfb4e2e5f64e9abe3ecaa7b0dacc
4
+ data.tar.gz: 170341c4d16f2f3974ab95b170a5dbe89710785f
5
5
  SHA512:
6
- metadata.gz: 364eed3e88338d6c1c7fc8028181b82e945d8d605d171d470d319a434ad7198a2900fe600e4870ac2acc680a35df4e4506471d923cee020d707888168920276d
7
- data.tar.gz: ad15467a00c66ee255ed5a605ed48426400a12901e673181c873cf56c7e793534b4b17304cd75b02fd7c15d8e51e2b7a6f1bd24e5dc36c3ffc35096ef6c1b030
6
+ metadata.gz: bea120408008fed02a50784ba8655547c9f79a4217b8754ec8cd5605f687b6a414151d0e561294bf33713968e823dc204fce1952bd18af14ab94cf577416be5c
7
+ data.tar.gz: e31a107d26330271becb884c663b64944d614057a6918bc345a8926155b52d6fc25798f9f956e9b62bcd94daf619afee54c8f6a6a809df752331a53eb54d5fc1
data/ext/curb.c CHANGED
@@ -296,9 +296,15 @@ void Init_curb_core() {
296
296
  rb_define_const(mCurl, "CURL_SSLVERSION_TLSv1", LONG2NUM(CURL_SSLVERSION_TLSv1));
297
297
  rb_define_const(mCurl, "CURL_SSLVERSION_SSLv2", LONG2NUM(CURL_SSLVERSION_SSLv2));
298
298
  rb_define_const(mCurl, "CURL_SSLVERSION_SSLv3", LONG2NUM(CURL_SSLVERSION_SSLv3));
299
+ #if HAVE_CURL_SSLVERSION_TLSv1_0
299
300
  rb_define_const(mCurl, "CURL_SSLVERSION_TLSv1_0", LONG2NUM(CURL_SSLVERSION_TLSv1_0));
301
+ #endif
302
+ #if HAVE_CURL_SSLVERSION_TLSv1_1
300
303
  rb_define_const(mCurl, "CURL_SSLVERSION_TLSv1_1", LONG2NUM(CURL_SSLVERSION_TLSv1_1));
304
+ #endif
305
+ #if HAVE_CURL_SSLVERSION_TLSv1_2
301
306
  rb_define_const(mCurl, "CURL_SSLVERSION_TLSv1_2", LONG2NUM(CURL_SSLVERSION_TLSv1_2));
307
+ #endif
302
308
 
303
309
  rb_define_const(mCurl, "CURL_USESSL_CONTROL", LONG2NUM(CURB_FTPSSL_CONTROL));
304
310
  rb_define_const(mCurl, "CURL_USESSL_NONE", LONG2NUM(CURB_FTPSSL_NONE));
@@ -309,9 +315,15 @@ void Init_curb_core() {
309
315
  rb_define_const(mCurl, "CURL_SSLVERSION_TLSv1", LONG2NUM(-1));
310
316
  rb_define_const(mCurl, "CURL_SSLVERSION_SSLv2", LONG2NUM(-1));
311
317
  rb_define_const(mCurl, "CURL_SSLVERSION_SSLv3", LONG2NUM(-1));
318
+ #if HAVE_CURL_SSLVERSION_TLSv1_0
312
319
  rb_define_const(mCurl, "CURL_SSLVERSION_TLSv1_0", LONG2NUM(-1));
320
+ #endif
321
+ #if HAVE_CURL_SSLVERSION_TLSv1_1
313
322
  rb_define_const(mCurl, "CURL_SSLVERSION_TLSv1_1", LONG2NUM(-1));
323
+ #endif
324
+ #if HAVE_CURL_SSLVERSION_TLSv1_2
314
325
  rb_define_const(mCurl, "CURL_SSLVERSION_TLSv1_2", LONG2NUM(-1));
326
+ #endif
315
327
 
316
328
  rb_define_const(mCurl, "CURL_USESSL_CONTROL", LONG2NUM(-1));
317
329
  rb_define_const(mCurl, "CURL_USESSL_NONE", LONG2NUM(-1));
data/ext/curb.h CHANGED
@@ -20,10 +20,10 @@
20
20
  #include "curb_macros.h"
21
21
 
22
22
  // These should be managed from the Rake 'release' task.
23
- #define CURB_VERSION "0.9.2"
24
- #define CURB_VER_NUM 902
23
+ #define CURB_VERSION "0.9.3"
24
+ #define CURB_VER_NUM 903
25
25
  #define CURB_VER_MAJ 0
26
- #define CURB_VER_MIN 2
26
+ #define CURB_VER_MIN 3
27
27
  #define CURB_VER_MIC 0
28
28
  #define CURB_VER_PATCH 0
29
29
 
@@ -318,12 +318,15 @@ have_constant "curlopt_sslengine"
318
318
  have_constant "curlopt_sslengine_default"
319
319
  have_constant "curlopt_sslversion"
320
320
  have_constant "curl_sslversion_default"
321
- have_constant :CURL_SSLVERSION_TLSv1
322
- have_constant :CURL_SSLVERSION_SSLv2
323
- have_constant :CURL_SSLVERSION_SSLv3
324
- have_constant :CURL_SSLVERSION_TLSv1_0
325
- have_constant :CURL_SSLVERSION_TLSv1_1
326
- have_constant :CURL_SSLVERSION_TLSv1_2
321
+ have_constant "curl_sslversion_tlsv1"
322
+ have_constant "curl_sslversion_sslv2"
323
+ have_constant "curl_sslversion_sslv3"
324
+
325
+ # Added in 7.34.0
326
+ have_constant "curl_sslversion_tlsv1_0"
327
+ have_constant "curl_sslversion_tlsv1_1"
328
+ have_constant "curl_sslversion_tlsv1_2"
329
+
327
330
  have_constant "curlopt_ssl_verifypeer"
328
331
  have_constant "curlopt_cainfo"
329
332
  have_constant "curlopt_issuercert"
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.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Bamford
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-10 00:00:00.000000000 Z
12
+ date: 2016-04-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Curb (probably CUrl-RuBy or something) provides Ruby-language bindings
15
15
  for the libcurl(3), a fully-featured client-side URL transfer library. cURL and