rom-changeset 5.2.1 → 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: b5a4ea75bcd9a214497927450d214530d5a3463e2079ae352ec24438f9c5c8f1
4
- data.tar.gz: 02d7fdb3a5d700fd800d8170dfa3dee15a898392131f3a4ffff911c7a0e220b0
3
+ metadata.gz: 76b476d3e624f7dd04b162bb9fc8f49d03a4506d0942466ab1d34eb0c53a12f8
4
+ data.tar.gz: e51e6adace674ca035be7fda252186ee4142b0f776d9fb3ca14e02b00eda3a72
5
5
  SHA512:
6
- metadata.gz: 6b913372527a053b698935fc60d17b3e3093c49e2a152f437d699dfbfce78770411f89d968f7e47bc3cba771f313aa3a458a4c9e6d1706278cd3de9e6cef092b
7
- data.tar.gz: 82701e7bb81506e39207d999b986d544173b9251de886a1c0f4d0d6ba2e6b903ff97bf9d621eb149b296c7d04a5964b39ad1a363993630e1a809a0c54d64c6e8
6
+ metadata.gz: c5fde908143d378437792a077c32f5eb933861b67af41a488ea1f8d03ed00807a7fe5a6dc299e8c0dc0f0eb2c58ae09c00ecfeef54647b851991a1834a988fe8
7
+ data.tar.gz: 6e7a54c8c28b09021dee47986375fce1f83839ae5788101e385e1c593b0956aaac0b4ce480e5dc6cc198d8cabde133009395ee963adc735a8c33cb6de7910be8
@@ -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.2.3'
6
6
  end
7
7
  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.2.1
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-01-11 00:00:00.000000000 Z
11
+ date: 2020-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-core
@@ -130,7 +130,7 @@ 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
133
+ rubygems_version: 3.1.2
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Changeset abstraction for rom-rb