rom-changeset 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rom/changeset/pipe.rb +1 -1
- data/lib/rom/changeset/stateful.rb +1 -1
- data/lib/rom/changeset/update.rb +2 -2
- data/lib/rom/changeset/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc29106959ec22e9a963fbeb69cd135b28e86009
|
4
|
+
data.tar.gz: 708f934f1a1d0286cee170f04742d9147ce81684
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fcb5b5fbadf35d0784d81fd7994ca1a43affb0e409ea964e76e04e4f9add1b51c6e00b65c280345db30445712bad0da9a9ff3313a5e43cfff0b004e45c7efdb
|
7
|
+
data.tar.gz: 72bdabc21205c7cfe5fbb966869a6b51c94cefb7387e18170997b9e650e8179b1ece8a603a139c144227f936b7aea573feaaf82f1806947290ba05dc608a5e92
|
data/lib/rom/changeset/pipe.rb
CHANGED
@@ -29,8 +29,8 @@ module ROM
|
|
29
29
|
extend Initializer
|
30
30
|
|
31
31
|
param :processor, default: -> { self.class.transproc }
|
32
|
-
option :diff_processor, optional: true
|
33
32
|
option :use_for_diff, optional: true, default: -> { true }
|
33
|
+
option :diff_processor, default: -> { use_for_diff ? processor : nil }
|
34
34
|
|
35
35
|
def self.[](name)
|
36
36
|
container[name]
|
data/lib/rom/changeset/update.rb
CHANGED
@@ -68,8 +68,8 @@ module ROM
|
|
68
68
|
data_tuple = data.to_a
|
69
69
|
data_keys = data.keys & source.keys
|
70
70
|
|
71
|
-
new_tuple = data_tuple.to_a.select { |
|
72
|
-
ori_tuple = source.to_a.select { |
|
71
|
+
new_tuple = data_tuple.to_a.select { |k, _| data_keys.include?(k) }
|
72
|
+
ori_tuple = source.to_a.select { |k, _| data_keys.include?(k) }
|
73
73
|
|
74
74
|
Hash[new_tuple - (new_tuple & ori_tuple)]
|
75
75
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-core
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 4.0.0.
|
39
|
+
version: 4.0.0.rc
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 4.0.0.
|
46
|
+
version: 4.0.0.rc
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: transproc
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|