herdst_worker 0.1.13 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/herdst_worker/queue/facade.rb +1 -1
- data/lib/herdst_worker/queue/runner.rb +13 -0
- data/lib/herdst_worker/version.rb +1 -1
- 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: 50cad009fea342f5f2147973c292ecf89fbbb65f983b33339b6c6855d0d8bda7
|
4
|
+
data.tar.gz: f8fb82c44f454d776b6290253d61e3fe01aa0f31ee360850d5a0b0987f054d0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3739b02330d9775b7730793ebdc1beffc29e65e4c799cb4a85be82491d972442165f1451d9c06a3877a307c5046dac007b5f2ab92a1c6d03b568131cf5f9d86
|
7
|
+
data.tar.gz: d2e59aa54ef5d07ac44425757f63e99f32078ae3e91cd01a47d1f64d08dc27a51f8d8d04cb9d076be8b97106b957685ca8f338ec76c33abad97cc7bcd9e6e3fd
|
@@ -103,7 +103,7 @@ module HerdstWorker
|
|
103
103
|
data[:app_id] = company.id
|
104
104
|
data[:app_name] = company.name
|
105
105
|
data[:app_slug] = company.get_host_name
|
106
|
-
data[:
|
106
|
+
data[:app_theme] = company.get_brand
|
107
107
|
data[:app_host] = company.get_url
|
108
108
|
data[:type] = "email"
|
109
109
|
data[:template] = template
|
@@ -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
|
|
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.
|
4
|
+
version: 0.1.15
|
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-
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|