deep_unrest 0.1.61 → 0.1.62

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 316ef6e7a55cc9c2672f5ffcc6f0e7a49520efb38ab6f36e64463f693ff049b2
4
- data.tar.gz: d6bf808f99a19822fbd413f594981d7e9b52936ef8373dfc8960eb052ea47acc
3
+ metadata.gz: 3cdd100ae786dce970917ecca2ea6941e024b238cd0622ede22a62d2c7c545fb
4
+ data.tar.gz: dad9d75980069a8e7ee8b063c0d82d5f60eade85f85f3cb3493e6a3522dfc259
5
5
  SHA512:
6
- metadata.gz: 47aa191f6fe498ad3e6ca40d9140f4299fa22900ee4750172dcf6f1d7ca5dff4cbcf28975ca30c7ca201401e47fcdef36d7a1de8e30147b15862cb2a103ea8c9
7
- data.tar.gz: 94843080564a1c72c72538e4b7bd61433300ffd5ca411b7724037fa16fcb38933e73cc25a63400fca7021f473823b01d984edfc837dd74f993e337acde32e3b4
6
+ metadata.gz: 7dcef71047487561e73d1c2ed5f5ec0e192c19f6f93fe0652bad2eb378c0b57e9e1875a5ae7e6ff3aef32e7bad4d106360e611c71154a988f37097dccbc43c2c
7
+ data.tar.gz: 44f35b6eccd266c5d163f1007b023537b6fa0a8f2efaab701169a512fa1a57a38ffaf50532ebddc5e637322670cf3ccf2bb8c97d8577708a29eb3d47d91d9dfd
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepUnrest
4
- VERSION = '0.1.61'
4
+ VERSION = '0.1.62'
5
5
  end
@@ -164,14 +164,13 @@ 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
168
- next if mapping[:addr].blank?
167
+ next if !mapping || mapping[:addr].blank?
169
168
 
170
169
  mapping[:query][:fields] = c[:attributes].keys
171
170
  mapping[:record] = c[:klass].new(id: c[:id])
172
171
  mapping[:record].assign_attributes(c[:attributes])
173
172
  result = DeepUnrest.serialize_result(ctx, mapping)
174
- DeepUnrest.set_attr(memo, mapping[:addr], result)
173
+ DeepUnrest.set_attr(memo, mapping[:addr].clone, result)
175
174
  end
176
175
  end
177
176
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_unrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley