rom-repository 5.4.1 → 5.4.3

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: 4b67cec1060ad93b555d8d3a125387fd08aeb46f84b980c5a8cbbe4936460e91
4
- data.tar.gz: 9e982d552b5dd86dc52545bb93a1d63679d8a8dc912373aadf09f8c2204e46bd
3
+ metadata.gz: 7231cd2eb83234138dd01cf8117a46ea2c4b9d17a1625feea18fe9beb5076c17
4
+ data.tar.gz: 2c35476aa775e0806b860e39c9a63d9dc5e4e56309a63b8110191e89d8061123
5
5
  SHA512:
6
- metadata.gz: b9795736ac215d150f366dbba9cb01d11f7133df8bd34f820d5f5fb1bf97211b0f6904e4c501d373a936c107712ddcdf84b4231597e32cbebe642d4929e8e20b
7
- data.tar.gz: 40f8e1f86278fbcda6ea4aeca50b9585435279567bc63bda99d8e3aaa7e4dc08a116a98e0be83fda903b267892a6a757bc815ece01f05a35f762530e267a651c
6
+ metadata.gz: 292c0c24aeb1d62783eed662f036965549d1734d6bc38fdc161ca19b39016b93cedb46ac3386d4a3bf99b1538514e97c6c5b36bfc58d827836e6a235b0db0c2b
7
+ data.tar.gz: 81d5ea8a015ac20bbb760787426f212a8a59c0d6d586573ef43d298af173740988cab0b167eeb2c3506f2dec1a228175051b717540379c31aa3f13763a7ac396
@@ -59,7 +59,7 @@ module ROM
59
59
  def new(container = nil, root: Undefined, **options)
60
60
  container ||= options.fetch(:container)
61
61
 
62
- unless self < relation_reader
62
+ unless relation_reader.added_to?(self)
63
63
  include relation_reader.new(
64
64
  relations: container.relations.elements.keys,
65
65
  cache: container.cache,
@@ -4,6 +4,10 @@ module ROM
4
4
  class Repository
5
5
  # @api private
6
6
  class RelationReader < ::Module
7
+ def self.added_to?(klass)
8
+ klass < InstanceMethods
9
+ end
10
+
7
11
  module InstanceMethods
8
12
  extend ::Dry::Core::Deprecations[:'rom-repository']
9
13
 
@@ -20,9 +24,6 @@ module ROM
20
24
  end
21
25
 
22
26
  # @api private
23
- def set_relation(name) # rubocop:disable Naming/AccessorMethodName
24
- prepare_relation(name)
25
- end
26
27
  deprecate :set_relation, :prepare_relation
27
28
 
28
29
  # @api private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  class Repository
5
- VERSION = '5.4.1'
5
+ VERSION = '5.4.3'
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.1
4
+ version: 5.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-09 00:00:00.000000000 Z
10
+ date: 2025-11-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: dry-core