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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1945e400f70ab8fba8b203ab2a5894ff0c3af70dbe55a00bb20ccd33ed0663b8
4
- data.tar.gz: 48e96bca0f06806b8cc03a390c3c11ecae6f1b4b05c3ae0c96e0b380c25e27d6
3
+ metadata.gz: 4b67cec1060ad93b555d8d3a125387fd08aeb46f84b980c5a8cbbe4936460e91
4
+ data.tar.gz: 9e982d552b5dd86dc52545bb93a1d63679d8a8dc912373aadf09f8c2204e46bd
5
5
  SHA512:
6
- metadata.gz: 42202fc4ee9f6680131f95e990eb8785ad23fd82aa67cedd1ce79249cd8bdb2318b081b31f6efc2f632f18a29d6dd17de7739f848906b997e46457416f3eacd8
7
- data.tar.gz: 1ce9298b198da42a05070e5efdc6f426f7fdb0a9107428af9e3031c19296728df9ddb5bf369fb1fbec836740c4d14f6a827c48fa3cae9a83fc33de63be63a174
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 private
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  class Repository
5
- VERSION = '5.4.0'
5
+ VERSION = '5.4.1'
6
6
  end
7
7
  end
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.0
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-08 00:00:00.000000000 Z
10
+ date: 2025-01-09 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: dry-core