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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 752a3427894e7b7f24e0619e79dde40e47a3c944
4
- data.tar.gz: 21c6430fd7e5aafcb7f6bfa2e8183229370f0d7b
3
+ metadata.gz: afb6d7d6168e4decfb5b6d404165f37b87bf5d05
4
+ data.tar.gz: '0927904198e01b62401ac3a5427c486b36544f49'
5
5
  SHA512:
6
- metadata.gz: dbe5bbc7ef280154914b479d19a512195ac496f5fdfbde942ccdd2d6f6c3ede6481af76d1964388bbc034462e554ae350f577d020b17a21e4a5ed16dcb5d050d
7
- data.tar.gz: 739e1cef585d51a45796bd3fb20a6fcaab966f9612552b0a62f7d4ab3d65ddae2fae11ae3fd7cbfce4d85bf2d269ce81e133f4534d252a8caf65f23edfb83778
6
+ metadata.gz: f97c8c0c6c67f26c3898c382a6f08c2642179626b7db19410eb9906b5c58db4c78c32cdece9ee2051202b4bb9922e4f6e298c6fb13cb8fd78990b628fe51e9e8
7
+ data.tar.gz: fbaf0eff194d6649740c36f63d20ef4325602d1ca9bed1bbe752664cef22f80b3b1b10df492e6acc4a5cffbf598e23021fb231da006452e373e5bdf28ceac2b1
@@ -1,3 +1,9 @@
1
+ ## [0.1.2] - 2017-09-11
2
+
3
+ ### Changed
4
+
5
+ * No params dump as JSON in case GET and DELETE
6
+
1
7
  ## [0.1.1] - 2016-03-28
2
8
 
3
9
  ### Changed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.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.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: 2016-03-28 00:00:00.000000000 Z
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.5.2
144
+ rubygems_version: 2.6.13
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: convinient functions for api test