rom-repository 5.4.0 → 5.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rom/repository/relation_reader.rb +11 -3
- data/lib/rom/repository/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: 4b67cec1060ad93b555d8d3a125387fd08aeb46f84b980c5a8cbbe4936460e91
|
4
|
+
data.tar.gz: 9e982d552b5dd86dc52545bb93a1d63679d8a8dc912373aadf09f8c2204e46bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9795736ac215d150f366dbba9cb01d11f7133df8bd34f820d5f5fb1bf97211b0f6904e4c501d373a936c107712ddcdf84b4231597e32cbebe642d4929e8e20b
|
7
|
+
data.tar.gz: 40f8e1f86278fbcda6ea4aeca50b9585435279567bc63bda99d8e3aaa7e4dc08a116a98e0be83fda903b267892a6a757bc815ece01f05a35f762530e267a651c
|
@@ -5,9 +5,11 @@ module ROM
|
|
5
5
|
# @api private
|
6
6
|
class RelationReader < ::Module
|
7
7
|
module InstanceMethods
|
8
|
+
extend ::Dry::Core::Deprecations[:'rom-repository']
|
9
|
+
|
8
10
|
private
|
9
11
|
|
10
|
-
# @api
|
12
|
+
# @api public
|
11
13
|
def prepare_relation(name, **)
|
12
14
|
container
|
13
15
|
.relations[name]
|
@@ -17,6 +19,12 @@ module ROM
|
|
17
19
|
)
|
18
20
|
end
|
19
21
|
|
22
|
+
# @api private
|
23
|
+
def set_relation(name) # rubocop:disable Naming/AccessorMethodName
|
24
|
+
prepare_relation(name)
|
25
|
+
end
|
26
|
+
deprecate :set_relation, :prepare_relation
|
27
|
+
|
20
28
|
# @api private
|
21
29
|
def relation_reader(cache, ...)
|
22
30
|
cache_key = relation_cache_key(...)
|
@@ -24,8 +32,8 @@ module ROM
|
|
24
32
|
end
|
25
33
|
|
26
34
|
# @api private
|
27
|
-
def relation_cache_key(name, **)
|
28
|
-
[name, auto_struct, struct_namespace]
|
35
|
+
def relation_cache_key(name, **kwargs)
|
36
|
+
[name, auto_struct, struct_namespace, kwargs]
|
29
37
|
end
|
30
38
|
end
|
31
39
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-repository
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.4.
|
4
|
+
version: 5.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: dry-core
|