herdst_worker 0.1.13 → 0.1.14

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: '02193d09ac1bb8582882d36e937425623cf00768c1be911be7a857609e889099'
4
- data.tar.gz: 8ce2b6a8f69a84daf820ff98510f3f20f8544108ab64f4a2fc0a0795fad2c846
3
+ metadata.gz: a8ee87eb31076a5197533170b8cc692ca76281d962a0e296f8ed88bbc535e1af
4
+ data.tar.gz: 436409adc17f62f031236eb19d9bd536dc8538b37f435e0853a2c61637896b9a
5
5
  SHA512:
6
- metadata.gz: 2dfb5f43c264f4c3c28304e64948603bd4e817b947b04f5adf7d29c588624b3ca9f4ef0f67e13490965e11350d0bb955a4cd7f25791e2c66dd34f2127090a137
7
- data.tar.gz: a74f224e8782bbfab17d1a2ffb2f579a281ef3a7077e3e3b26621c29eb188d080407c4ac5c3fe886bdd380b66eac74e4aec2af2760873452d0bf86be026cadc6
6
+ metadata.gz: 750580eba97495e1dcacaeefb309ba4fb60d1562f3235903c0f0ee345301bc145704969beb336515b3ed75890f0b75b8511a305065a4b70ddd096e0f92ed163c
7
+ data.tar.gz: c76aece17773f0cf7e9847f1557734835ffaffac2a335a07a11d8480a8418d937481182cdc2ea74373d36640623c0f57724aba4bbb6ed4a7b06f6db71b0b95bd
@@ -101,6 +101,19 @@ module HerdstWorker
101
101
  }
102
102
  end
103
103
 
104
+ if message["source"] != nil and message["source"].starts_with?("aws.")
105
+ action_name = message["source"].split(".").last
106
+
107
+ message_record = message.dup
108
+ message_record["configurationId"] = "Event#{action_name.camelize}"
109
+ message_record["sentTimestamp"] = sent_timestamp
110
+ message_record["triggerTimestamp"] = trigger_timestamp || sent_timestamp
111
+
112
+ return Concurrent::Promise.new {
113
+ execute_message!(nil, nil, message_record)
114
+ }
115
+ end
116
+
104
117
  return Concurrent::Promise.new {}
105
118
  end
106
119
 
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport