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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5a7bf567015446448d276991edbaf5ae5639c46fb718d3f3da95725fde8e983
4
- data.tar.gz: bb061e063c19f537cf73704bdd3ddc2f2e4f84c3f9a9b84fc7b6a2cdd41ec41b
3
+ metadata.gz: 126822058c0a3d4105b8c908ef9b1e5199bd40e9d5d81020a98db4e9ae8e583b
4
+ data.tar.gz: b8c9a8ebfb4dd13e34d5f3c2145a65ebf87a778dfd7fa1d7e77b520bfe26857e
5
5
  SHA512:
6
- metadata.gz: f077e32a41107719d760835467b7ef8b8cfbd20b6dfa168e967d49a824f0be1822068f4b6742681f5f13fff974614a3deb74a3be1051d20359f5343668a8a74b
7
- data.tar.gz: 1c2714ba31834609ce49f11dc6cd603959f79685986901709c73685b88165f3a18ee0eb74e6be9c2af0144ac0c534aee32197b688d630012a58611c19a387b7e
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, @attributes)
150
+ yield key.object_path(self, **@attributes)
151
151
  end
152
152
  end
153
153
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Relaxo
22
22
  module Model
23
- VERSION = "0.17.0"
23
+ VERSION = "0.17.1"
24
24
  end
25
25
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2020-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaxo