webspicy 0.15.0.pre.rc5 → 0.15.0.pre.rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/restful/Gemfile.lock +1 -1
- data/lib/webspicy/client/support.rb +6 -1
- data/lib/webspicy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ea638dddb5bbda9402a73128a7d61b2ccba85b1e5f3108b564151a2c95ace5b
|
4
|
+
data.tar.gz: afbaefa5862688f2a011508a5f53da3a999bcf976ecae6bb5f505dddf59c9891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c449880bbc2f0ef1f94d312440dff6ac9d123ceabd6821e4e1e0d8732a254610d935a47f813169c62083254053520d82fa4178bbc0d38a84955b8306253084c0
|
7
|
+
data.tar.gz: 8e63c0f6bbb20306a141583cbfdedff5482359e758e7e1399f8597c2f3cd7b4077172ef3592c56885b9c348c67f2c32ddf32cf8be8393941fab2decbac7de536
|
@@ -6,7 +6,7 @@ module Webspicy
|
|
6
6
|
Webspicy.info("#{kind} #{url}")
|
7
7
|
debug("Req params", JSON.pretty_generate(params)) if params
|
8
8
|
debug("Req headers", JSON.pretty_generate(headers)) if headers
|
9
|
-
debug("Req body",
|
9
|
+
debug("Req body", request_body_to_s(body)) if body
|
10
10
|
Webspicy.debug("")
|
11
11
|
end
|
12
12
|
|
@@ -21,6 +21,11 @@ module Webspicy
|
|
21
21
|
Webspicy.debug(" #{what}: " + value_to_s(value))
|
22
22
|
end
|
23
23
|
|
24
|
+
def request_body_to_s(body)
|
25
|
+
body = body.to_info if body.is_a?(Webspicy::FileUpload)
|
26
|
+
JSON.pretty_generate(body)
|
27
|
+
end
|
28
|
+
|
24
29
|
def response_body_to_s(response)
|
25
30
|
case response.content_type.to_s
|
26
31
|
when /json/
|
data/lib/webspicy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webspicy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.0.pre.
|
4
|
+
version: 0.15.0.pre.rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|