eventsimple 1.1.0 → 1.1.1
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/CHANGELOG.md +5 -0
- data/Gemfile.lock +3 -3
- data/README.md +0 -5
- data/lib/eventsimple/configuration.rb +0 -7
- data/lib/eventsimple/reactor.rb +1 -1
- data/lib/eventsimple/version.rb +1 -1
- data/lib/eventsimple.rb +1 -0
- 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: 46f6a80be5a43cb84c321b67e9a27dde596b2eb3aa3d55ce8f635e395f42ce19
         | 
| 4 | 
            +
              data.tar.gz: c3abab5c2bd25bee61695d24cdb9104cd11d403bb2b360ad1417f71f3006cd54
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 3eb05c140311c7466f6cc27fe2a63e033f4464123449d9c9bc20b4b3ae9dd207b03bfe3acfd00cbf6c04bfa4c55456910fb2cee80056e04b5ec5aff70a4b73c1
         | 
| 7 | 
            +
              data.tar.gz: fe56e5c4b5fa1608bd05a01f2b05f2051c8d7491170dc0c06790279a134a5d2b19465feca5104420d7dc43dcf2816e982d7aafbaa0aa65bfeadcca0ad476948d
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |
| 6 6 |  | 
| 7 7 | 
             
            ## Unreleased
         | 
| 8 8 |  | 
| 9 | 
            +
            ## 1.1.1 - 2023-06-19
         | 
| 10 | 
            +
            ### Changed
         | 
| 11 | 
            +
            - Remove active_job_parent_klass config introduced in 1.1.0. There isn't a usecase for it yet,
         | 
| 12 | 
            +
              and it was causing loading issues.
         | 
| 13 | 
            +
             | 
| 9 14 | 
             
            ## 1.1.0 - 2023-06-11
         | 
| 10 15 | 
             
            ### Changed
         | 
| 11 16 | 
             
            - Reactors now use ActiveJob instead of Sidekiq directly. This allows for more
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                eventsimple (1.1. | 
| 4 | 
            +
                eventsimple (1.1.1)
         | 
| 5 5 | 
             
                  dry-struct (~> 1.6)
         | 
| 6 6 | 
             
                  dry-types (~> 1.7)
         | 
| 7 7 | 
             
                  pg (~> 1.4)
         | 
| @@ -159,7 +159,7 @@ GEM | |
| 159 159 | 
             
                mini_mime (1.1.2)
         | 
| 160 160 | 
             
                minitest (5.18.0)
         | 
| 161 161 | 
             
                nenv (0.3.0)
         | 
| 162 | 
            -
                net-imap (0.3. | 
| 162 | 
            +
                net-imap (0.3.6)
         | 
| 163 163 | 
             
                  date
         | 
| 164 164 | 
             
                  net-protocol
         | 
| 165 165 | 
             
                net-pop (0.1.2)
         | 
| @@ -284,7 +284,7 @@ GEM | |
| 284 284 | 
             
                  rubocop (>= 0.53.0)
         | 
| 285 285 | 
             
                ruby-progressbar (1.13.0)
         | 
| 286 286 | 
             
                shellany (0.0.1)
         | 
| 287 | 
            -
                sidekiq (7.1. | 
| 287 | 
            +
                sidekiq (7.1.2)
         | 
| 288 288 | 
             
                  concurrent-ruby (< 2)
         | 
| 289 289 | 
             
                  connection_pool (>= 2.3.0)
         | 
| 290 290 | 
             
                  rack (>= 2.2.4)
         | 
    
        data/README.md
    CHANGED
    
    | @@ -74,11 +74,6 @@ Setup an initializer in `config/initializers/eventsimple.rb`: | |
| 74 74 | 
             
                # Defaults to `Eventsimple::Metadata`
         | 
| 75 75 | 
             
                config.metadata_klass = 'Eventsimple::Metadata'
         | 
| 76 76 |  | 
| 77 | 
            -
                # Optional: Reactors inherit from an ActiveJob base class.
         | 
| 78 | 
            -
                # Set the parent class for reactors.
         | 
| 79 | 
            -
                # Defaults to ActiveJob::Base.
         | 
| 80 | 
            -
                config.active_job_parent_klass = 'ApplicationJob'
         | 
| 81 | 
            -
             | 
| 82 77 | 
             
                # Optional: When using an ActiveJob adapter that writes to a different data store like redis,
         | 
| 83 78 | 
             
                # it is possible that the reactor is executed before the transaction persisting the event is committed. This can result in noisy errors when using processors like Sidekiq.
         | 
| 84 79 | 
             
                # Enable this option to retry the reactor inline if the event is not found.
         | 
| @@ -4,7 +4,6 @@ module Eventsimple | |
| 4 4 | 
             
              class Configuration
         | 
| 5 5 | 
             
                attr_reader :max_concurrency_retries
         | 
| 6 6 | 
             
                attr_writer :metadata_klass
         | 
| 7 | 
            -
                attr_writer :active_job_parent_klass
         | 
| 8 7 | 
             
                attr_accessor :retry_reactor_on_record_not_found
         | 
| 9 8 |  | 
| 10 9 | 
             
                attr_accessor :ui_visible_models
         | 
| @@ -13,7 +12,6 @@ module Eventsimple | |
| 13 12 | 
             
                  @dispatchers = []
         | 
| 14 13 | 
             
                  @max_concurrency_retries = 2
         | 
| 15 14 | 
             
                  @metadata_klass = 'Eventsimple::Metadata'
         | 
| 16 | 
            -
                  @active_job_parent_klass = 'ActiveJob::Base'
         | 
| 17 15 | 
             
                  @retry_reactor_on_record_not_found = false
         | 
| 18 16 |  | 
| 19 17 | 
             
                  @ui_visible_models = [] # internal use only
         | 
| @@ -34,7 +32,6 @@ module Eventsimple | |
| 34 32 | 
             
                end
         | 
| 35 33 |  | 
| 36 34 | 
             
                # rubocop:disable Naming/MemoizedInstanceVariableName
         | 
| 37 | 
            -
             | 
| 38 35 | 
             
                def dispatchers
         | 
| 39 36 | 
             
                  @dispatchers_klass_consts ||= @dispatchers.map(&:constantize)
         | 
| 40 37 | 
             
                end
         | 
| @@ -42,10 +39,6 @@ module Eventsimple | |
| 42 39 | 
             
                def metadata_klass
         | 
| 43 40 | 
             
                  @metadata_klass_const ||= @metadata_klass.constantize
         | 
| 44 41 | 
             
                end
         | 
| 45 | 
            -
             | 
| 46 | 
            -
                def active_job_parent_klass
         | 
| 47 | 
            -
                  @active_job_parent_klass_const ||= @active_job_parent_klass.constantize
         | 
| 48 | 
            -
                end
         | 
| 49 42 | 
             
                # rubocop:enable Naming/MemoizedInstanceVariableName
         | 
| 50 43 | 
             
              end
         | 
| 51 44 | 
             
            end
         | 
    
        data/lib/eventsimple/reactor.rb
    CHANGED
    
    
    
        data/lib/eventsimple/version.rb
    CHANGED
    
    
    
        data/lib/eventsimple.rb
    CHANGED
    
    | @@ -20,6 +20,7 @@ require 'eventsimple/metadata_type' | |
| 20 20 | 
             
            require 'eventsimple/metadata'
         | 
| 21 21 | 
             
            require 'eventsimple/dispatcher'
         | 
| 22 22 | 
             
            require 'eventsimple/event_dispatcher'
         | 
| 23 | 
            +
            require 'eventsimple/reactor'
         | 
| 23 24 | 
             
            require 'eventsimple/reactor_worker'
         | 
| 24 25 | 
             
            require 'eventsimple/invalid_transition'
         | 
| 25 26 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: eventsimple
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.1. | 
| 4 | 
            +
              version: 1.1.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Zulfiqar Ali
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2023-06- | 
| 11 | 
            +
            date: 2023-06-19 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: dry-struct
         |