herdst_worker 0.1.11 → 0.1.12
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.
- checksums.yaml +4 -4
- data/lib/herdst_worker/queue/runner.rb +7 -9
- 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: de1696f26e425f21b3b7b012d121e1b26ea963ebcf8af1c8f8a9c13139aeca1c
         | 
| 4 | 
            +
              data.tar.gz: df244986263a10dbe81226d4460dbea2347291ceead2271615482dae8cfb3616
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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 | 
            -
                                 | 
| 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 |  | 
    
        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.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- | 
| 11 | 
            +
            date: 2022-05-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activesupport
         |