rom-core 5.2.2 → 5.2.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: 8a2704b945f45e05994251b93cbb25a6e2ebbb2a916183738499ddd504904570
4
- data.tar.gz: aeaab9bc695a238c81d173d90c1bd7c4e417e11eff2f2b270fb7fe3c2a0d3262
3
+ metadata.gz: 5abaa4216d876136564dd369669c39c3829f738592bd88f098a0bde2e3cf8968
4
+ data.tar.gz: 6b16551450d02ccc43264f4a6247568383e1a465024716496bc8136d6ee52f27
5
5
  SHA512:
6
- metadata.gz: 4a94bdb458f6df36579b26051f75d5466cb0191eebc56508319147b9e78fdca78032a4a5d1413e5cb9a81946fa3251b38ff02c0145f4b2e4810e7458f8ef6328
7
- data.tar.gz: 3361f814472a507b1bb3642b636084bf94c810bed9d717130cbde95113fbcb68bd91dd546767a1feb5457f32f3efd94473c7639b4c993646edd186f0e71e6bf1
6
+ metadata.gz: 13f59b53ed817a23ab51c8f820be3db908dc583ad658de17db43c8a5c4cd5d4bf951d4dc9af44b299d66a1f049add1ad47b8c93495d45b53ecd629647fe513a2
7
+ data.tar.gz: a93f769a99892969d51782742800758c9037208d0369ffe3025f1d187a7a14815daaee6d39d36d5ca52a20d4c8f79566583d4b308b101338c5602dcf31ee3a3e
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module Core
5
- VERSION = '5.2.2'
5
+ VERSION = '5.2.3'
6
6
  end
7
7
  end
@@ -22,18 +22,18 @@ module ROM
22
22
  #
23
23
  # @api public
24
24
  def build(relation, **options)
25
- if relation.schema?
26
- input = options.fetch(:input, self.input)
25
+ if relation.schema? && !options.key?(:input)
27
26
  relation_input = relation.input_schema
27
+ command_input = input
28
28
 
29
- input_handler =
30
- if input.equal?(ROM::Command.input)
29
+ composed_input =
30
+ if command_input.equal?(ROM::Command.input)
31
31
  relation_input
32
32
  else
33
- -> tuple { relation_input[input[tuple]] }
33
+ -> tuple { relation_input[command_input[tuple]] }
34
34
  end
35
35
 
36
- super(relation, **options, input: input_handler)
36
+ super(relation, **options, input: composed_input)
37
37
  else
38
38
  super
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.2
4
+ version: 5.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby