valkyrie 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76da3433a725bab465d01c70034a9b528de21b67e4e2b2b4e81672749b9f8742
4
- data.tar.gz: 1379068c2f9c376ff085e1ac401a4b4f02ed86abbe5713f76b17e046d0fdfe56
3
+ metadata.gz: 5cff1ad0c4b431559feb21421651cf04b85e9b1a2d5ed905fa46d583666ea090
4
+ data.tar.gz: 5cbf0e244c1440cc7f9d6de661cb676851a6d7f2e03f26c9732c1c37d9aca7b0
5
5
  SHA512:
6
- metadata.gz: 31b910d396d7cb48ab10785818e01e5855de5f5001b2c5a3d7474663133b96a1c2d5ee222a911f169244c61daa23b16fe95cc215575756812da63d2cbae54989
7
- data.tar.gz: be55227d51bf77a2f13382cde82d5008e7e0fe5612353c096450b5204632f5f0291412abecd8853571b1183b18aad30fae246ff5b3e70439be46498c1850ef36
6
+ metadata.gz: 8633180f3f5f54d0d0ea4361e436c59e6412b9a2e374a3bda5aacddacfb64f0c06a6e70825d8953cbce9ad920653d02572ad980328ba25c006939e04838eedf6
7
+ data.tar.gz: 866dd8ba5d3e850ea7b37feb3b763f1f946a875caf49b4a027b0fba51049f1edaa5011a620914efb498442971dcede2bdf605f69b1e40c72ca9c7960e1ec6c65
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v3.0.3 2023-05-15
2
+
3
+ ## Changes since last release
4
+
5
+ * Avoid `delegate` in ChangeSet. ([dlpierce](https://github.com/dlpierce))
6
+
7
+ Additional thanks to the following for code review and issue reports leading to
8
+ this release:
9
+
10
+ * [ShanaLMoore](https://github.com/ShanaLMoore)
11
+ * [jeremyf](https://github.com/jeremyf)
12
+
1
13
  # v3.0.2 2023-04-10
2
14
 
3
15
  ## Changes since last release
@@ -77,9 +77,11 @@ module Valkyrie
77
77
  send(key) if respond_to?(key)
78
78
  end
79
79
 
80
- delegate :attributes, to: :resource
81
-
82
- delegate :internal_resource, :created_at, :updated_at, :model_name, :optimistic_locking_enabled?, to: :resource
80
+ [:internal_resource, :created_at, :updated_at, :model_name, :optimistic_locking_enabled?, :attributes].each do |method_name|
81
+ define_method(method_name) do |*args|
82
+ resource.public_send(method_name, *args)
83
+ end
84
+ end
83
85
 
84
86
  # Prepopulates all fields with defaults defined in the changeset. This is an
85
87
  # override of Reform::Form's method to allow for single-valued fields to
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Valkyrie
3
- VERSION = "3.0.2"
3
+ VERSION = "3.0.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valkyrie
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trey Pendragon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-10 00:00:00.000000000 Z
11
+ date: 2023-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct