kennel 2.6.0 → 2.6.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/lib/kennel/syncer.rb +7 -1
- data/lib/kennel/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: bb95ceae817bc98d083407c5a6b19483e12e1932a98209c13fd097cd9bcf7ebd
         | 
| 4 | 
            +
              data.tar.gz: 1a0c92f146ab14ffe80bccc86cb12f1561e8d874faefbe7f48f550a4c108cb6e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 2b43e7160e79a8174ae60d929d998322cfda2730116500ce8e6ddbfd4114c2217b0d75c5f326ffafbc94c5976155810a858f6d43423430223fa9325207373a75
         | 
| 7 | 
            +
              data.tar.gz: b9c53626a278cea303b617ec12f792f89b5a5ca858a20dd75f244367a38065ed436e5309184b04e8c5ba5f7060a5c5dab472837b2729c2313ab6cb730d6f0bef
         | 
    
        data/lib/kennel/syncer.rb
    CHANGED
    
    | @@ -127,6 +127,7 @@ module Kennel | |
| 127 127 | 
             
                # update it instead to avoid old urls from becoming invalid
         | 
| 128 128 | 
             
                # - careful with unmatched_actual being huge since it has all api resources
         | 
| 129 129 | 
             
                # - don't do it when a monitor type is changing since that would block the update
         | 
| 130 | 
            +
                # - don't do it when a dashboard layout_type is changing since that would block the update
         | 
| 130 131 | 
             
                # - when using a filter and updating the kennel_id of an existing item, old and new must be in the filter
         | 
| 131 132 | 
             
                def convert_replace_into_update!(matching, unmatched_actual, unmatched_expected)
         | 
| 132 133 | 
             
                  unmatched_expected.reject! do |e|
         | 
| @@ -135,10 +136,15 @@ module Kennel | |
| 135 136 | 
             
                      break [field, value]
         | 
| 136 137 | 
             
                    end
         | 
| 137 138 | 
             
                    raise unless e_field #  uncovered: should never happen ...
         | 
| 139 | 
            +
                    # TODO: ideally reuse invalid_update! logic and just put the fields somewhere
         | 
| 138 140 | 
             
                    e_monitor_type = e.as_json[:type]
         | 
| 141 | 
            +
                    e_dashboard_layout_type = e.as_json[:layout_type]
         | 
| 139 142 |  | 
| 140 143 | 
             
                    actual = unmatched_actual.detect do |a|
         | 
| 141 | 
            -
                      a[:klass].api_resource == e.class.api_resource && | 
| 144 | 
            +
                      a[:klass].api_resource == e.class.api_resource &&
         | 
| 145 | 
            +
                        a[e_field] == e_value &&
         | 
| 146 | 
            +
                        a[:type] == e_monitor_type &&
         | 
| 147 | 
            +
                        a[:layout_type] == e_dashboard_layout_type
         | 
| 142 148 | 
             
                    end
         | 
| 143 149 | 
             
                    next false unless actual # keep in unmatched
         | 
| 144 150 |  | 
    
        data/lib/kennel/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: kennel
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.6. | 
| 4 | 
            +
              version: 2.6.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Michael Grosser
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2025-10- | 
| 11 | 
            +
            date: 2025-10-30 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: diff-lcs
         |