patron 0.7.0 → 0.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f76646171763f7fa4dfc31e84faa095603d0a436
4
- data.tar.gz: 1afb07a23dac44e8a082049cd5e5c4500a3ae6f8
3
+ metadata.gz: 6204d4c97ae0f3c4c096fb8dddef4b7d46a2da8c
4
+ data.tar.gz: c424a82c114d4720863e0b60563c4fc98f9dcecb
5
5
  SHA512:
6
- metadata.gz: e082c9ffc4a0fca0384aa00393761ca50dbbece9745b13e66c8e5776b195c2865ea03ccc79849907ab3c084a40570fff1bdd38b5e690e327a8d268e93e6058fc
7
- data.tar.gz: eaa0104eddc56283dd2561a5aae9c4736dd5e24c433cc2a08d360900173a6ac18c1c2dd7731881a339fadf7f802a8224d22476120c01ac884746983d7bd2895f
6
+ metadata.gz: 0dcb73a87308df2a7230569762365bfa9da0e76658b1ee5b609c9c0b4dda31aa34e722adba99892ec3dfbd5cc2a58ca45e14882c3c33b495e498f4fe269e1159
7
+ data.tar.gz: 0a433dfd1c155ae7c05e570052d50ecf9e442c149c66a3e9e9bed1ea1746ee214ce27b31a84f3ea29ccbff8230a46b4272f045ea8038c1ec6e5d229bf7705ad6
@@ -1,3 +1,5 @@
1
+ ### 0.7.0
2
+
1
3
  * Allow Ruby File objects to be passed as `data` to `Session#put`, `Sesion#post` etc.
2
4
 
3
5
  ### 0.6.5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- patron (0.7.0)
4
+ patron (0.7.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -336,14 +336,12 @@ static void set_request_body_file(struct curl_state* state, VALUE r_path_str) {
336
336
  state->request_body_file = open_file(r_path_str, "rb");
337
337
  curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
338
338
  curl_easy_setopt(curl, CURLOPT_READDATA, state->request_body_file);
339
+ struct stat stat_info;
340
+ fstat(fileno(state->request_body_file), &stat_info);
339
341
  #ifdef CURLOPT_INFILESIZE_LARGE
340
- struct stat stat_info;
341
- fstat(fileno(state->request_body_file), &stat_info);
342
- curl_easy_setopt(curl, CURLOPT_INFILESIZE, stat_info.st_size);
343
- #else
344
- struct stat stat_info;
345
- fstat(fileno(state->request_body_file), &stat_info);
346
342
  curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, stat_info.st_size);
343
+ #else
344
+ curl_easy_setopt(curl, CURLOPT_INFILESIZE, stat_info.st_size);
347
345
  #endif
348
346
  }
349
347
 
@@ -1,3 +1,3 @@
1
1
  module Patron
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phillip Toland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-05 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler