uc3-dmp-external-api 0.0.14 → 0.0.15
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/lib/uc3-dmp-external-api/client.rb +1 -1
- data/lib/uc3-dmp-external-api/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: 498c63c494595d50e7dcb8f2a964055da8360cd859e97e92600f1373f735b4fc
|
|
4
|
+
data.tar.gz: 528b3e4859e1e95fe45f57445a291f795571f04e18bc5b5f287fcd6c1c402127
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 469f685ec4aaccdc4f794e4d70a1b484e3083ed5f3fa0e76d1ec1d5a7d846ab95fb1b715345b236d0874163d7c880654cd0b22e69eaac25124595e3a28a96548
|
|
7
|
+
data.tar.gz: 037ebb2f986862e5746756d51a994e046fe8742436a4d86e6de20111054818068404bfa3ff37c4bd235d4c95b8aedec65c5cbb0065a960053672e3e844463260
|
|
@@ -69,7 +69,7 @@ module Uc3DmpExternalApi
|
|
|
69
69
|
follow_redirects: true,
|
|
70
70
|
limit: 6
|
|
71
71
|
}
|
|
72
|
-
opts[:basic_auth] = basic_auth if basic_auth.is_a?(Hash)
|
|
72
|
+
opts[:basic_auth] = basic_auth if basic_auth.is_a?(Hash) && basic_auth.keys.any?
|
|
73
73
|
# If the body is not already JSON and we intend to send JSON, convert it
|
|
74
74
|
opts[:body] = body.is_a?(Hash) && hdrs['Content-Type'] == 'application/json' ? body.to_json : body
|
|
75
75
|
# If debug is enabled then tap into the HTTParty gem's debug option
|