ruby-sfn-local 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sfn/state_machine.rb +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 184760e30916c0f301d4bc438b66f213c75774987df81472cf3a7c05dbbc0b3d
4
- data.tar.gz: 7d6c7cf307eec32ade24d3a472c2f0dc396ece10daf296af401ce8d7d5fa7023
3
+ metadata.gz: 6bd6e4900461c1cd42b5143325c540781314111197b76ae27b4768eb19bd1a50
4
+ data.tar.gz: 85c3a15791c5e40840e39c7ee56ad4beb5d47c07d141c9a8b1492d374336ad57
5
5
  SHA512:
6
- metadata.gz: 4a78367ca2df85472e6a090e5aac5d0d5c2707828a1a5d852c74aa9afb1ba05820a56192103743556856b6af92bccc234a6de1fd9a4c4d43d3a887bb808693e2
7
- data.tar.gz: 332a9ab75391af1b4b106bca9f28ae4f9203d30a2506c180be3750cddf9239160d80559d1e9c027cced1f95675ab589f4e87fbaf393751b6860dbdb250a55ed4
6
+ metadata.gz: e48fa25f3ab80421f1e5412cd4dd30a85952a6375f6f13b96490e4a1346fc088ee952810f2eb038bd254c3ead6665fff92a70c49afc47ec0a60e9b8060a2764a
7
+ data.tar.gz: 49b30270ef15c4ce668c895a6cff508959405a6cbcb730f2e373e22832251ebbf7dfc091e8b1d61a802b89ec9fe70975161f4594eb32cf16815e4fcf17248733
@@ -69,7 +69,13 @@ module Sfn
69
69
  local_definition_path = Tempfile.new(['name', '.json']).path
70
70
 
71
71
  definition = File.read(path)
72
- local_definition = definition.gsub(/"MaxConcurrency": [0-9]+/, '"MaxConcurrency": 1')
72
+ local_definition = definition
73
+ local_definition = local_definition.gsub(/"MaxConcurrency": [0-9]+/, '"MaxConcurrency": 1')
74
+ local_definition = local_definition.gsub(/"Type": "Wait"/, '"Type": "Pass"')
75
+ local_definition = local_definition.gsub(/"Seconds": [0-9]+,*/, '')
76
+ local_definition = local_definition.gsub(/"Timestamp": "[0-9\-T:+]+",*/, '')
77
+ local_definition = local_definition.gsub(/"TimestampPath": "[^\"]+",*/, '')
78
+ local_definition = local_definition.gsub(/,[\s\n]+\}/, "\n}")
73
79
 
74
80
  File.open(local_definition_path, 'w') { |file| file.puts local_definition }
75
81
  "file://#{local_definition_path}"
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.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gianni Mazza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-17 00:00:00.000000000 Z
11
+ date: 2022-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-release