rom-changeset 5.2.1 → 5.3.0

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: b5a4ea75bcd9a214497927450d214530d5a3463e2079ae352ec24438f9c5c8f1
4
- data.tar.gz: 02d7fdb3a5d700fd800d8170dfa3dee15a898392131f3a4ffff911c7a0e220b0
3
+ metadata.gz: c7e1da660a6ec7a0f8668013df049f51b632c3611f6990948a393a282f8b0970
4
+ data.tar.gz: 8f4ff7902b50320eb1cbfe1bf4a8095ae6289ebb1fe62a3678112a60e3838514
5
5
  SHA512:
6
- metadata.gz: 6b913372527a053b698935fc60d17b3e3093c49e2a152f437d699dfbfce78770411f89d968f7e47bc3cba771f313aa3a458a4c9e6d1706278cd3de9e6cef092b
7
- data.tar.gz: 82701e7bb81506e39207d999b986d544173b9251de886a1c0f4d0d6ba2e6b903ff97bf9d621eb149b296c7d04a5964b39ad1a363993630e1a809a0c54d64c6e8
6
+ metadata.gz: e8c8114f23b1bb24f04c963be84bca79fbcd686b37f462b3174d3e1c4f6bae6ea8a5d807ae6599e5dbbe6d9d40092cffc11d86f402af6fced6d4d21b0d80a496
7
+ data.tar.gz: 8bb8ef006df6205797fb436dcef8d5580fb3e9f78478bbfff189e98aaf71c9742541ecba7211152d387ae0627bac2be014107cdabef1b139ea1ea4e171dbd93e
@@ -43,7 +43,10 @@ module ROM
43
43
 
44
44
  def bind(context)
45
45
  if processor.is_a?(Proc)
46
- new(self.class[-> *args { context.instance_exec(*args, &processor) }])
46
+ bound_processor = self[-> *args { context.instance_exec(*args, &processor) }]
47
+ bound_diff_processor = self[-> *args { context.instance_exec(*args, &diff_processor) }]
48
+
49
+ new(bound_processor, diff_processor: bound_diff_processor)
47
50
  else
48
51
  self
49
52
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  class Changeset
5
- VERSION = '5.2.1'
5
+ VERSION = '5.3.0'
6
6
  end
7
7
  end
data/lib/rom/changeset.rb CHANGED
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'dry/core/class_attributes'
4
- require 'dry/core/cache'
5
-
3
+ require 'dry/core'
6
4
  require 'rom/constants'
7
5
  require 'rom/initializer'
8
6
 
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.2.1
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-11 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.4'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rom-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.2'
33
+ version: '5.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.2'
40
+ version: '5.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: transproc
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +115,7 @@ metadata:
115
115
  documentation_uri: https://api.rom-rb.org/rom/
116
116
  mailing_list_uri: https://discourse.rom-rb.org/
117
117
  bug_tracker_uri: https://github.com/rom-rb/rom/issues
118
- post_install_message:
118
+ post_install_message:
119
119
  rdoc_options: []
120
120
  require_paths:
121
121
  - lib
@@ -130,8 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  requirements: []
133
- rubygems_version: 3.1.0.pre3
134
- signing_key:
133
+ rubygems_version: 3.3.7
134
+ signing_key:
135
135
  specification_version: 4
136
136
  summary: Changeset abstraction for rom-rb
137
137
  test_files: []