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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbe7c1432cd8992f3dfd355a9fed8cbee4be01e7
4
- data.tar.gz: f03b53479a859ca5efab8e9443fb4e866f989a19
3
+ metadata.gz: 0982726f28cbf1e5d5c3eb83e3748a5ce6fdf6ef
4
+ data.tar.gz: 4944b84e08c350442e8b683c7850e2034dd7a21c
5
5
  SHA512:
6
- metadata.gz: 7212ded06e8af46d42c07d5ed65856f18f595351a8102e9f48125f1662611e47cff0183f8c01c9bd83aaabdb020e946d9bf6f0d82d0965bdc8b9bb36f7359701
7
- data.tar.gz: 0ff3eeba770b12c1ef02f0db7f6a13d717ae6868bc1754168e402531f5979714d4900d77ce85fe816c2911648ac4addd70e37232234b0382d39bef161bd118cc
6
+ metadata.gz: 3704be3d5ab6cc0d255670b49bc12392c5d5d157eaa422a367619f7110318b300bf2fc9508e264ef745d6a854920e91869ef00b68db252492b73ac8518cd19ea
7
+ data.tar.gz: 45113de45f00c0e0d2f9e51722274379f96e7d09b498d0e1e65e75385b1f1197ae66d21f5af3819698c875173d3ee307bc16460a6f31054ec52da088a706ae5d
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.19
4
+
5
+ Feature:
6
+
7
+ - Added Headers in to Flexirest::ResponseParseException to aid debugging of why it doesn't work against custom APIs.
8
+
3
9
  ## 1.3.18
4
10
 
5
11
  Feature:
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 Active-Rest-Client to use a Faraday adapter that supports parallel requests [(such as Typhoeus)](https://github.com/lostisland/faraday/wiki/Parallel-requests).
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.3.18"
2
+ VERSION = "1.3.19"
3
3
  end
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.18
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-05-25 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler