ruby-sfn-local 0.1.29 → 0.1.30

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: be57c78578b7ddee065c2bcd524f3a8a76fbee4c8f55010fcb2ed08c9daae437
4
- data.tar.gz: '072679be3d8981e2831a27ba5e47bb7b8ca588b779e6aab5ba2a38673e72918e'
3
+ metadata.gz: 5f39a29fcb4267d151c127c9cb1bb087225f8bfcec17fcbd86fae7e728509472
4
+ data.tar.gz: 96cf6b8922ef7b7bdb6a77fef72f985bd8212f6386f13a214fa8955fd5f62ccb
5
5
  SHA512:
6
- metadata.gz: c62f2e9b6c359688ac144d19b2f0816839e95bd3249683f0df2b5abdedea609638c0238e9d90867792340a1ad159fae0397c3b065a38a520ed54f4d958c1e2c7
7
- data.tar.gz: ae4203012bb56dca90fc2a771e9da7988dc0296995d5db402106da4b70a8230a3bb55078bb230598d45fe0e1b468760fc066da57bc4b78beed0c4f1a4e3968a9
6
+ metadata.gz: 02cd2a8099569ab7e0cbf86f38b5b95ac325b8ae3912b406709d93bdf09f70d24f82e63da8c7ace09204d4354d47ab5838c9163034548f8c52cab59f9fa73130
7
+ data.tar.gz: d40f6ee1da4a101fe4e8e226b450518f24784dcda34e93c5de918b5231a05c71da280fb25df51e12a17c0d5b61b54510cb5550d066ac9ff86e4c0ef6a9d2f028
@@ -7,7 +7,7 @@ module Sfn
7
7
  data = [data] if data.is_a?(Hash)
8
8
  data.map! do |val|
9
9
  if val.key?(:error)
10
- { Throw: { Error: val[:error], Cause: val[:cause] } }
10
+ { Return: { Error: val[:error], Cause: val[:cause], Status: 'FAILED' } }
11
11
  else
12
12
  val[:output] ||= val[:payload]
13
13
  val[:output] ||= val[:response]
@@ -39,7 +39,7 @@ module Sfn
39
39
 
40
40
  def self.optimised_step_function_response(data)
41
41
  OptimisedStepFunction.response(data)
42
- end
42
+ end
43
43
 
44
44
  def self.secrets_manager_response(data)
45
45
  SecretsManager.response(data)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-sfn-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.29
4
+ version: 0.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gianni Mazza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-02 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-release