relaxo-model 0.17.0 → 0.17.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/relaxo/model/document.rb +2 -2
- data/lib/relaxo/model/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: 126822058c0a3d4105b8c908ef9b1e5199bd40e9d5d81020a98db4e9ae8e583b
|
|
4
|
+
data.tar.gz: b8c9a8ebfb4dd13e34d5f3c2145a65ebf87a778dfd7fa1d7e77b520bfe26857e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6be3ce5ffa697b9bae243d57df54ad0054114ff4b30e3f450f81603010bc7590992c8651a49d8746d889b30cc40849866d00db43217d8bf2f047b81ce89a912
|
|
7
|
+
data.tar.gz: 02af703b22d3da40fae898725c47aad4ed1a1778ab49afb413797fe9679bcf797a6ffd0476a5589fc953d1d28c875f8b964247f3bd469ce9d4fb9b55f70d89ea
|
|
@@ -79,7 +79,7 @@ module Relaxo
|
|
|
79
79
|
# Fetch a record or create a model object from a hash of attributes.
|
|
80
80
|
def fetch(dataset, path = nil, **attributes)
|
|
81
81
|
if path and object = dataset.read(path)
|
|
82
|
-
instance = self.new(dataset, object, attributes)
|
|
82
|
+
instance = self.new(dataset, object, **attributes)
|
|
83
83
|
|
|
84
84
|
instance.load_object
|
|
85
85
|
|
|
@@ -147,7 +147,7 @@ module Relaxo
|
|
|
147
147
|
|
|
148
148
|
self.class.keys.each do |name, key|
|
|
149
149
|
# @attributes is not modified until we call self.dump (which flattens @attributes into @changes). When we generate paths, we want to ensure these are done based on the non-mutable state of the object.
|
|
150
|
-
yield key.object_path(self,
|
|
150
|
+
yield key.object_path(self, **@attributes)
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|
data/lib/relaxo/model/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaxo-model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.17.
|
|
4
|
+
version: 0.17.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: relaxo
|