foobara 0.0.100 → 0.0.101

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: 0ed570dbfd45a01b8f1a00ef04c3cb1f74e5cf1e001f8beba8bbbd9491673b2b
4
- data.tar.gz: 364e9f9cc9a994b2cfa03dffdfa18e1a87475bf82944fc9b05701dc39d798824
3
+ metadata.gz: 72936127f925aeecd5c813edff203628a88e65408a1fb4f9d0b68657d664fd1b
4
+ data.tar.gz: aec6b40247986426ff94202cbc00057b37476e5e95652f8ac2d58c99647b50bf
5
5
  SHA512:
6
- metadata.gz: a915cdc81bd8fdb5aa3715a70d5df92431da2378d471187b4307c33182cae8c4f9a03c0b8893400172ed15e9241cc266d4ce8eaedd368ff9ad5d5860d19a591d
7
- data.tar.gz: 360b77bb94ba75a954a18268ec557deaa3ea16153b47ba626375528542fd27829474922b6716ff09a1e0c369e41de2681e0bf9486184c83fbf69eb9248318c11
6
+ metadata.gz: adba03dad2ca90ca4202cf6e67e67c335748958f856d4fa75ef2bc3545b5e31a0acf5ef84002312252fd7cc3e113daf1fb5ec54308843902c1418a39ad4ea33b
7
+ data.tar.gz: 0bee2126b8262f17b673c0f6b0158cdd37b80bb27ba4c42d9a09abf584a0aa900bfbc55dfd1e58cc261aa6c98898e7f4c2bef2a138f51a0f754fe85a9c8ca129
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.0.101] - 2025-04-12
2
+
3
+ - Add Entity#update
4
+
1
5
  # [0.0.100] - 2025-04-11
2
6
 
3
7
  - Restore missing Response#error
@@ -9,6 +9,12 @@ module Foobara
9
9
  self.class.update_aggregate(self, value, type)
10
10
  end
11
11
 
12
+ def update(new_attributes)
13
+ new_attributes.each_pair do |attribute_name, value|
14
+ write_attribute(attribute_name, value)
15
+ end
16
+ end
17
+
12
18
  module ClassMethods
13
19
  def update_aggregate(object, value, type = object.class.model_type)
14
20
  return value if object.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.100
4
+ version: 0.0.101
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi