deep_unrest 0.1.59 → 0.1.60
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/deep_unrest/version.rb +1 -1
- data/lib/deep_unrest/write.rb +3 -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: 7fae32e1c2db7e50d7aa50a2c3f85c2b86ea1da79a188668cb3f3d0135ad78aa
|
|
4
|
+
data.tar.gz: ce02cc31b810beb360898890ab54b50669f659a4acbe4f2504a9b7bf71d5c410
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2bf2d43716bf59853837aa86b971da1daeabea5490e10ccb5ba92866400904eb15734c9c7caab85bebc42a0307a70e8efea8839ae5716d66fcdbe9cd7ec4c89
|
|
7
|
+
data.tar.gz: 20159226bf7c3cfb216d18055880c872bcfb4702bab393248accaeeb2aad816654e41bf24960cc38c7d43cfd89eac9b9c0f0c20355ac839c580558cc10618992
|
data/lib/deep_unrest/version.rb
CHANGED
data/lib/deep_unrest/write.rb
CHANGED
|
@@ -164,7 +164,9 @@ module DeepUnrest
|
|
|
164
164
|
changed.select { |c| c[:query_uuid] }
|
|
165
165
|
.each_with_object({}) do |c, memo|
|
|
166
166
|
mapping = mappings.find { |m| m.dig(:query, :uuid) == c[:query_uuid] }
|
|
167
|
-
next unless mapping
|
|
167
|
+
next unless mapping
|
|
168
|
+
next if mapping[:addr].blank?
|
|
169
|
+
|
|
168
170
|
mapping[:query][:fields] = c[:attributes].keys
|
|
169
171
|
mapping[:record] = c[:klass].new(id: c[:id])
|
|
170
172
|
mapping[:record].assign_attributes(c[:attributes])
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deep_unrest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.60
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lynn Hurley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-01-
|
|
11
|
+
date: 2020-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|