hashdiff 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +0 -2
- data/changelog.md +4 -0
- data/lib/hashdiff/lcs.rb +2 -2
- data/lib/hashdiff/version.rb +1 -1
- metadata +59 -82
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1b76b901f0b2255c7730319703d9a513611046b0
|
4
|
+
data.tar.gz: 96d566af4c8ec0ae6ca33524559e3c108ec86656
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 481dbbcd00e83a73be568c435b6063c13ef4b089727624b6b188711fa79d857828ac845cd37436ef351b4366d8b245c9a3e9f392942c927fc02a98da58a1ffd4
|
7
|
+
data.tar.gz: ebc3b5997305815617bf8468a918c4f18320c5e5619d923e6674220bc42ca6128b2313db56f28d8458cd32800b60b388aa4803294b9a6d7dcde68a1ada6f7a6b
|
data/README.md
CHANGED
data/changelog.md
CHANGED
data/lib/hashdiff/lcs.rb
CHANGED
@@ -16,9 +16,9 @@ module HashDiff
|
|
16
16
|
vector = []
|
17
17
|
|
18
18
|
lcs = []
|
19
|
-
(
|
19
|
+
(b_start..b_finish).each do |bi|
|
20
20
|
lcs[bi] = []
|
21
|
-
(
|
21
|
+
(a_start..a_finish).each do |ai|
|
22
22
|
if similar?(a[ai], b[bi], opts)
|
23
23
|
topleft = (ai > 0 and bi > 0)? lcs[bi-1][ai-1][1] : 0
|
24
24
|
lcs[bi][ai] = [:topleft, topleft + 1]
|
data/lib/hashdiff/version.rb
CHANGED
metadata
CHANGED
@@ -1,75 +1,65 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hashdiff
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 2
|
10
|
-
version: 0.2.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.3
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Liu Fengyun
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: rspec
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 2
|
31
|
-
- 0
|
32
|
-
version: "2.0"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
33
20
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: yard
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: yard
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
47
34
|
type: :development
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: bluecloth
|
51
35
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bluecloth
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
61
48
|
type: :development
|
62
|
-
|
63
|
-
|
64
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: ' HashDiff is a diff lib to compute the smallest difference between two
|
56
|
+
hashes. '
|
57
|
+
email:
|
65
58
|
- liufengyunchina@gmail.com
|
66
59
|
executables: []
|
67
|
-
|
68
60
|
extensions: []
|
69
|
-
|
70
61
|
extra_rdoc_files: []
|
71
|
-
|
72
|
-
files:
|
62
|
+
files:
|
73
63
|
- .gitignore
|
74
64
|
- .rspec
|
75
65
|
- .travis.yml
|
@@ -94,40 +84,27 @@ files:
|
|
94
84
|
- spec/hashdiff/util_spec.rb
|
95
85
|
- spec/spec_helper.rb
|
96
86
|
homepage: https://github.com/liufengyun/hashdiff
|
97
|
-
licenses:
|
87
|
+
licenses:
|
98
88
|
- MIT
|
89
|
+
metadata: {}
|
99
90
|
post_install_message:
|
100
91
|
rdoc_options: []
|
101
|
-
|
102
|
-
require_paths:
|
92
|
+
require_paths:
|
103
93
|
- lib
|
104
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
hash: 57
|
110
|
-
segments:
|
111
|
-
- 1
|
112
|
-
- 8
|
113
|
-
- 7
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - '>='
|
97
|
+
- !ruby/object:Gem::Version
|
114
98
|
version: 1.8.7
|
115
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
hash: 3
|
121
|
-
segments:
|
122
|
-
- 0
|
123
|
-
version: "0"
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
124
104
|
requirements: []
|
125
|
-
|
126
105
|
rubyforge_project:
|
127
|
-
rubygems_version:
|
106
|
+
rubygems_version: 2.0.14
|
128
107
|
signing_key:
|
129
|
-
specification_version:
|
108
|
+
specification_version: 4
|
130
109
|
summary: HashDiff is a diff lib to compute the smallest difference between two hashes.
|
131
110
|
test_files: []
|
132
|
-
|
133
|
-
has_rdoc:
|