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 +4 -4
- data/lib/rom/core/version.rb +1 -1
- data/lib/rom/plugins/command/schema.rb +6 -6
- 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: 5abaa4216d876136564dd369669c39c3829f738592bd88f098a0bde2e3cf8968
|
4
|
+
data.tar.gz: 6b16551450d02ccc43264f4a6247568383e1a465024716496bc8136d6ee52f27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13f59b53ed817a23ab51c8f820be3db908dc583ad658de17db43c8a5c4cd5d4bf951d4dc9af44b299d66a1f049add1ad47b8c93495d45b53ecd629647fe513a2
|
7
|
+
data.tar.gz: a93f769a99892969d51782742800758c9037208d0369ffe3025f1d187a7a14815daaee6d39d36d5ca52a20d4c8f79566583d4b308b101338c5602dcf31ee3a3e
|
data/lib/rom/core/version.rb
CHANGED
@@ -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
|
-
|
30
|
-
if
|
29
|
+
composed_input =
|
30
|
+
if command_input.equal?(ROM::Command.input)
|
31
31
|
relation_input
|
32
32
|
else
|
33
|
-
-> tuple { relation_input[
|
33
|
+
-> tuple { relation_input[command_input[tuple]] }
|
34
34
|
end
|
35
35
|
|
36
|
-
super(relation, **options, input:
|
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.
|
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-
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|