kennel 1.163.2 → 1.163.3
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 +2 -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: 1719d52ba321517c50fe0d2b3ffff1d98d66789cfe0cb86aa9c70c8524ec63de
|
4
|
+
data.tar.gz: 58ee09fd3667cecb7fc2c6c382269362b72ac03d3f3e04ea102edfb76478f973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7dd527ce56869145e5cb0ae4f506bfef321bbff8ecaeb9c31f9dc1851c3ea422e154e71a457c438b99511c937beacf12d84992e7a95d5d6c738c761cfda6ce2
|
7
|
+
data.tar.gz: d1eeddcc2147d2aade9aaf720e383d791255e892798509228d3c2e4c9ef31d85d8693607a7ac8e717c16d91efb228e373d73e4cc4960549f771e6cc3841f4a25
|
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
|
+
# - when using a filter and updating the kennel_id of an existing item, old and new must be in the filter
|
130
131
|
def convert_replace_into_update!(matching, unmatched_actual, unmatched_expected)
|
131
132
|
unmatched_expected.reject! do |e|
|
132
133
|
e_field, e_value = Kennel::Models::Record::TITLE_FIELDS.detect do |field|
|
@@ -137,7 +138,7 @@ module Kennel
|
|
137
138
|
e_monitor_type = e.as_json[:type]
|
138
139
|
|
139
140
|
actual = unmatched_actual.detect do |a|
|
140
|
-
a[:klass] == e.class && a[e_field] == e_value && a[:type] == e_monitor_type
|
141
|
+
a[:klass].api_resource == e.class.api_resource && a[e_field] == e_value && a[:type] == e_monitor_type
|
141
142
|
end
|
142
143
|
next false unless actual # keep in unmatched
|
143
144
|
|
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: 1.163.
|
4
|
+
version: 1.163.3
|
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-
|
11
|
+
date: 2025-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|