rom-changeset 5.0.0 → 5.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5113fef2e602597e83643a826267f5929db3eeeeaa7b01e93c595347dbe00a19
|
4
|
+
data.tar.gz: 958d4b0aa87c25e9c6d16f545fa76479ac87189c51734706b41760409faccb7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb9c9c67ee856f5c1f0b54851b51e5bcb848a523ef02be41cd9c59aed2466cd9ca555794468a59c5a57ad649cb4f4c424ad81832a456f555d1273c008fb1c640
|
7
|
+
data.tar.gz: 549ce4306027970c32ed7f620d80c1fd94d71771f09543966dc1fc63ca4a25ac88dd53cfbd8477fd66118d6f01582f2d261dee5dc0952b9a89b9d4fd4d1165a7
|
@@ -93,6 +93,8 @@ module ROM
|
|
93
93
|
a >> other.command.with_association(assoc).curry(other)
|
94
94
|
when Associated
|
95
95
|
a >> other.command.with_association(assoc)
|
96
|
+
when Array
|
97
|
+
raise NotImplementedError, 'Changeset::Associate does not support arrays yet'
|
96
98
|
else
|
97
99
|
a.with_association(assoc, parent: other)
|
98
100
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'rom/relation/graph'
|
2
|
+
|
3
|
+
module ROM
|
4
|
+
class Changeset
|
5
|
+
# Namespace for changeset extensions
|
6
|
+
#
|
7
|
+
# @api public
|
8
|
+
module Extensions
|
9
|
+
# Changeset extenions for combined relations
|
10
|
+
#
|
11
|
+
# @api public
|
12
|
+
class Relation::Graph
|
13
|
+
# Build a changeset for a combined relation
|
14
|
+
#
|
15
|
+
# @raise NotImplementedError
|
16
|
+
#
|
17
|
+
# @api public
|
18
|
+
def changeset(*)
|
19
|
+
raise NotImplementedError, "Changeset doesn't support combined relations yet"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-changeset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-core
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- lib/rom/changeset/associated.rb
|
101
101
|
- lib/rom/changeset/create.rb
|
102
102
|
- lib/rom/changeset/delete.rb
|
103
|
+
- lib/rom/changeset/extensions/relation.rb
|
103
104
|
- lib/rom/changeset/pipe.rb
|
104
105
|
- lib/rom/changeset/stateful.rb
|
105
106
|
- lib/rom/changeset/update.rb
|