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: fe72ef1c399ec181c1d2cb69465f1d78c67dc745b8aa60851e37be47652e0088
4
- data.tar.gz: f97f8b6785590f8cb8590d5dfb7fd7e5ff2cfb3124b27a7605b0374873158470
3
+ metadata.gz: 5113fef2e602597e83643a826267f5929db3eeeeaa7b01e93c595347dbe00a19
4
+ data.tar.gz: 958d4b0aa87c25e9c6d16f545fa76479ac87189c51734706b41760409faccb7f
5
5
  SHA512:
6
- metadata.gz: 6e6e76d028bbd85047f8abf49de103967745653ecfab99a7fd2614073868d5e59cb2e1cb1f8d30fb05705e5febed27fc292d074295aa1c00cd2cea7d6ed1d453
7
- data.tar.gz: ceab6394cc2feba66a26de9b845fa1ce1b6c16646c002888dd29a2bd25e95254861d516e6a0c186fe4ec120dc395031ae1c50a0c1bcfc98cd2fb286ea12d94dc
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  class Changeset
5
- VERSION = '5.0.0'
5
+ VERSION = '5.0.1'
6
6
  end
7
7
  end
@@ -6,6 +6,8 @@ require 'rom/changeset/create'
6
6
  require 'rom/changeset/update'
7
7
  require 'rom/changeset/delete'
8
8
 
9
+ require 'rom/changeset/extensions/relation'
10
+
9
11
  module ROM
10
12
  module Plugins
11
13
  module Relation
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.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-04-24 00:00:00.000000000 Z
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