flexirest 1.3.18 → 1.3.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/flexirest/request.rb +3 -2
- data/lib/flexirest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0982726f28cbf1e5d5c3eb83e3748a5ce6fdf6ef
|
4
|
+
data.tar.gz: 4944b84e08c350442e8b683c7850e2034dd7a21c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3704be3d5ab6cc0d255670b49bc12392c5d5d157eaa422a367619f7110318b300bf2fc9508e264ef745d6a854920e91869ef00b68db252492b73ac8518cd19ea
|
7
|
+
data.tar.gz: 45113de45f00c0e0d2f9e51722274379f96e7d09b498d0e1e65e75385b1f1197ae66d21f5af3819698c875173d3ee307bc16460a6f31054ec52da088a706ae5d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -579,7 +579,7 @@ end
|
|
579
579
|
|
580
580
|
### Parallel Requests
|
581
581
|
|
582
|
-
Sometimes you know you will need to make a bunch of requests and you don't want to wait for one to finish to start the next. When using parallel requests there is the potential to finish many requests all at the same time taking only as long as the single longest request. To use parallel requests you will need to set
|
582
|
+
Sometimes you know you will need to make a bunch of requests and you don't want to wait for one to finish to start the next. When using parallel requests there is the potential to finish many requests all at the same time taking only as long as the single longest request. To use parallel requests you will need to set Flexirest to use a Faraday adapter that supports parallel requests [(such as Typhoeus)](https://github.com/lostisland/faraday/wiki/Parallel-requests).
|
583
583
|
```ruby
|
584
584
|
# Set adapter to Typhoeus to use parallel requests
|
585
585
|
Flexirest::Base.adapter = :typhoeus
|
data/lib/flexirest/request.rb
CHANGED
@@ -411,7 +411,7 @@ module Flexirest
|
|
411
411
|
result = generate_new_object(ignore_root: @method[:options][:ignore_root], ignore_xml_root: @method[:options][:ignore_xml_root])
|
412
412
|
# TODO: Cleanup when ignore_xml_root is removed
|
413
413
|
else
|
414
|
-
raise ResponseParseException.new(status:status, body:@response.body)
|
414
|
+
raise ResponseParseException.new(status:status, body:@response.body, headers: @response.headers)
|
415
415
|
end
|
416
416
|
else
|
417
417
|
if is_json_response? || is_xml_response?
|
@@ -611,10 +611,11 @@ module Flexirest
|
|
611
611
|
class InvalidRequestException < RequestException ; end
|
612
612
|
class MissingParametersException < RequestException ; end
|
613
613
|
class ResponseParseException < RequestException
|
614
|
-
attr_accessor :status, :body
|
614
|
+
attr_accessor :status, :body, :headers
|
615
615
|
def initialize(options)
|
616
616
|
@status = options[:status]
|
617
617
|
@body = options[:body]
|
618
|
+
@headers = options[:headers]
|
618
619
|
end
|
619
620
|
end
|
620
621
|
|
data/lib/flexirest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexirest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|