herdst_worker 0.1.11 → 0.1.12

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: 6b6b9a0d96a5006442a1575169588704eadbadef89218f89962970f61e4a0172
4
- data.tar.gz: 7f64060a9d13882974ce5a977a048371b8b00c898b9c0f1eae04c5e879e384ad
3
+ metadata.gz: de1696f26e425f21b3b7b012d121e1b26ea963ebcf8af1c8f8a9c13139aeca1c
4
+ data.tar.gz: df244986263a10dbe81226d4460dbea2347291ceead2271615482dae8cfb3616
5
5
  SHA512:
6
- metadata.gz: ac149ff031d7504cb7584ad8535b3cf4f7d6727cc9c1a342268219b84aeba0db3e45c055491d1ba44d97fdce842878733266a94a2e9bd8da2961471c3a62867a
7
- data.tar.gz: 7d2ee10d17bcfa82279b098da8de0bfc81a63dbc9fc13a82561fc1e70722b9e4666d80a1ec7bf3706df09139d9c7ee2ca5ba63b8f6327f151a0c3d201897cfef
6
+ metadata.gz: bfe4d82d6ccd9c9d2c4f6d0ba525e5a390efe99f6c4195a4f024f94f14f8d9528f95d762194d811048cd9b3dedd8949e519fbb5c385a9e787cc9f8dfc3967bee
7
+ data.tar.gz: 0f455004efd2140e80884dea4287fe235b41112d9a6b7e072373f6538e9becbf1b8b50165bc59062a75d90994de0ff7a00f5a710e485f84b5da98f0013c0737f
@@ -60,7 +60,7 @@ module HerdstWorker
60
60
  data_source = record["eventSource"].split(":")
61
61
  data_origin = data_source.first
62
62
  data_operation = data_source.last
63
- record_data = record[data_operation]
63
+ record_data = record[data_operation]
64
64
  company_id = nil
65
65
  user_id = nil
66
66
 
@@ -68,6 +68,11 @@ module HerdstWorker
68
68
  record_data["sentTimestamp"] = sent_timestamp
69
69
  record_data["triggerTimestamp"] = trigger_timestamp || sent_timestamp
70
70
 
71
+ # Id the event origin is s3 and an object was created overwrite the configuration ID
72
+ if data_origin == "aws" && data_operation == "s3" && record["eventName"] == "ObjectCreated:Put"
73
+ record_data["configurationId"] = "objectCreated"
74
+ end
75
+
71
76
  execution_data << record_data
72
77
 
73
78
  if data_origin === "application" and record.include? "userIdentity"
@@ -121,14 +126,7 @@ module HerdstWorker
121
126
 
122
127
  protected
123
128
  def fail_action_permanently(data)
124
- if data.include? "action_id"
125
- # action = Action.get(data["action_id"])
126
- #
127
- # if action
128
- # action.update_data({ :stats => nil, :errors => nil }, :errored)
129
- # action.cleanup
130
- # end
131
- end
129
+
132
130
  end
133
131
 
134
132
 
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.1.11'
2
+ VERSION = '0.1.12'
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.11
4
+ version: 0.1.12
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-04-05 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport