httply 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/httply/client.rb +3 -3
- data/lib/httply/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: d091508f2e3181b841b216544b0aaa718147d831afdda230a0fdd9e64833707f
|
4
|
+
data.tar.gz: 03f55c89507bc91d5be96aeb6f640be9f7484009abbaacc8dc83bfeafa8ac6bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d54ea6aa11f415a9cdfc0f5918f654e938b872b7d6d4bc2667b7a52f6c7b842f3cd9d3ecedde60515ec7af1432aef3cade8140344e38ee6ae1ad3e803b6bcb3d
|
7
|
+
data.tar.gz: 3df9f9830d9695aae4d16779ded20a9dd2196ebb73a7244ff188131c3e564ba61f5d6e01f25aaa3df8904a5c398b8c05a969184ed4713ecba50bf4978e69446b
|
data/lib/httply/client.rb
CHANGED
@@ -50,16 +50,16 @@ module Httply
|
|
50
50
|
response = case method
|
51
51
|
when :get
|
52
52
|
connection.get do |request|
|
53
|
-
request.
|
53
|
+
request.params = parameters if parameters && !parameters.empty?
|
54
54
|
end
|
55
55
|
when :head
|
56
56
|
connection.head do |request|
|
57
|
-
request.
|
57
|
+
request.params = parameters if parameters && !parameters.empty?
|
58
58
|
end
|
59
59
|
when :post, :put, :patch, :delete
|
60
60
|
connection.send(method) do |request|
|
61
61
|
request.body = data if data && !data.empty?
|
62
|
-
request.
|
62
|
+
request.params = parameters if parameters && !parameters.empty?
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
data/lib/httply/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Johnsson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|