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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/api_proxy/response_builder.rb +9 -1
- data/lib/api_proxy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e972fe22ddbc91a901ad74433adaf5503fdd4a1399c09760f838c5a745be1f27
|
4
|
+
data.tar.gz: ffa7362b47e86089b51279e0d779fb0413a42ed3fc973c2059e1bea43497c6f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7806a1c91691a5ccf53f64692f0b504487ad5bb54ceb408a789101233ce05c7a7ef8094c165af60ffe56c61f33cc9cafcb59b7c139e3b3ce2819fe0b74f2909a
|
7
|
+
data.tar.gz: 4a42621a5bf9a9272b6e9b370e93e96c1890f38411f2ef0b42a2a136aa15f2d10d9989637ad29cead63201314022973c5c9649717139c633d34d8647444c0a10
|
data/Gemfile.lock
CHANGED
@@ -42,7 +42,15 @@ module ApiProxy
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def options
|
45
|
-
{ namespace: namespace,
|
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
|
data/lib/api_proxy/version.rb
CHANGED