markdiff 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +33 -15
- data/lib/markdiff/operations/text_diff_operation.rb +1 -1
- data/lib/markdiff/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 720d3daa84f7b4c40f555ef52f2e9912e1d8170a120be554069679beab0d1954
|
4
|
+
data.tar.gz: 5b9a4631de297e8fa20e615d423c827075f0664b706f763334b65459bd8618a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d26e5b8cb610502f323eb8f7084c17c43a5879112b978a6faaae193d96d5534ff2254a6cac6af26988f44cc2be163130fc242667c0d591e8073fc5b6b3fb5cb
|
7
|
+
data.tar.gz: 945860da782918d04fbb6d38c61e4ae447aa1c3e448e2ec422617c3c52a5bc2ce904e14d3c8aaec43c1ab325a3fcf8c4880329d63303e679eeda66acfbbd4e47
|
data/CHANGELOG.md
CHANGED
@@ -1,42 +1,60 @@
|
|
1
|
+
## 0.6.3
|
2
|
+
|
3
|
+
- Support diff-lcs v1.4+.
|
4
|
+
|
1
5
|
## 0.6.2
|
2
|
-
|
6
|
+
|
7
|
+
- Support tr.added and tr.deleted.
|
3
8
|
|
4
9
|
## 0.6.1
|
5
|
-
|
10
|
+
|
11
|
+
- Fix patch order bug by making sort stable.
|
6
12
|
|
7
13
|
## 0.6.0
|
8
|
-
|
14
|
+
|
15
|
+
- Add .del class to all del elements.
|
9
16
|
|
10
17
|
## 0.5.5
|
11
|
-
|
18
|
+
|
19
|
+
- Preserve classes on adding new class (e.g. .added).
|
12
20
|
|
13
21
|
## 0.5.4
|
14
|
-
|
22
|
+
|
23
|
+
- Fix bug on patch operations order.
|
15
24
|
|
16
25
|
## 0.5.3
|
17
|
-
|
26
|
+
|
27
|
+
- Fix bug on comparing nodes.
|
18
28
|
|
19
29
|
## 0.5.2
|
20
|
-
|
30
|
+
|
31
|
+
- Fix bug on comparing attributes and text nodes.
|
21
32
|
|
22
33
|
## 0.5.1
|
23
|
-
|
34
|
+
|
35
|
+
- Fix bug on text-diff operation.
|
24
36
|
|
25
37
|
## 0.5.0
|
26
|
-
|
38
|
+
|
39
|
+
- Wrap changed nodes by div.changed.
|
27
40
|
|
28
41
|
## 0.4.0
|
29
|
-
|
30
|
-
-
|
42
|
+
|
43
|
+
- Chanage .changed specs.
|
44
|
+
- Fix bugs on text diff.
|
31
45
|
|
32
46
|
## 0.3.0
|
33
|
-
|
47
|
+
|
48
|
+
- Support partial text diff.
|
34
49
|
|
35
50
|
## 0.2.1
|
36
|
-
|
51
|
+
|
52
|
+
- Support li.added and li.removed.
|
37
53
|
|
38
54
|
## 0.2.0
|
39
|
-
|
55
|
+
|
56
|
+
- Support div.changed and li.changed.
|
40
57
|
|
41
58
|
## 0.1.0
|
42
|
-
|
59
|
+
|
60
|
+
- 1st Release.
|
@@ -15,7 +15,7 @@ module Markdiff
|
|
15
15
|
def inserted_node
|
16
16
|
before_elements = target_node.to_s.split(" ")
|
17
17
|
after_elements = @after_node.to_s.split(" ")
|
18
|
-
::Diff::LCS.diff(before_elements, after_elements).flatten.each do |operation|
|
18
|
+
::Diff::LCS.diff(before_elements, after_elements).flatten(1).each do |operation|
|
19
19
|
type, position, element = *operation
|
20
20
|
if type == "-"
|
21
21
|
before_elements[position] = %(<del class="del">#{element}</del>)
|
data/lib/markdiff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdiff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -155,10 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
|
-
|
159
|
-
rubygems_version: 2.4.5
|
158
|
+
rubygems_version: 3.1.4
|
160
159
|
signing_key:
|
161
160
|
specification_version: 4
|
162
161
|
summary: Rendered Markdown differ.
|
163
162
|
test_files: []
|
164
|
-
has_rdoc:
|