uc3-dmp-external-api 0.0.14 → 0.0.15

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: db272af293487c9f22cfa9077303a902e0f62f826797966c58ac3cb65f281b02
4
- data.tar.gz: 9663f7139db0c7ff5f47b9101676d8edc787d7021f8118deba245233d074da66
3
+ metadata.gz: 498c63c494595d50e7dcb8f2a964055da8360cd859e97e92600f1373f735b4fc
4
+ data.tar.gz: 528b3e4859e1e95fe45f57445a291f795571f04e18bc5b5f287fcd6c1c402127
5
5
  SHA512:
6
- metadata.gz: 24c8e3df1132946e87ed17c95900b2009d52ac89923a2d719ff6937947a2f276fab4f0d08701a0ae85ef5ca62dbc3d8fc1d1525520f6cc73c6b0b27da7d4fade
7
- data.tar.gz: e35e9fbf8a97edeccb3d2403fa511c75d52d3ba905a801ed46cfd13dcc2ab1f3c40a4e045262bc64c6615732341854c13560053a27669c21962e19bce328aaec
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpExternalApi
4
- VERSION = '0.0.14'
4
+ VERSION = '0.0.15'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-external-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley