markdiff 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/markdiff/differ.rb +1 -1
- data/lib/markdiff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 253f738465580e885b9b7724ed900dbf171c90e3
|
4
|
+
data.tar.gz: b9b941d9fc3b4169e309750ee952698f40d4c60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3cc15598bf1ff8a2915a05b78fb9e0fce660edd5557de5f023353c1a355c5fa353b40beeb6c0caf4b81918aeea560b302e02c8f6c371c7f5d4a6810e482c9d8
|
7
|
+
data.tar.gz: 662a972f514dce5543a8b1f2a0107a8e05411751bef87bc7bef63c63b97ac6831d65fd1620b57534192b6aa5c1e9716ce52c989566df69399f4ddb59cfab2757
|
data/CHANGELOG.md
CHANGED
data/lib/markdiff/differ.rb
CHANGED
@@ -14,7 +14,7 @@ module Markdiff
|
|
14
14
|
# @param [Nokogiri::XML::Node] node
|
15
15
|
# @return [Nokogiri::XML::Node] Converted node
|
16
16
|
def apply_patch(operations, node)
|
17
|
-
operations.sort_by
|
17
|
+
operations.sort_by {|operation| -operation.priority }.each do |operation|
|
18
18
|
case operation
|
19
19
|
when ::Markdiff::Operations::AddChildOperation
|
20
20
|
operation.target_node.add_child(operation.inserted_node)
|
data/lib/markdiff/version.rb
CHANGED