faraday-for_test 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/lib/faraday/for_test/response/formatter.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afb6d7d6168e4decfb5b6d404165f37b87bf5d05
|
4
|
+
data.tar.gz: '0927904198e01b62401ac3a5427c486b36544f49'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f97c8c0c6c67f26c3898c382a6f08c2642179626b7db19410eb9906b5c58db4c78c32cdece9ee2051202b4bb9922e4f6e298c6fb13cb8fd78990b628fe51e9e8
|
7
|
+
data.tar.gz: fbaf0eff194d6649740c36f63d20ef4325602d1ca9bed1bbe752664cef22f80b3b1b10df492e6acc4a5cffbf598e23021fb231da006452e373e5bdf28ceac2b1
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -26,7 +26,7 @@ module Faraday::ForTest
|
|
26
26
|
|
27
27
|
# TODO: configuraable
|
28
28
|
def request_body(pretty = false)
|
29
|
-
if request_params && !request_params.empty?
|
29
|
+
if request_params && !request_params.empty? && !%i[ get delete ].include?(env[:method])
|
30
30
|
if formatter = Faraday::ForTest.configuration.body_formatters.find {|k, v| env[:request_headers]["Content-Type"] =~ /#{k}/ }
|
31
31
|
formatter.last.call(request_params)
|
32
32
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday-for_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- okitan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.6.13
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: convinient functions for api test
|