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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bae342bd65e0f4cceabacdea4207aef926a498c6e81b0274962514767ca9a47
4
- data.tar.gz: 9f26e0bc88a826d3dc80c8c216340227e35e15c523da5cf4c91df5a3e04fdc4e
3
+ metadata.gz: 7ea638dddb5bbda9402a73128a7d61b2ccba85b1e5f3108b564151a2c95ace5b
4
+ data.tar.gz: afbaefa5862688f2a011508a5f53da3a999bcf976ecae6bb5f505dddf59c9891
5
5
  SHA512:
6
- metadata.gz: dec90c441f1558f8a5974441cbcf8e0eef9f02cfec65aaf55d0006af40dfd09d0eb1d7c1c41f74c717a357c04dcc47abfec15bfb550a8b42b6057e7c819b37c6
7
- data.tar.gz: 485bfa12daa0bfce2522b2cbff673184fb2021bb1f8a198bc7fbafc507283c53ff931a2e608ecbcdec0cbdd3f46c36565c7ce725688d6bd0b7a8893bc177d78a
6
+ metadata.gz: c449880bbc2f0ef1f94d312440dff6ac9d123ceabd6821e4e1e0d8732a254610d935a47f813169c62083254053520d82fa4178bbc0d38a84955b8306253084c0
7
+ data.tar.gz: 8e63c0f6bbb20306a141583cbfdedff5482359e758e7e1399f8597c2f3cd7b4077172ef3592c56885b9c348c67f2c32ddf32cf8be8393941fab2decbac7de536
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- webspicy (0.15.0.pre.rc5)
4
+ webspicy (0.15.0.pre.rc6)
5
5
  finitio (>= 0.8.0)
6
6
  http (~> 2)
7
7
  mustermann (~> 1.0)
@@ -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", JSON.pretty_generate(body)) if 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/
@@ -2,7 +2,7 @@ module Webspicy
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 15
5
- TINY = "0-rc5"
5
+ TINY = "0-rc6"
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
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.rc5
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-17 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake