damerau-levenshtein 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/README.md +2 -3
- data/damerau-levenshtein.gemspec +7 -10
- data/lib/damerau-levenshtein/version.rb +1 -1
- metadata +35 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9562ac303b980b7ab4b4ed7e0b5e04e79d507a53
|
4
|
+
data.tar.gz: 6a53cb71d05d73b86065ce3332cf643ab85de570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a2a6ef3bd033ca52376fa579840cc94fe837d190a31fdd16776b99d48c3ce48a94c1d42f9bab3bf668be52fe2c1ec9ab3b58af5c162be93a3ac806e18e7b03
|
7
|
+
data.tar.gz: f8facc05301d1031b0ce1b73b4e8cba31873e777d81068f476e653d386052d827f3b87b88ff67f878dafb381a89fc59a1e62ee5771ea4e4968b7fad5b8f31173
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -23,7 +23,7 @@ DamerauLevenshtein.distance("Something", "Smoething") #returns 1
|
|
23
23
|
Gem damerau-levenshtein is compatible with ruby versions 1.8.7
|
24
24
|
and 1.9.2 and higher, as well as 2.0.0 and higher
|
25
25
|
|
26
|
-
|
26
|
+
Dependencies
|
27
27
|
-------------
|
28
28
|
|
29
29
|
sudo apt-get install build-essential libgmp3-dev
|
@@ -146,8 +146,7 @@ Authors
|
|
146
146
|
Contributors
|
147
147
|
------------
|
148
148
|
|
149
|
-
[lazylester][lazylester]
|
150
|
-
[Ran Xie][skarlit]
|
149
|
+
[lazylester][lazylester], [Ran Xie][skarlit]
|
151
150
|
|
152
151
|
Copyright
|
153
152
|
---------
|
data/damerau-levenshtein.gemspec
CHANGED
@@ -12,26 +12,23 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = "Calculation of editing distance for 2 strings " \
|
13
13
|
"using Levenshtein or Damerau-Levenshtein algorithms"
|
14
14
|
s.description = "This gem implements pure Levenshtein algorithm, " \
|
15
|
-
"Damerau modification
|
15
|
+
"Damerau modification (where 2 character " \
|
16
16
|
"transposition counts as 1 edit distance). It also " \
|
17
|
-
"includes Boehmer & Rees 2008 modification " \
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"(Boehmer & Rees 2008)."
|
17
|
+
"includes Boehmer & Rees 2008 modification, " \
|
18
|
+
"to handle transposition in bloks with more than " \
|
19
|
+
"2 characters (Boehmer & Rees 2008)."
|
21
20
|
s.files = `git ls-files -z`.split("\x0").
|
22
21
|
reject { |f| f.match(%r{^(test|spec|features)/}) }
|
23
22
|
s.extensions = ["ext/damerau_levenshtein/extconf.rb"]
|
24
23
|
s.require_paths = ["lib", "lib/damerau-levenshtein"]
|
25
24
|
|
26
|
-
s.add_dependency "bundler", "~> 1.11"
|
27
|
-
s.add_dependency "rake", "~> 11.1"
|
28
|
-
s.add_dependency "rake-compiler", "~> 0.9"
|
29
|
-
s.add_dependency "json", "~> 1.8"
|
30
|
-
|
31
25
|
s.add_development_dependency "rspec", "~> 3.4"
|
32
26
|
s.add_development_dependency "cucumber", "~> 2.3"
|
33
27
|
s.add_development_dependency "ruby-prof", "~> 0.15"
|
34
28
|
s.add_development_dependency "shoulda", "~> 3.5"
|
35
29
|
s.add_development_dependency "rubocop", "~> 0.38"
|
36
30
|
s.add_development_dependency "coveralls", "~> 0.8"
|
31
|
+
s.add_development_dependency "bundler", "~> 1.11"
|
32
|
+
s.add_development_dependency "rake", "~> 11.1"
|
33
|
+
s.add_development_dependency "rake-compiler", "~> 0.9"
|
37
34
|
end
|
metadata
CHANGED
@@ -1,159 +1,145 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: damerau-levenshtein
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Mozzherin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.11'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.11'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
14
|
+
name: rspec
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
type: :
|
19
|
+
version: '3.4'
|
20
|
+
type: :development
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
26
|
+
version: '3.4'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
28
|
+
name: cucumber
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
33
|
+
version: '2.3'
|
34
|
+
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '2.3'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
42
|
+
name: ruby-prof
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
type: :
|
47
|
+
version: '0.15'
|
48
|
+
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '0.15'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
56
|
+
name: shoulda
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
61
|
+
version: '3.5'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
68
|
+
version: '3.5'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
70
|
+
name: rubocop
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
75
|
+
version: '0.38'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
82
|
+
version: '0.38'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
84
|
+
name: coveralls
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
89
|
+
version: '0.8'
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
96
|
+
version: '0.8'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
98
|
+
name: bundler
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
101
|
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
103
|
+
version: '1.11'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
110
|
+
version: '1.11'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
112
|
+
name: rake
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
115
|
- - "~>"
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
117
|
+
version: '11.1'
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
124
|
+
version: '11.1'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
126
|
+
name: rake-compiler
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0.
|
131
|
+
version: '0.9'
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0.
|
138
|
+
version: '0.9'
|
153
139
|
description: This gem implements pure Levenshtein algorithm, Damerau modification
|
154
|
-
|
155
|
-
|
156
|
-
|
140
|
+
(where 2 character transposition counts as 1 edit distance). It also includes Boehmer
|
141
|
+
& Rees 2008 modification, to handle transposition in bloks with more than 2 characters
|
142
|
+
(Boehmer & Rees 2008).
|
157
143
|
email: dmozzherin@gmail.com
|
158
144
|
executables: []
|
159
145
|
extensions:
|