api_proxy 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60bbe27ebc2868755a3f345018a46930ec121a0ab02078f30d997c6f1f0a975a
4
- data.tar.gz: 921d792f75d7cb12f1ae5a0ad1528b15fb8bc84c31e95705552c5819d59302f4
3
+ metadata.gz: e972fe22ddbc91a901ad74433adaf5503fdd4a1399c09760f838c5a745be1f27
4
+ data.tar.gz: ffa7362b47e86089b51279e0d779fb0413a42ed3fc973c2059e1bea43497c6f0
5
5
  SHA512:
6
- metadata.gz: dc0e69860cffd6aa688e8bee60dd171297dbf3048b5ae99889139d9fd027f0dbb32f821bc431cbee9d1217a1378f294b5ba823d002599fc7285f11b099df8141
7
- data.tar.gz: b710f1e58d785cea2086c30e54c7ea841b46d298c1d7d1f5c484a0f7c16c49be735ec43452a4d4ed3e9c59ae798f18888f1de21786c41c624ead688312bab3d8
6
+ metadata.gz: 7806a1c91691a5ccf53f64692f0b504487ad5bb54ceb408a789101233ce05c7a7ef8094c165af60ffe56c61f33cc9cafcb59b7c139e3b3ce2819fe0b74f2909a
7
+ data.tar.gz: 4a42621a5bf9a9272b6e9b370e93e96c1890f38411f2ef0b42a2a136aa15f2d10d9989637ad29cead63201314022973c5c9649717139c633d34d8647444c0a10
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_proxy (0.3.0)
4
+ api_proxy (0.3.1)
5
5
  activesupport (>= 4.0)
6
6
  api_signature (~> 0.1.2)
7
7
  httparty (>= 0.15)
@@ -42,7 +42,15 @@ module ApiProxy
42
42
  end
43
43
 
44
44
  def options
45
- { namespace: namespace, body: filtered_params, headers: request_headers }
45
+ { namespace: namespace, headers: request_headers }.tap do |hash|
46
+ hash[params_key] = filtered_params
47
+ end
48
+ end
49
+
50
+ def params_key
51
+ return :query if request.request_method.to_s.downcase == 'get'
52
+
53
+ :body
46
54
  end
47
55
 
48
56
  def filtered_params
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiProxy
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Malinovskiy