excon-hypermedia 0.4.0 → 0.4.1

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: 38a442095c082e7251b1a72d8e88084833357a3d
4
- data.tar.gz: f0ff7d16042fa3d35bfca84b216b6e145f55db2d
3
+ metadata.gz: 4ac864a15335585a7b84fcee3def970232abe429
4
+ data.tar.gz: 53aaadb46648675e6d2d919fdadda891aee9f106
5
5
  SHA512:
6
- metadata.gz: 6ce27164e467d58bd426538b59cb917761c246d36dcb744d43e807169415ca225280cbd9965d41a631c907b2abeed49794090e3800a78e51a05b2f0811f781f1
7
- data.tar.gz: 4670c0806fa665a012b0238598cc724296e5252b79735f116954aba80649b116773560d07aeebad932cbfd0f39550bd1a21248376d2ab25ccc6f49f1615fdf9e
6
+ metadata.gz: 6806fc02216a5c3ad4d73db1b3d0e6f049a3841ac7d3d3113cc14f65a3a8210b3746fb724c870625fe69322fc119a0906893a361361c8d3964132f69e7f62bf1
7
+ data.tar.gz: bf537f951a42146063a8be8c8edeaa535ea65f4ce4e7f5d46d08a61bed43475ba53ab7e1113eb4b121b820d04acb1643bc258709b49a008c0ae6a38f7d7cf5ae
@@ -14,10 +14,9 @@ module Excon
14
14
  # will be left alone by this middleware.
15
15
  #
16
16
  class Middleware < Excon::Middleware::Base
17
- def request_call(datum)
17
+ def response_call(datum)
18
18
  return super unless (content_type = datum.dig(:response, :headers, 'Content-Type').to_s)
19
19
 
20
- datum[:response] ||= {}
21
20
  datum[:response][:hypermedia] = if datum[:hypermedia].nil?
22
21
  content_type.include?('hal+json')
23
22
  else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Excon
4
4
  module HyperMedia
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon-hypermedia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-20 00:00:00.000000000 Z
12
+ date: 2016-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler