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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0ee2a5b3a813d720c09eb7899ed15d8f04bc0c67
4
- data.tar.gz: 604b3c40a6e7bd2c52c33638ffb285a0bcfe2a23
2
+ SHA256:
3
+ metadata.gz: 720d3daa84f7b4c40f555ef52f2e9912e1d8170a120be554069679beab0d1954
4
+ data.tar.gz: 5b9a4631de297e8fa20e615d423c827075f0664b706f763334b65459bd8618a4
5
5
  SHA512:
6
- metadata.gz: aae5604ad09ce8ca3baeb318849477daee6fce59052f3a315640c511b7c25618d8c8163f12476f1da26dbde500eb1c3aff5ceb8a2e1e2dfaf11a15ecc7d83c67
7
- data.tar.gz: 8f1b14bd5fcf4f12d45f221e70d9b8d6af764e89729cc7ba3f3c8d9baf367840568657b594c85cf3c3c1dbd46849fd82029035323f91a697b1e41216c2924689
6
+ metadata.gz: 8d26e5b8cb610502f323eb8f7084c17c43a5879112b978a6faaae193d96d5534ff2254a6cac6af26988f44cc2be163130fc242667c0d591e8073fc5b6b3fb5cb
7
+ data.tar.gz: 945860da782918d04fbb6d38c61e4ae447aa1c3e448e2ec422617c3c52a5bc2ce904e14d3c8aaec43c1ab325a3fcf8c4880329d63303e679eeda66acfbbd4e47
@@ -1,42 +1,60 @@
1
+ ## 0.6.3
2
+
3
+ - Support diff-lcs v1.4+.
4
+
1
5
  ## 0.6.2
2
- Support tr.added and tr.deleted
6
+
7
+ - Support tr.added and tr.deleted.
3
8
 
4
9
  ## 0.6.1
5
- - Fix patch order bug by making sort stable
10
+
11
+ - Fix patch order bug by making sort stable.
6
12
 
7
13
  ## 0.6.0
8
- - Add .del class to all del elements
14
+
15
+ - Add .del class to all del elements.
9
16
 
10
17
  ## 0.5.5
11
- - Preserve classes on adding new class (e.g. .added)
18
+
19
+ - Preserve classes on adding new class (e.g. .added).
12
20
 
13
21
  ## 0.5.4
14
- - Fix bug on patch operations order
22
+
23
+ - Fix bug on patch operations order.
15
24
 
16
25
  ## 0.5.3
17
- - Fix bug on comparing nodes
26
+
27
+ - Fix bug on comparing nodes.
18
28
 
19
29
  ## 0.5.2
20
- - Fix bug on comparing attributes and text nodes
30
+
31
+ - Fix bug on comparing attributes and text nodes.
21
32
 
22
33
  ## 0.5.1
23
- - Fix bug on text-diff operation
34
+
35
+ - Fix bug on text-diff operation.
24
36
 
25
37
  ## 0.5.0
26
- - Wrap changed nodes by div.changed
38
+
39
+ - Wrap changed nodes by div.changed.
27
40
 
28
41
  ## 0.4.0
29
- - Chanage .changed specs
30
- - Fix bugs on text diff
42
+
43
+ - Chanage .changed specs.
44
+ - Fix bugs on text diff.
31
45
 
32
46
  ## 0.3.0
33
- - Support partial text diff
47
+
48
+ - Support partial text diff.
34
49
 
35
50
  ## 0.2.1
36
- - Support li.added and li.removed
51
+
52
+ - Support li.added and li.removed.
37
53
 
38
54
  ## 0.2.0
39
- - Support div.changed and li.changed
55
+
56
+ - Support div.changed and li.changed.
40
57
 
41
58
  ## 0.1.0
42
- - 1st Release
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>)
@@ -1,3 +1,3 @@
1
1
  module Markdiff
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
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.2
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: 2016-02-29 00:00:00.000000000 Z
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
- rubyforge_project:
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: