deimos-ruby 1.14.3 → 1.14.4
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 +4 -0
- data/lib/deimos/active_record_consume/batch_consumption.rb +4 -3
- data/lib/deimos/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 81c75c30750ad501a4d954681e7ea0c5ddef83c54e313a284d6abb0fde4c059a
         | 
| 4 | 
            +
              data.tar.gz: 223a1cf8f77db5d0cb901a00c1a4a1eeb7eb2c9a243e8fa07a5deb32bcac849e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 95605e56b2852137a1645fa3497903d138045cdcf51902c4cad29321e78d0626f2ceb439789db46b69cb08f305f580efa804c768c9a781c0f96e677e4cf2f340
         | 
| 7 | 
            +
              data.tar.gz: 4375d5c1bdde5b53598a1a11910615fda36d69e1dd92650becf710dd312425f07521fa70e0bebe4567e1d9931b5f70e71654f3dc0c74685141cb945193019672
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |
| 7 7 |  | 
| 8 8 | 
             
            ## UNRELEASED
         | 
| 9 9 |  | 
| 10 | 
            +
            # 1.14.4 - 2022-06-18
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            - Fix import in ActiveRecordConsumer on mysql
         | 
| 13 | 
            +
             | 
| 10 14 | 
             
            # 1.14.3 - 2022-06-17
         | 
| 11 15 |  | 
| 12 16 | 
             
            - Fix issue with ActiveRecordConsumer double-decoding keys in batch mode.
         | 
| @@ -100,12 +100,13 @@ module Deimos | |
| 100 100 |  | 
| 101 101 | 
             
                    options = if key_cols.empty?
         | 
| 102 102 | 
             
                                {} # Can't upsert with no key, just do regular insert
         | 
| 103 | 
            +
                              elsif ActiveRecord::Base.connection.adapter_name.downcase =~ /mysql/
         | 
| 104 | 
            +
                                {
         | 
| 105 | 
            +
                                  on_duplicate_key_update: :all
         | 
| 106 | 
            +
                                }
         | 
| 103 107 | 
             
                              else
         | 
| 104 108 | 
             
                                {
         | 
| 105 109 | 
             
                                  on_duplicate_key_update: {
         | 
| 106 | 
            -
                                    # conflict_target must explicitly list the columns for
         | 
| 107 | 
            -
                                    # Postgres and SQLite. Not required for MySQL, but this
         | 
| 108 | 
            -
                                    # ensures consistent behaviour.
         | 
| 109 110 | 
             
                                    conflict_target: key_cols,
         | 
| 110 111 | 
             
                                    columns: :all
         | 
| 111 112 | 
             
                                  }
         | 
    
        data/lib/deimos/version.rb
    CHANGED