diff-lcs 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +3 -4
- data/.hoerc +1 -1
- data/Gemfile +9 -8
- data/History.rdoc +11 -0
- data/Manifest.txt +0 -1
- data/README.rdoc +8 -10
- data/Rakefile +2 -2
- data/lib/diff/lcs.rb +2 -2
- data/lib/diff/lcs/internals.rb +1 -0
- data/spec/diff_spec.rb +6 -0
- metadata +16 -21
- metadata.gz.sig +0 -0
- data/diff-lcs.gemspec +0 -63
data.tar.gz.sig
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
�Av�-�e
|
1
|
+
K�T�*V���Gݢ�p�οy�M��b�#�����ܝt��ᮣsE-zZ�o7�=5���+����[Ŭ:�Ӿ�F��w��Ϯ��-�f�߁S8�0�s��Ku��o2*���H�V]�$F}+�
|
2
|
+
=��s��J?��
|
3
|
+
�{��,F��m�=����=��كڀb���2{dm��ɌBf_���&�t
|
data/.hoerc
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
exclude: !ruby/regexp /(tmp|swp)$|CVS|TAGS|\.(svn|git|hg|DS_Store|idea)|Gemfile
|
2
|
+
exclude: !ruby/regexp /(tmp|swp)$|CVS|TAGS|\.(svn|git|hg|DS_Store|idea)|Gemfile\.lock|research\/|\.gemspec$/
|
data/Gemfile
CHANGED
@@ -4,16 +4,17 @@
|
|
4
4
|
|
5
5
|
source "https://rubygems.org/"
|
6
6
|
|
7
|
-
|
8
|
-
gem "
|
9
|
-
gem "
|
10
|
-
gem "hoe-
|
11
|
-
gem "hoe-
|
12
|
-
gem "hoe-
|
7
|
+
|
8
|
+
gem "rubyforge", ">=2.0.4", :group => [:development, :test]
|
9
|
+
gem "rdoc", "~>4.0", :group => [:development, :test]
|
10
|
+
gem "hoe-bundler", "~>1.2", :group => [:development, :test]
|
11
|
+
gem "hoe-doofus", "~>1.0", :group => [:development, :test]
|
12
|
+
gem "hoe-gemspec2", "~>1.1", :group => [:development, :test]
|
13
|
+
gem "hoe-git", "~>1.5", :group => [:development, :test]
|
14
|
+
gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
|
13
15
|
gem "hoe-travis", "~>1.2", :group => [:development, :test]
|
14
16
|
gem "rake", "~>10.0", :group => [:development, :test]
|
15
|
-
gem "rdoc", "~>3.10", :group => [:development, :test]
|
16
17
|
gem "rspec", "~>2.0", :group => [:development, :test]
|
17
|
-
gem "
|
18
|
+
gem "hoe", "~>3.6", :group => [:development, :test]
|
18
19
|
|
19
20
|
# vim: syntax=ruby
|
data/History.rdoc
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 1.2.4 / 2013-04-20
|
2
|
+
|
3
|
+
* Bugs fixed:
|
4
|
+
* A bug was introduced after 1.1.3 when pruning common sequences at the start
|
5
|
+
of comparison. Paul Kunysch (@pck) fixed this in pull request 18. Thanks!
|
6
|
+
https://github.com/halostatue/diff-lcs/pull/18
|
7
|
+
* The Rubinius (1.9 mode) bug in rubinius/rubinius#2268 has been fixed by the
|
8
|
+
Rubinius team two days after it was filed. Thanks for fixing this so quickly!
|
9
|
+
https://github.com/rubinius/rubinius/issues/2268
|
10
|
+
* Switching to Raggi's hoe-gemspec2 for gemspec generation.
|
11
|
+
|
1
12
|
== 1.2.3 / 2013-04-11
|
2
13
|
|
3
14
|
* Bugs Fixed:
|
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -11,16 +11,14 @@ Diff::LCS computes the difference between two Enumerable sequences using the
|
|
11
11
|
McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities
|
12
12
|
to create a simple HTML diff output format and a standard diff-like tool.
|
13
13
|
|
14
|
-
This is release 1.2.
|
15
|
-
|
16
|
-
to
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
the Rubinius team to examine, this will be added to the Rubinius issue around
|
23
|
-
this.
|
14
|
+
This is release 1.2.4, fixing a bug introduced after diff-lcs 1.1.3 that did
|
15
|
+
not properly prune common sequences at the beginning of a comparison set.
|
16
|
+
Thanks to Paul Kunysch for fixing this issue.
|
17
|
+
|
18
|
+
Coincident with the release of diff-lcs 1.2.3, we reported an issue with
|
19
|
+
Rubinius in 1.9 mode
|
20
|
+
({rubinius/rubinius#2268}[https://github.com/rubinius/rubinius/issues/2268]).
|
21
|
+
We are happy to report that this issue has been resolved.
|
24
22
|
|
25
23
|
== Synopsis
|
26
24
|
|
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ require 'hoe'
|
|
7
7
|
Hoe.plugin :bundler
|
8
8
|
Hoe.plugin :doofus
|
9
9
|
Hoe.plugin :email
|
10
|
-
Hoe.plugin :
|
10
|
+
Hoe.plugin :gemspec2
|
11
11
|
Hoe.plugin :git
|
12
12
|
Hoe.plugin :rubyforge
|
13
13
|
Hoe.plugin :travis
|
@@ -24,7 +24,7 @@ Hoe.spec 'diff-lcs' do
|
|
24
24
|
|
25
25
|
self.extra_dev_deps << ['hoe-bundler', '~> 1.2']
|
26
26
|
self.extra_dev_deps << ['hoe-doofus', '~> 1.0']
|
27
|
-
self.extra_dev_deps << ['hoe-
|
27
|
+
self.extra_dev_deps << ['hoe-gemspec2', '~> 1.1']
|
28
28
|
self.extra_dev_deps << ['hoe-git', '~> 1.5']
|
29
29
|
self.extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
30
30
|
self.extra_dev_deps << ['hoe-travis', '~> 1.2']
|
data/lib/diff/lcs.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
|
3
3
|
module Diff; end unless defined? Diff
|
4
|
-
# = Diff::LCS 1.2.
|
4
|
+
# = Diff::LCS 1.2.4
|
5
5
|
#
|
6
6
|
# Computes "intelligent" differences between two sequenced Enumerables. This
|
7
7
|
# is an implementation of the McIlroy-Hunt "diff" algorithm for Enumerable
|
@@ -129,7 +129,7 @@ module Diff; end unless defined? Diff
|
|
129
129
|
# Common Subsequences</em>, CACM, vol.20, no.5, pp.350-353, May
|
130
130
|
# 1977, with a few minor improvements to improve the speed."
|
131
131
|
module Diff::LCS
|
132
|
-
VERSION = '1.2.
|
132
|
+
VERSION = '1.2.4'
|
133
133
|
end
|
134
134
|
|
135
135
|
require 'diff/lcs/callbacks'
|
data/lib/diff/lcs/internals.rb
CHANGED
data/spec/diff_spec.rb
CHANGED
@@ -31,6 +31,12 @@ describe "Diff::LCS.diff" do
|
|
31
31
|
change_diff(correct_diff).should == diff
|
32
32
|
end
|
33
33
|
|
34
|
+
it "should correctly diff 'xx' and 'xaxb'" do
|
35
|
+
left = 'xx'
|
36
|
+
right = 'xaxb'
|
37
|
+
Diff::LCS.patch(left, Diff::LCS.diff(left, right)).should == right
|
38
|
+
end
|
39
|
+
|
34
40
|
it "should return an empty diff with (hello, hello)" do
|
35
41
|
Diff::LCS.diff(hello, hello).should == []
|
36
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diff-lcs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -50,7 +50,7 @@ cert_chain:
|
|
50
50
|
-----END CERTIFICATE-----
|
51
51
|
|
52
52
|
'
|
53
|
-
date: 2013-04-
|
53
|
+
date: 2013-04-21 00:00:00.000000000 Z
|
54
54
|
dependencies:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubyforge
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
requirements:
|
76
76
|
- - ~>
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
78
|
+
version: '4.0'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -83,7 +83,7 @@ dependencies:
|
|
83
83
|
requirements:
|
84
84
|
- - ~>
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
86
|
+
version: '4.0'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: hoe-bundler
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,13 +117,13 @@ dependencies:
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '1.0'
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
|
-
name: hoe-
|
120
|
+
name: hoe-gemspec2
|
121
121
|
requirement: !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
124
124
|
- - ~>
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: '1.
|
126
|
+
version: '1.1'
|
127
127
|
type: :development
|
128
128
|
prerelease: false
|
129
129
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -131,7 +131,7 @@ dependencies:
|
|
131
131
|
requirements:
|
132
132
|
- - ~>
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: '1.
|
134
|
+
version: '1.1'
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: hoe-git
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,7 +219,7 @@ dependencies:
|
|
219
219
|
requirements:
|
220
220
|
- - ~>
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: '3.
|
222
|
+
version: '3.6'
|
223
223
|
type: :development
|
224
224
|
prerelease: false
|
225
225
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -227,7 +227,7 @@ dependencies:
|
|
227
227
|
requirements:
|
228
228
|
- - ~>
|
229
229
|
- !ruby/object:Gem::Version
|
230
|
-
version: '3.
|
230
|
+
version: '3.6'
|
231
231
|
description: ! 'Diff::LCS computes the difference between two Enumerable sequences
|
232
232
|
using the
|
233
233
|
|
@@ -236,24 +236,20 @@ description: ! 'Diff::LCS computes the difference between two Enumerable sequenc
|
|
236
236
|
to create a simple HTML diff output format and a standard diff-like tool.
|
237
237
|
|
238
238
|
|
239
|
-
This is release 1.2.
|
240
|
-
|
241
|
-
the comparison was the empty set, preventing the detection of encoding. Thanks
|
242
|
-
|
243
|
-
to Jon Rowe for fixing this issue. This is a strongly recommended release.
|
239
|
+
This is release 1.2.4, fixing a bug introduced after diff-lcs 1.1.3 that did
|
244
240
|
|
241
|
+
not properly prune common sequences at the beginning of a comparison set.
|
245
242
|
|
246
|
-
|
243
|
+
Thanks to Paul Kunysch for fixing this issue.
|
247
244
|
|
248
|
-
{rubinius/rubinius#2268}[https://github.com/rubinius/rubinius/issues/2268] and
|
249
245
|
|
250
|
-
|
246
|
+
Coincident with the release of diff-lcs 1.2.3, we reported an issue with
|
251
247
|
|
252
|
-
|
248
|
+
Rubinius in 1.9 mode
|
253
249
|
|
254
|
-
|
250
|
+
({rubinius/rubinius#2268}[https://github.com/rubinius/rubinius/issues/2268]).
|
255
251
|
|
256
|
-
this.'
|
252
|
+
We are happy to report that this issue has been resolved.'
|
257
253
|
email:
|
258
254
|
- austin@rubyforge.org
|
259
255
|
executables:
|
@@ -284,7 +280,6 @@ files:
|
|
284
280
|
- autotest/discover.rb
|
285
281
|
- bin/htmldiff
|
286
282
|
- bin/ldiff
|
287
|
-
- diff-lcs.gemspec
|
288
283
|
- docs/COPYING.txt
|
289
284
|
- docs/artistic.txt
|
290
285
|
- lib/diff-lcs.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/diff-lcs.gemspec
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = "diff-lcs"
|
5
|
-
s.version = "1.2.1"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Austin Ziegler"]
|
9
|
-
s.date = "2013-02-09"
|
10
|
-
s.description = "Diff::LCS computes the difference between two Enumerable sequences using the\nMcIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities\nto create a simple HTML diff output format and a standard diff-like tool.\n\nThis is release 1.2.1, restoring the public API to what existed in Diff::LCS\n1.1.x. Everyone is strongly encouraged to upgrade to this version as it fixes\nall known outstanding issues."
|
11
|
-
s.email = ["austin@rubyforge.org"]
|
12
|
-
s.executables = ["htmldiff", "ldiff"]
|
13
|
-
s.extra_rdoc_files = ["Contributing.rdoc", "History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "docs/COPYING.txt", "docs/artistic.txt", "Contributing.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
|
14
|
-
s.files = [".autotest", ".gemtest", ".rspec", ".travis.yml", "Contributing.rdoc", "Gemfile", "History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "autotest/discover.rb", "bin/htmldiff", "bin/ldiff", "diff-lcs.gemspec", "docs/COPYING.txt", "docs/artistic.txt", "lib/diff-lcs.rb", "lib/diff/lcs.rb", "lib/diff/lcs/array.rb", "lib/diff/lcs/block.rb", "lib/diff/lcs/callbacks.rb", "lib/diff/lcs/change.rb", "lib/diff/lcs/htmldiff.rb", "lib/diff/lcs/hunk.rb", "lib/diff/lcs/internals.rb", "lib/diff/lcs/ldiff.rb", "lib/diff/lcs/string.rb", "spec/change_spec.rb", "spec/diff_spec.rb", "spec/issues_spec.rb", "spec/lcs_spec.rb", "spec/patch_spec.rb", "spec/sdiff_spec.rb", "spec/spec_helper.rb", "spec/traverse_balanced_spec.rb", "spec/traverse_sequences_spec.rb"]
|
15
|
-
s.homepage = "http://diff-lcs.rubyforge.org/"
|
16
|
-
s.rdoc_options = ["--main", "README.rdoc"]
|
17
|
-
s.require_paths = ["lib"]
|
18
|
-
s.rubyforge_project = "diff-lcs"
|
19
|
-
s.rubygems_version = "1.8.25"
|
20
|
-
s.summary = "Diff::LCS computes the difference between two Enumerable sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm"
|
21
|
-
|
22
|
-
if s.respond_to? :specification_version then
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
27
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
|
28
|
-
s.add_development_dependency(%q<hoe-bundler>, ["~> 1.2"])
|
29
|
-
s.add_development_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
30
|
-
s.add_development_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
31
|
-
s.add_development_dependency(%q<hoe-git>, ["~> 1.5"])
|
32
|
-
s.add_development_dependency(%q<hoe-rubygems>, ["~> 1.0"])
|
33
|
-
s.add_development_dependency(%q<hoe-travis>, ["~> 1.2"])
|
34
|
-
s.add_development_dependency(%q<rake>, ["~> 10.0"])
|
35
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.0"])
|
36
|
-
s.add_development_dependency(%q<hoe>, ["~> 3.5"])
|
37
|
-
else
|
38
|
-
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
39
|
-
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
40
|
-
s.add_dependency(%q<hoe-bundler>, ["~> 1.2"])
|
41
|
-
s.add_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
42
|
-
s.add_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
43
|
-
s.add_dependency(%q<hoe-git>, ["~> 1.5"])
|
44
|
-
s.add_dependency(%q<hoe-rubygems>, ["~> 1.0"])
|
45
|
-
s.add_dependency(%q<hoe-travis>, ["~> 1.2"])
|
46
|
-
s.add_dependency(%q<rake>, ["~> 10.0"])
|
47
|
-
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
48
|
-
s.add_dependency(%q<hoe>, ["~> 3.5"])
|
49
|
-
end
|
50
|
-
else
|
51
|
-
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
52
|
-
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
53
|
-
s.add_dependency(%q<hoe-bundler>, ["~> 1.2"])
|
54
|
-
s.add_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
55
|
-
s.add_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
56
|
-
s.add_dependency(%q<hoe-git>, ["~> 1.5"])
|
57
|
-
s.add_dependency(%q<hoe-rubygems>, ["~> 1.0"])
|
58
|
-
s.add_dependency(%q<hoe-travis>, ["~> 1.2"])
|
59
|
-
s.add_dependency(%q<rake>, ["~> 10.0"])
|
60
|
-
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
61
|
-
s.add_dependency(%q<hoe>, ["~> 3.5"])
|
62
|
-
end
|
63
|
-
end
|