hashdiff 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -2,8 +2,6 @@
2
2
 
3
3
  HashDiff is a ruby library to compute the smallest difference between two hashes.
4
4
 
5
- **Demo**: [HashDiff](http://hashdiff.herokuapp.com/)
6
-
7
5
  **Docs**: [Documentation](http://rubydoc.info/gems/hashdiff)
8
6
 
9
7
  ## Why HashDiff?
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## v0.2.3 2015-11-5
4
+
5
+ * improve performance of LCS algorithm #12
6
+
3
7
  ## v0.2.2 2014-10-6
4
8
 
5
9
  * make library 1.8.7 compatible
@@ -16,9 +16,9 @@ module HashDiff
16
16
  vector = []
17
17
 
18
18
  lcs = []
19
- (0..b_finish).each do |bi|
19
+ (b_start..b_finish).each do |bi|
20
20
  lcs[bi] = []
21
- (0..a_finish).each do |ai|
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]
@@ -1,3 +1,3 @@
1
1
  module HashDiff
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
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
- hash: 19
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
- date: 2014-10-06 00:00:00 Z
19
- dependencies:
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
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
26
17
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 3
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
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
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
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
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
- version_requirements: *id003
63
- description: " HashDiff is a diff lib to compute the smallest difference between two hashes. "
64
- email:
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
- none: false
106
- requirements:
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
- none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
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: 1.8.25
106
+ rubygems_version: 2.0.14
128
107
  signing_key:
129
- specification_version: 3
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: