damerau-levenshtein 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +2 -2
- data/.ruby-version +1 -1
- data/.travis.yml +2 -3
- data/LICENSE.txt +1 -1
- data/README.md +5 -6
- data/damerau-levenshtein.gemspec +10 -15
- data/lib/damerau-levenshtein/damerau_levenshtein.so +0 -0
- data/lib/damerau-levenshtein/version.rb +1 -1
- metadata +32 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '08637e3e7eb3789b7910dbb1d824aea39ac1e0a20a939cbf035a95f4657e50a0'
|
4
|
+
data.tar.gz: 430fbf0ac5d6723becbb1be76f075422bcee05cf9a0e45ef7405dd065d321cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0a24c262162ebcb8a310d352f6c2388f4e2067b9183d4804048909af2af81f504f477d9da8f9c614204e0c63905f7fff3e59e29c4c08ae4170fe886477ab37b
|
7
|
+
data.tar.gz: 18ca5a38b06fc6d1d0177bcc30f5a9c37f6a040cbc1de061f41ba0cfd187d133baafe7c2fe57f1435eb7afd802f0f43502ed71ee7a77302348dd9acf407265e0
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.7
|
data/.travis.yml
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,8 @@ DamerauLevenshtein.distance("Something", "Smoething") #returns 1
|
|
20
20
|
```
|
21
21
|
|
22
22
|
It also returns a diff between two strings according to Levenshtein alrorithm.
|
23
|
-
The diff is expressed by tags `<ins>`, `<del>`, and `<subst
|
23
|
+
The diff is expressed by tags `<ins>`, `<del>`, and `<subst>`. Such tags make
|
24
|
+
it possible to highlight differnce between strings in a flexible way.
|
24
25
|
|
25
26
|
```ruby
|
26
27
|
require "damerau-levenshtein"
|
@@ -29,9 +30,6 @@ differ.run("corn", "cron")
|
|
29
30
|
# output: ["c<subst>or</subst>n", "c<subst>ro</subst>n"]
|
30
31
|
```
|
31
32
|
|
32
|
-
Gem damerau-levenshtein is compatible with ruby versions 1.8.7
|
33
|
-
and 1.9.2 and higher, as well as 2.0.0 and higher
|
34
|
-
|
35
33
|
## Dependencies ##
|
36
34
|
|
37
35
|
sudo apt-get install build-essential libgmp3-dev
|
@@ -226,11 +224,11 @@ This gem is following practices of [Semantic Versioning][semver]
|
|
226
224
|
|
227
225
|
## Contributors ##
|
228
226
|
|
229
|
-
[lazylester][lazylester], [Ran Xie][skarlit], [Alexey Zapparov][ixti], [azhi][azhi]
|
227
|
+
[lazylester][lazylester], [Ran Xie][skarlit], [Alexey Zapparov][ixti], [azhi][azhi], [Josephine Wright][jozr]
|
230
228
|
|
231
229
|
## Copyright ##
|
232
230
|
|
233
|
-
Copyright (c) 2011-
|
231
|
+
Copyright (c) 2011-2018 Dmitry Mozzherin. See LICENSE.txt for
|
234
232
|
further details.
|
235
233
|
|
236
234
|
[gem_svg]: https://badge.fury.io/rb/damerau-levenshtein.svg
|
@@ -248,4 +246,5 @@ further details.
|
|
248
246
|
[skarlit]: https://github.com/Skarlit
|
249
247
|
[ixti]: https://github.com/ixti
|
250
248
|
[azhi]: https://github.com/azhi
|
249
|
+
[jozr]: https://github.com/jozr
|
251
250
|
[rees2014]: https://dx.doi.org/10.1371/journal.pone.0107510
|
data/damerau-levenshtein.gemspec
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
$LOAD_PATH.push File.expand_path("
|
3
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
4
4
|
|
5
5
|
require "damerau-levenshtein/version"
|
6
6
|
|
7
|
-
# rubocop:disable Metrics/BlockLength
|
8
|
-
|
9
7
|
Gem::Specification.new do |s|
|
10
|
-
s.required_ruby_version = "~> 2.
|
8
|
+
s.required_ruby_version = "~> 2.5"
|
11
9
|
s.name = "damerau-levenshtein"
|
12
10
|
s.version = DamerauLevenshtein::VERSION
|
13
11
|
s.homepage = "https://github.com/GlobalNamesArchitecture/damerau-levenshtein"
|
@@ -27,18 +25,15 @@ Gem::Specification.new do |s|
|
|
27
25
|
s.extensions = ["ext/damerau_levenshtein/extconf.rb"]
|
28
26
|
s.require_paths = ["lib", "lib/damerau-levenshtein"]
|
29
27
|
|
30
|
-
s.add_development_dependency "
|
31
|
-
|
32
|
-
s.add_development_dependency "
|
33
|
-
s.add_development_dependency "bundler", "~> 1.16"
|
34
|
-
s.add_development_dependency "byebug", "~> 9.0"
|
28
|
+
s.add_development_dependency "activesupport", "~> 6.0"
|
29
|
+
s.add_development_dependency "bundler", "~> 2.0"
|
30
|
+
s.add_development_dependency "byebug", "~> 11.0"
|
35
31
|
s.add_development_dependency "coveralls", "~> 0.8"
|
36
32
|
s.add_development_dependency "cucumber", "~> 3.1"
|
37
|
-
s.add_development_dependency "rake", "~>
|
33
|
+
s.add_development_dependency "rake", "~> 13.0"
|
38
34
|
s.add_development_dependency "rake-compiler", "~> 1.0"
|
39
|
-
s.add_development_dependency "
|
40
|
-
s.add_development_dependency "
|
41
|
-
s.add_development_dependency "
|
35
|
+
s.add_development_dependency "rspec", "~> 3.9"
|
36
|
+
s.add_development_dependency "rubocop", "~> 0.76"
|
37
|
+
s.add_development_dependency "ruby-prof", "~> 1.0"
|
38
|
+
s.add_development_dependency "shoulda", "~> 3.6"
|
42
39
|
end
|
43
|
-
|
44
|
-
# rubocop:enable all
|
Binary file
|
metadata
CHANGED
@@ -1,71 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: damerau-levenshtein
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2019-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rspec
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.7'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '3.7'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: activesupport
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
19
|
+
version: '6.0'
|
34
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: '6.0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
33
|
+
version: '2.0'
|
48
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.0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: byebug
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '11.0'
|
62
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: '11.0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: coveralls
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +86,14 @@ dependencies:
|
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
89
|
+
version: '13.0'
|
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: '
|
96
|
+
version: '13.0'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rake-compiler
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,48 +108,62 @@ dependencies:
|
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '1.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.9'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.9'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0.
|
131
|
+
version: '0.76'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0.
|
138
|
+
version: '0.76'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: ruby-prof
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0
|
145
|
+
version: '1.0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0
|
152
|
+
version: '1.0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: shoulda
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '3.
|
159
|
+
version: '3.6'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '3.
|
166
|
+
version: '3.6'
|
167
167
|
description: This gem implements pure Levenshtein algorithm, Damerau modification
|
168
168
|
(where 2 character transposition counts as 1 edit distance). It also includes Boehmer
|
169
169
|
& Rees 2008 modification, to handle transposition in blocks with more than 2 characters
|
@@ -206,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
206
|
requirements:
|
207
207
|
- - "~>"
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version: '2.
|
209
|
+
version: '2.5'
|
210
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
212
|
- - ">="
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.
|
217
|
+
rubygems_version: 2.7.6.2
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Calculation of editing distance for 2 strings using Levenshtein or Damerau-Levenshtein
|