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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5b10b28c9146a86ff7280b0cc5084fa8b35ec478b13841d0a04cf23a55540a2
4
- data.tar.gz: 2a8eb33f5c95a594735472451dd030d4d328ee78ff5d0ecbca72b3248d58e8b3
3
+ metadata.gz: d091508f2e3181b841b216544b0aaa718147d831afdda230a0fdd9e64833707f
4
+ data.tar.gz: 03f55c89507bc91d5be96aeb6f640be9f7484009abbaacc8dc83bfeafa8ac6bd
5
5
  SHA512:
6
- metadata.gz: 30c051a9e631c11d974bc636cd494f0f7bff03fee3e17de84d7ccfe21d764681b47521df54de6b036b7aaa5bf8c1fa84103ecc8ce357cd6ae120864d58ec4652
7
- data.tar.gz: 2fbb9130bb8101e78a1062b0b13ac173e4ec10dff8a30cdc9302ffdc5544bc4158a1fc0ad5ee2bb444b26a80be8a9c776fb44e6b2d47b37b5cebd37e8acdf91b
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.parameters = parameters if parameters && !parameters.empty?
53
+ request.params = parameters if parameters && !parameters.empty?
54
54
  end
55
55
  when :head
56
56
  connection.head do |request|
57
- request.parameters = parameters if parameters && !parameters.empty?
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.parameters = parameters if parameters && !parameters.empty?
62
+ request.params = parameters if parameters && !parameters.empty?
63
63
  end
64
64
  end
65
65
 
@@ -1,3 +1,3 @@
1
1
  module Httply
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-20 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday