wrest 2.1.5 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/wrest/native/request.rb +1 -2
- data/lib/wrest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 562de2694002d7c559a501ddb1647cb1ef0019c7
|
4
|
+
data.tar.gz: 770fae5f5c6c2510c93c261d8f1423ec5bc14511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4089745bb2c50011174f00a3fb66140c251a7efb070bd6d281e5a3b475fcb191fd3e15dd39848cf551979017809dfd45ccd56f5b3c304a70ecd8554f579956fc
|
7
|
+
data.tar.gz: 3ce73ea70764603bb3e4b74f705a89a334a1c29ade161dfa0b4097fa157c680f87742197f4a503fce05a4b992b1c091c45b53329b1fe74f74ad76b3681513432
|
data/CHANGELOG
CHANGED
@@ -2,6 +2,9 @@ Features under the section marked 'Current' are completed but pending release as
|
|
2
2
|
|
3
3
|
Features under a numbered section are complete and available in the Wrest gem.
|
4
4
|
|
5
|
+
== 2.1.6
|
6
|
+
* Logging payload by default
|
7
|
+
|
5
8
|
== 2.1.4
|
6
9
|
* Making cache keys include query params
|
7
10
|
|
data/lib/wrest/native/request.rb
CHANGED
@@ -91,10 +91,9 @@ module Wrest::Native
|
|
91
91
|
prefix = "#{http_request.method} #{self.hash} #{@connection.hash} #{Thread.current.object_id}"
|
92
92
|
|
93
93
|
Wrest.logger.debug "<- (#{prefix}) #{@uri.protocol}://#{@uri.host}:#{@uri.port}#{@http_request.path}"
|
94
|
-
Wrest.logger.debug "(headers) #{@http_request.headers}"
|
95
|
-
Wrest.logger.debug "(body) #{@http_request.body}"
|
96
94
|
time = Benchmark.realtime { response = Wrest::Native::Response.new( do_request ) }
|
97
95
|
Wrest.logger.debug "-> (#{prefix}) %d %s (%d bytes %.2fs)" % [response.code, response.message, response.body ? response.body.length : 0, time]
|
96
|
+
Wrest.logger.debug "#{response.body}"
|
98
97
|
|
99
98
|
execute_callback_if_any(response)
|
100
99
|
|
data/lib/wrest/version.rb
CHANGED