ruby-sfn-local 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sfn/mock_macros/api_gateway.rb +2 -2
- data/lib/sfn/mock_macros/lambda.rb +2 -2
- data/lib/sfn/mock_macros/native_integration.rb +2 -2
- data/lib/sfn/mock_macros/optimised_step_function.rb +2 -2
- data/lib/sfn/mock_macros/sdk_integration.rb +2 -2
- data/lib/sfn/mock_macros/secrets_manager.rb +2 -2
- data/lib/sfn/mock_macros/sns.rb +2 -2
- data/lib/sfn/mock_macros/sqs.rb +2 -2
- data/lib/sfn/mock_macros/step_function.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d68a321378807a1a11249950ebb400f5f33a8c3d662306566ef3aede826d18ff
|
4
|
+
data.tar.gz: 919713ecbec3594d08e5700105995772753ebcefcffdbc916d3c671b0d70c524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eef4da764b91790dc86510487a6a19752732928e986f95e86585a4edc92197fe5fa588032cade13eab2bbec0b7ae9e78a8ef2ed0de01e0425c01836a9903f10
|
7
|
+
data.tar.gz: cdc8c3f006170f605636d555fde249e602e9eda30e2c0c7c49021e5ad3f792dc909e3a720f993c32d5cc5e36a941d63b88365ad66b70ab21985241284748e96b
|
@@ -5,7 +5,7 @@ module Sfn
|
|
5
5
|
module ApiGateway
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
if val.key?(:error)
|
10
10
|
{ Throw: { Error: val[:error], Cause: val[:cause] } }
|
11
11
|
else
|
@@ -16,7 +16,7 @@ module Sfn
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
out = {}
|
19
|
-
|
19
|
+
out_data.each_with_index do |val, idx|
|
20
20
|
out[idx.to_s] = val
|
21
21
|
end
|
22
22
|
out
|
@@ -5,7 +5,7 @@ module Sfn
|
|
5
5
|
module Lambda
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
if val.key?(:error)
|
10
10
|
{ Throw: { Error: val[:error], Cause: val[:cause] } }
|
11
11
|
else
|
@@ -15,7 +15,7 @@ module Sfn
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
out = {}
|
18
|
-
|
18
|
+
out_data.each_with_index do |val, idx|
|
19
19
|
out[idx.to_s] = val
|
20
20
|
end
|
21
21
|
out
|
@@ -5,7 +5,7 @@ module Sfn
|
|
5
5
|
module NativeIntegration
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
if val.key?(:error)
|
10
10
|
{ Throw: { Error: val[:error], Cause: val[:cause] } }
|
11
11
|
else
|
@@ -13,7 +13,7 @@ module Sfn
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
out = {}
|
16
|
-
|
16
|
+
out_data.each_with_index do |val, idx|
|
17
17
|
out[idx.to_s] = val
|
18
18
|
end
|
19
19
|
out
|
@@ -5,7 +5,7 @@ module Sfn
|
|
5
5
|
module OptimisedStepFunction
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
if val.key?(:error)
|
10
10
|
{ Throw: { Error: val[:error], Cause: val[:cause] } }
|
11
11
|
else
|
@@ -15,7 +15,7 @@ module Sfn
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
out = {}
|
18
|
-
|
18
|
+
out_data.each_with_index do |val, idx|
|
19
19
|
out[idx.to_s] = val
|
20
20
|
end
|
21
21
|
out
|
@@ -5,11 +5,11 @@ module Sfn
|
|
5
5
|
module SdkIntegration
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
{ Return: val.to_json }
|
10
10
|
end
|
11
11
|
out = {}
|
12
|
-
|
12
|
+
out_data.each_with_index do |val, idx|
|
13
13
|
out[idx.to_s] = val
|
14
14
|
end
|
15
15
|
out
|
@@ -5,7 +5,7 @@ module Sfn
|
|
5
5
|
module SecretsManager
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
if val.key?(:error)
|
10
10
|
{ Throw: { Error: val[:error], Cause: val[:cause] } }
|
11
11
|
else
|
@@ -15,7 +15,7 @@ module Sfn
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
out = {}
|
18
|
-
|
18
|
+
out_data.each_with_index do |val, idx|
|
19
19
|
out[idx.to_s] = val
|
20
20
|
end
|
21
21
|
out
|
data/lib/sfn/mock_macros/sns.rb
CHANGED
@@ -5,7 +5,7 @@ module Sfn
|
|
5
5
|
module Sns
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
if val.key?(:error)
|
10
10
|
{ Throw: { Error: val[:error], Cause: val[:cause] } }
|
11
11
|
else
|
@@ -15,7 +15,7 @@ module Sfn
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
out = {}
|
18
|
-
|
18
|
+
out_data.each_with_index do |val, idx|
|
19
19
|
out[idx.to_s] = val
|
20
20
|
end
|
21
21
|
out
|
data/lib/sfn/mock_macros/sqs.rb
CHANGED
@@ -5,7 +5,7 @@ module Sfn
|
|
5
5
|
module Sqs
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
if val.key?(:error)
|
10
10
|
{ Throw: { Error: val[:error], Cause: val[:cause] } }
|
11
11
|
else
|
@@ -15,7 +15,7 @@ module Sfn
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
out = {}
|
18
|
-
|
18
|
+
out_data.each_with_index do |val, idx|
|
19
19
|
out[idx.to_s] = val
|
20
20
|
end
|
21
21
|
out
|
@@ -5,7 +5,7 @@ module Sfn
|
|
5
5
|
module StepFunction
|
6
6
|
def self.response(data)
|
7
7
|
data = [data] if data.is_a?(Hash)
|
8
|
-
data.map
|
8
|
+
out_data = data.map do |val|
|
9
9
|
if val.key?(:error)
|
10
10
|
{ Return: { Error: val[:error], Cause: val[:cause], Status: 'FAILED' } }
|
11
11
|
else
|
@@ -15,7 +15,7 @@ module Sfn
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
out = {}
|
18
|
-
|
18
|
+
out_data.each_with_index do |val, idx|
|
19
19
|
out[idx.to_s] = val
|
20
20
|
end
|
21
21
|
out
|
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.
|
4
|
+
version: 0.1.32
|
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-
|
11
|
+
date: 2023-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-release
|