uc3-dmp-external-api 0.0.15 → 0.0.16

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: 498c63c494595d50e7dcb8f2a964055da8360cd859e97e92600f1373f735b4fc
4
- data.tar.gz: 528b3e4859e1e95fe45f57445a291f795571f04e18bc5b5f287fcd6c1c402127
3
+ metadata.gz: d8e39973a3b40b3db04e6c29f794882480c708a2a87d40b224bdaa1d0d77e196
4
+ data.tar.gz: c6e41bb28b599435ff4181a2ddbddaad688c3cd02d2c3e20bb824c43bdf4050e
5
5
  SHA512:
6
- metadata.gz: 469f685ec4aaccdc4f794e4d70a1b484e3083ed5f3fa0e76d1ec1d5a7d846ab95fb1b715345b236d0874163d7c880654cd0b22e69eaac25124595e3a28a96548
7
- data.tar.gz: 037ebb2f986862e5746756d51a994e046fe8742436a4d86e6de20111054818068404bfa3ff37c4bd235d4c95b8aedec65c5cbb0065a960053672e3e844463260
6
+ metadata.gz: ddce47c28c5d53a8534f2a81bbb677ed2010ae8b9cd893ce3e10f61d26818a25aee7f3be22866f0d0fe2be30d01e3218b9094dba47c744c92a9732909a8695a4
7
+ data.tar.gz: 2e12614a7d6e0511be963ad169203e458a15b6a3fcb32c92c054db5001f6b84658a42335ed7f96684dd887d29c4bf8050e61382b7c86435ff431b0f09f6c14e4
@@ -25,7 +25,7 @@ module Uc3DmpExternalApi
25
25
  opts = _options(body: body, basic_auth: basic_auth, additional_headers: additional_headers, logger: logger)
26
26
  resp = HTTParty.send(method.to_sym, uri, opts)
27
27
 
28
- if resp.code != 200
28
+ if ![200, 201].include?(resp.code)
29
29
  msg = "status: #{resp&.code}, body: #{resp&.body}"
30
30
  raise ExternalApiError, "#{format(MSG_ERROR_FROM_EXTERNAL_API, url: url)} - #{msg}"
31
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpExternalApi
4
- VERSION = '0.0.15'
4
+ VERSION = '0.0.16'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-external-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-10 00:00:00.000000000 Z
11
+ date: 2023-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-sns