ruby-sfn-local 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sfn/execution_log.rb +8 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fe17e00c8d4e14a4fce01894eb055a416e43abe8bcc9e7c9335a7af385e20af
4
- data.tar.gz: d5fbd90070b32dd0c8d3afd1b6c7096842679b97028d8538efd19c0a70d29b98
3
+ metadata.gz: 1d655dc8f501ace970ed5a36bfe03ce609b520c0e5395a15e5ea9e39802da0a7
4
+ data.tar.gz: 876bb0c3e239c9f23935ab2220f3790dafb58d46c50893f5b90c492cd1a5a732
5
5
  SHA512:
6
- metadata.gz: fcde4ca78448650c0dfd234c9783a01f7ef9e90e819f3d678a9094a8702a2b3c3affdbcf99bd1450bfc04e74715f1c2e3de98bbe20098826758b71aa10eec79b
7
- data.tar.gz: 2fdd25a501f35fd1d9b76198e1a3b71328eddc1b1c9dd470f8cf225655eb41f61271496cd6ba1bc3b0d1890c18be939e6d005d93d5fcf066a7077eec28148a73
6
+ metadata.gz: f7ac6a2a6e99d56fc0dff450504480bf3cc401176e6b09ce9bd00073214bf1d2dde2a33fc239e18adb702e415805113b6bfc78a1838d8afc9c125fbf7548a47e
7
+ data.tar.gz: d8d38c722b72679eb0cb85e8930f1c3dc773a2803881254db173865d09e0df62b840cd03679ff1b86eb93c502e99ac34e6996838a2956770d4f6d369f4b9f0e0
@@ -33,12 +33,12 @@ module Sfn
33
33
  state_name = parsed_event.state_name
34
34
 
35
35
  unless state_name.nil?
36
- profile[state_name] ||= { input: [], output: [], parameters: [] }
37
- profile[state_name][:input] << parsed_event.profile[:input] unless parsed_event.profile[:input].nil?
38
- profile[state_name][:output] << parsed_event.profile[:output] unless parsed_event.profile[:output].nil?
36
+ profile[state_name] ||= { 'input' => [], 'output' => [], 'parameters' => [] }
37
+ profile[state_name]['input'] << parsed_event.profile['input'] unless parsed_event.profile['input'].nil?
38
+ profile[state_name]['output'] << parsed_event.profile['output'] unless parsed_event.profile['output'].nil?
39
39
  end
40
- if !last_state_name.nil? && !parsed_event.profile[:parameters].nil?
41
- profile[last_state_name][:parameters] << parsed_event.profile[:parameters]
40
+ if !last_state_name.nil? && !parsed_event.profile['parameters'].nil?
41
+ profile[last_state_name]['parameters'] << parsed_event.profile['parameters']
42
42
  end
43
43
  end
44
44
  [output, profile]
@@ -66,9 +66,9 @@ module Sfn
66
66
 
67
67
  def profile
68
68
  {
69
- input: try_parse(event.dig('stateEnteredEventDetails', 'input')),
70
- output: try_parse(event.dig('stateExitedEventDetails', 'output')),
71
- parameters: try_parse(event.dig('taskScheduledEventDetails', 'parameters'))
69
+ 'input' => try_parse(event.dig('stateEnteredEventDetails', 'input')),
70
+ 'output' => try_parse(event.dig('stateExitedEventDetails', 'output')),
71
+ 'parameters' => try_parse(event.dig('taskScheduledEventDetails', 'parameters'))
72
72
  }.compact
73
73
  end
74
74
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-sfn-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gianni Mazza