damerau-levenshtein 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,19 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "rake-compiler"
10
+ gem "rspec", "~> 2.3.0"
11
+ gem "cucumber", ">= 0"
12
+ gem "bundler", "~> 1.0.0"
13
+ gem "jeweler", "~> 1.6.0"
14
+ gem "rcov", ">= 0"
15
+ gem "ruby-debug19"
16
+ gem "ruby-prof"
17
+ gem "shoulda"
18
+ gem "mocha"
19
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,64 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ archive-tar-minitar (0.5.2)
5
+ builder (3.0.0)
6
+ columnize (0.3.3)
7
+ cucumber (1.0.2)
8
+ builder (>= 2.1.2)
9
+ diff-lcs (>= 1.1.2)
10
+ gherkin (~> 2.4.5)
11
+ json (>= 1.4.6)
12
+ term-ansicolor (>= 1.0.5)
13
+ diff-lcs (1.1.2)
14
+ gherkin (2.4.5)
15
+ json (>= 1.4.6)
16
+ git (1.2.5)
17
+ jeweler (1.6.4)
18
+ bundler (~> 1.0)
19
+ git (>= 1.2.5)
20
+ rake
21
+ json (1.5.3)
22
+ linecache19 (0.5.12)
23
+ ruby_core_source (>= 0.1.4)
24
+ mocha (0.9.12)
25
+ rake (0.9.2)
26
+ rake-compiler (0.7.9)
27
+ rake
28
+ rcov (0.9.9)
29
+ rspec (2.3.0)
30
+ rspec-core (~> 2.3.0)
31
+ rspec-expectations (~> 2.3.0)
32
+ rspec-mocks (~> 2.3.0)
33
+ rspec-core (2.3.1)
34
+ rspec-expectations (2.3.0)
35
+ diff-lcs (~> 1.1.2)
36
+ rspec-mocks (2.3.0)
37
+ ruby-debug-base19 (0.11.25)
38
+ columnize (>= 0.3.1)
39
+ linecache19 (>= 0.5.11)
40
+ ruby_core_source (>= 0.1.4)
41
+ ruby-debug19 (0.11.6)
42
+ columnize (>= 0.3.1)
43
+ linecache19 (>= 0.5.11)
44
+ ruby-debug-base19 (>= 0.11.19)
45
+ ruby-prof (0.10.7)
46
+ ruby_core_source (0.1.5)
47
+ archive-tar-minitar (>= 0.5.2)
48
+ shoulda (2.11.3)
49
+ term-ansicolor (1.0.6)
50
+
51
+ PLATFORMS
52
+ ruby
53
+
54
+ DEPENDENCIES
55
+ bundler (~> 1.0.0)
56
+ cucumber
57
+ jeweler (~> 1.6.0)
58
+ mocha
59
+ rake-compiler
60
+ rcov
61
+ rspec (~> 2.3.0)
62
+ ruby-debug19
63
+ ruby-prof
64
+ shoulda
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Dmitry Mozzherin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,20 @@
1
+ = damerau-levenshtein
2
+
3
+
4
+ Description goes here.
5
+
6
+ == Contributing to damerau-levenshtein
7
+
8
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
9
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
10
+ * Fork the project
11
+ * Start a feature/bugfix branch
12
+ * Commit and push until you are happy with your contribution
13
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
14
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
15
+
16
+ == Copyright
17
+
18
+ Copyright (c) 2011 Marine Biological Laboratory. See LICENSE.txt for
19
+ further details.
20
+
data/Rakefile ADDED
@@ -0,0 +1,51 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+ require 'rake/extensiontask'
14
+
15
+ require 'jeweler'
16
+ Jeweler::Tasks.new do |gem|
17
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
18
+ gem.name = "damerau-levenshtein"
19
+ gem.homepage = "http://github.com/dimus/damerau-levenshtein"
20
+ gem.license = "MIT"
21
+ gem.summary = %Q{Calculation of editing distance for 2 strings using Levenshtein or Damerau-Levenshtein algorithms}
22
+ gem.description = %Q{Calculation of editing distance for 2 strings using Levenshtein or Damerau-Levenshtein algorithms}
23
+ gem.email = "dmozzherin@gmail.com"
24
+ gem.authors = ["Dmitry Mozzherin"]
25
+ gem.files = FileList["[A-Z]*", "*.gemspec", "{bin,generators,lib,spec}/**/*"]
26
+ gem.files -= FileList['lib/**/*.bundle', 'lib/**/*.dll', 'lib/**/*.so']
27
+ gem.files += FileList['ext/**/*.c']
28
+ gem.extensions = FileList['ext/**/extconf.rb']
29
+ end
30
+ Jeweler::RubygemsDotOrgTasks.new
31
+
32
+ require 'rspec/core'
33
+ require 'rspec/core/rake_task'
34
+ RSpec::Core::RakeTask.new(:spec) do |spec|
35
+ spec.pattern = FileList['spec/**/*_spec.rb']
36
+ end
37
+
38
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
39
+ spec.pattern = 'spec/**/*_spec.rb'
40
+ spec.rcov = true
41
+ end
42
+
43
+ require 'cucumber/rake/task'
44
+ Cucumber::Rake::Task.new(:features)
45
+
46
+ Rake::ExtensionTask.new("damerau_levenshtein_binding") do |extension|
47
+ extension.lib_dir = "lib"
48
+ end
49
+
50
+ Rake::Task[:spec].prerequisites << :compile
51
+ task :default => :spec
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.5.1
@@ -0,0 +1,112 @@
1
+ #include "ruby.h"
2
+
3
+ VALUE DamerauLevenshteinBinding = Qnil;
4
+
5
+ void Init_damerau_levenshtein_binding();
6
+
7
+ VALUE method_distance_utf(VALUE self, VALUE _s, VALUE _t, VALUE _block_size, VALUE _max_distance);
8
+
9
+ void Init_damerau_levenshtein_binding() {
10
+ DamerauLevenshteinBinding = rb_define_module("DamerauLevenshteinBinding");
11
+ rb_define_method(DamerauLevenshteinBinding, "distance_utf", method_distance_utf, 4);
12
+ }
13
+
14
+ VALUE method_distance_utf(VALUE self, VALUE _s, VALUE _t, VALUE _block_size, VALUE _max_distance){
15
+ int i, i1, j, j1, k, half_tl, cost, *d, distance, del, ins, subs, transp, block;
16
+ int sl, tl, half_sl;
17
+ int stop_execution = 0;
18
+ int min = 0;
19
+ int current_distance = 0;
20
+
21
+ int block_size = NUM2INT(_block_size);
22
+ int max_distance = NUM2INT(_max_distance);
23
+
24
+ VALUE *sv = RARRAY_PTR(_s);
25
+ VALUE *tv = RARRAY_PTR(_t);
26
+
27
+ sl = (int) RARRAY_LEN(_s);
28
+ tl = (int) RARRAY_LEN(_t);
29
+
30
+ if (sl == 0) return INT2NUM(tl);
31
+ if (tl == 0) return INT2NUM(sl);
32
+ //case of lengths 1 must present or it will break further in the code
33
+ if (sl == 1 && tl == 1 && sv[0] != tv[0]) return INT2NUM(1);
34
+
35
+ int s[sl];
36
+ int t[tl];
37
+
38
+ for (i=0; i < sl; i++) s[i] = NUM2INT(sv[i]);
39
+ for (i=0; i < tl; i++) t[i] = NUM2INT(tv[i]);
40
+
41
+ sl++;
42
+ tl++;
43
+
44
+ //one-dimentional representation of 2 dimentional array len(s)+1 * len(t)+1
45
+ d = malloc((sizeof(int))*(sl)*(tl));
46
+ //populate 'vertical' row starting from the 2nd position (first one is filled already)
47
+ for(i = 0; i < tl; i++){
48
+ d[i*sl] = i;
49
+ }
50
+
51
+ //fill up array with scores
52
+ for(i = 1; i<sl; i++){
53
+ d[i] = i;
54
+ if (stop_execution == 1) break;
55
+ current_distance = 10000;
56
+ for(j = 1; j<tl; j++){
57
+
58
+ cost = 1;
59
+ if(s[i-1] == t[j-1]) cost = 0;
60
+
61
+ half_sl = (sl - 1)/2;
62
+ half_tl = (tl - 1)/2;
63
+
64
+ block = block_size < half_sl ? block_size : half_sl;
65
+ block = block < half_tl ? block : half_tl;
66
+
67
+ while (block >= 1){
68
+ int swap1 = 1;
69
+ int swap2 = 1;
70
+ i1 = i - (block * 2);
71
+ j1 = j - (block * 2);
72
+ for (k = i1; k < i1 + block; k++) {
73
+ if (s[k] != t[k + block]){
74
+ swap1 = 0;
75
+ break;
76
+ }
77
+ }
78
+ for (k = j1; k < j1 + block; k++) {
79
+ if (t[k] != s[k + block]){
80
+ swap2 = 0;
81
+ break;
82
+ }
83
+ }
84
+
85
+ del = d[j*sl + i - 1] + 1;
86
+ ins = d[(j-1)*sl + i] + 1;
87
+ min = del;
88
+ if (ins < min) min = ins;
89
+ //if (i == 2 && j==2) return INT2NUM(swap2+5);
90
+ if (block_size > 1 && i >= block && j >= block && swap1 == 1 && swap2 == 1){
91
+ transp = d[(j - block * 2) * sl + i - block * 2] + cost + block -1;
92
+ if (transp < min) min = transp;
93
+ block = 0;
94
+ } else if (block == 1) {
95
+ subs = d[(j-1)*sl + i - 1] + cost;
96
+ if (subs < min) min = subs;
97
+ }
98
+ block--;
99
+ }
100
+ d[j*sl+i]=min;
101
+ if (current_distance > d[j*sl+i]) current_distance = d[j*sl+i];
102
+ }
103
+ if (current_distance > max_distance) {
104
+ stop_execution = 1;
105
+ }
106
+ }
107
+ distance=d[sl * tl - 1];
108
+ if (stop_execution == 1) distance = current_distance;
109
+
110
+ free(d);
111
+ return INT2NUM(distance);
112
+ }
@@ -0,0 +1,11 @@
1
+ # Loads mkmf which is used to make makefiles for Ruby extensions
2
+ require 'mkmf'
3
+
4
+ # Give it a name
5
+ extension_name = 'damerau_levenshtein_binding'
6
+
7
+ # The destination
8
+ dir_config(extension_name)
9
+
10
+ # Do the work
11
+ create_makefile(extension_name)
@@ -0,0 +1,11 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'damerau_levenshtein_binding'
4
+
5
+ class DamerauLevenshtein
6
+ include DamerauLevenshteinBinding
7
+
8
+ def distance(str1, str2, block_size = 2, max_distance = 10)
9
+ distance_utf(str1.unpack("U*"), str2.unpack("U*"), block_size, max_distance)
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "DamerauLevenshtein" do
4
+ it 'should get tests' do
5
+ read_test_file(File.expand_path(File.dirname(__FILE__)) + '/damerau_levenshtein_test.txt', 5) do |y|
6
+ dl = DamerauLevenshtein.new
7
+ if y
8
+ res = dl.distance(y[0], y[1], y[3].to_i, y[2].to_i)
9
+ puts y if res != y[4].to_i
10
+ puts y
11
+ res.should == y[4].to_i
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,83 @@
1
+ ######################
2
+ # Tests for modified Damerau Levenshtein Distance algorithm (UTF-8 compatible)
3
+ #
4
+ # * B. Boehmer, T. Rees, Modified Damerau-Levenshtein Distance, Boehmer & Rees 2008
5
+ # * F.J. Damerau. A technique for computer detection and correction of spelling errors, Communications of the ACM, 1964
6
+ #
7
+ # Fields:
8
+ # String1|String2|maximum distance|transposition block size|expected distance
9
+ # - String1, String2
10
+ # compared strings
11
+ # - maximum distance
12
+ # stops execution of the algorithm when calculated distance exceeds the maximum distance number
13
+ # - transosition block size
14
+ # determines how many characters can be transposed. Block size 1 returns score according to Damerau-Levenshtein algorithm
15
+ # - expected distance
16
+ # resulting distance that has to be achieved by the algorithm
17
+ # Note: algorithm does not try to normalize or interpret strings in any way.
18
+ ######################
19
+
20
+ #it whould recognize the exact match
21
+ Pomatomus|Pomatomus|10|1|0
22
+
23
+ #it should not try to normalize incoming strings
24
+ Pomatomus|Pomatomus|10|1|1
25
+ Pomatomus|pomatomus|10|1|1
26
+
27
+ #it should calculate special cases
28
+ Pomatomus||10|1|9
29
+ |Pomatomus|10|1|9
30
+ P|p|10|1|1
31
+ #TODO: one letter vs longer string generates a big negative number
32
+ #L|Linneaus|10|1|7
33
+
34
+
35
+ #it should calculate Damerau Levenshtein distance with 1 character transpositions, insertions, deletions, substitutions (block size 1)
36
+ # 1 substitution
37
+ Pomatomus|Pomatomux|10|1|1
38
+ # 1 deletion
39
+ Pmatomus|Pomatomus|10|1|1
40
+ # 1 deletion
41
+ Pomatomus|Pmatomus|10|1|1
42
+ # 1 substitution
43
+ Rpmatomus|Pomatomus|10|1|2
44
+ # 1 substitution
45
+ Pommtomus|Pomatomus|10|1|1
46
+ # 2 substitutions
47
+ Potamomus|Pomatomus|10|1|2
48
+ # 1 utf-8 substitution
49
+ Cedarinia scabra Sjöstedt 1921|Cedarinia scabra Sjostedt 1921|10|1|1
50
+ # transposition (Levenshtein takes it as 2 substitutions)
51
+ Pomatomus|oPmatomus|10|1|2
52
+ Pomatomus|oPmatomus|10|2|1
53
+ # transposition (Levenshtein takes it as 2 substitutions)
54
+ Pomatomus|Pomatomsu|10|1|2
55
+ Pomatomus|Pomatomsu|10|2|1
56
+ # transposition
57
+ Pomtaomus|Pomatomus|10|1|2
58
+ Pomtaomus|Pomatomus|10|2|1
59
+ # transposition
60
+ Pomatoums|Pomatomus|10|1|2
61
+ Pomatoums|Pomatomus|10|2|1
62
+ # transposition + substitution
63
+ PoamtosusPomatomus|10|1|3
64
+ PoamtosusPomatomus|10|2|2
65
+
66
+ # transposition with utf-8 char
67
+ Cedarinia scabra Sjöstedt 1921|Cedarinia scabra Söjstedt 1921|10|1|2
68
+ Cedarinia scabra Sjöstedt 1921|Cedarinia scabra Söjstedt 1921|10|2|1
69
+
70
+ #it should calculate Modified Damerau Levenshtein distance with 2 or more characters transposition (block size > 2)
71
+ serrulatus|serratulus|10|2|2
72
+ Pomatomus|Poomumats|10|3|3
73
+ vesiculosus|vecusilosus|10|1|4
74
+ vesiculosus|vecusilosus|10|2|2
75
+ trimerophyton|mertriophyton|10|1|6
76
+ trimerophyton|mertriophyton|10|3|3
77
+
78
+ #it should stop trying if distance exceeds maximum allowed distance
79
+ Pxxxxomus|Pomatomus|10|1|4
80
+ Pxxxxomus|Pomatomus|2|1|3
81
+
82
+ #
83
+ PUNCTATA|PUNCTATA|10|1|0
@@ -0,0 +1,25 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'damerau-levenshtein'
5
+
6
+ # Requires supporting files with custom matchers and macros, etc,
7
+ # in ./support/ and its subdirectories.
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
+
10
+ RSpec.configure do |config|
11
+
12
+ end
13
+
14
+ def read_test_file(file, fields_num)
15
+ f = open(file)
16
+ f.each do |line|
17
+ fields = line.split("|")
18
+ if line.match(/^\s*#/) == nil && fields.size == fields_num
19
+ fields[-1] = fields[-1].split('#')[0].strip
20
+ yield(fields)
21
+ else
22
+ yield(nil)
23
+ end
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,212 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: damerau-levenshtein
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 5
8
+ - 1
9
+ version: 0.5.1
10
+ platform: ruby
11
+ authors:
12
+ - Dmitry Mozzherin
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-07-23 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rake-compiler
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :development
31
+ prerelease: false
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: rspec
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 2
42
+ - 3
43
+ - 0
44
+ version: 2.3.0
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: cucumber
50
+ requirement: &id003 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ type: :development
59
+ prerelease: false
60
+ version_requirements: *id003
61
+ - !ruby/object:Gem::Dependency
62
+ name: bundler
63
+ requirement: &id004 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ segments:
69
+ - 1
70
+ - 0
71
+ - 0
72
+ version: 1.0.0
73
+ type: :development
74
+ prerelease: false
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: jeweler
78
+ requirement: &id005 !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ~>
82
+ - !ruby/object:Gem::Version
83
+ segments:
84
+ - 1
85
+ - 6
86
+ - 0
87
+ version: 1.6.0
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
92
+ name: rcov
93
+ requirement: &id006 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ segments:
99
+ - 0
100
+ version: "0"
101
+ type: :development
102
+ prerelease: false
103
+ version_requirements: *id006
104
+ - !ruby/object:Gem::Dependency
105
+ name: ruby-debug19
106
+ requirement: &id007 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ segments:
112
+ - 0
113
+ version: "0"
114
+ type: :development
115
+ prerelease: false
116
+ version_requirements: *id007
117
+ - !ruby/object:Gem::Dependency
118
+ name: ruby-prof
119
+ requirement: &id008 !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ segments:
125
+ - 0
126
+ version: "0"
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: *id008
130
+ - !ruby/object:Gem::Dependency
131
+ name: shoulda
132
+ requirement: &id009 !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ segments:
138
+ - 0
139
+ version: "0"
140
+ type: :development
141
+ prerelease: false
142
+ version_requirements: *id009
143
+ - !ruby/object:Gem::Dependency
144
+ name: mocha
145
+ requirement: &id010 !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ segments:
151
+ - 0
152
+ version: "0"
153
+ type: :development
154
+ prerelease: false
155
+ version_requirements: *id010
156
+ description: Calculation of editing distance for 2 strings using Levenshtein or Damerau-Levenshtein algorithms
157
+ email: dmozzherin@gmail.com
158
+ executables: []
159
+
160
+ extensions:
161
+ - ext/damerau_levenshtein_binding/extconf.rb
162
+ extra_rdoc_files:
163
+ - LICENSE.txt
164
+ - README.rdoc
165
+ files:
166
+ - Gemfile
167
+ - Gemfile.lock
168
+ - LICENSE.txt
169
+ - README.rdoc
170
+ - Rakefile
171
+ - VERSION
172
+ - ext/damerau_levenshtein_binding/damerau_levenshtein_binding.c
173
+ - lib/damerau-levenshtein.rb
174
+ - spec/damerau-levenshtein_spec.rb
175
+ - spec/damerau_levenshtein_test.txt
176
+ - spec/spec_helper.rb
177
+ - ext/damerau_levenshtein_binding/extconf.rb
178
+ has_rdoc: true
179
+ homepage: http://github.com/dimus/damerau-levenshtein
180
+ licenses:
181
+ - MIT
182
+ post_install_message:
183
+ rdoc_options: []
184
+
185
+ require_paths:
186
+ - lib
187
+ required_ruby_version: !ruby/object:Gem::Requirement
188
+ none: false
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ hash: 1891520829373669839
193
+ segments:
194
+ - 0
195
+ version: "0"
196
+ required_rubygems_version: !ruby/object:Gem::Requirement
197
+ none: false
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ segments:
202
+ - 0
203
+ version: "0"
204
+ requirements: []
205
+
206
+ rubyforge_project:
207
+ rubygems_version: 1.3.7
208
+ signing_key:
209
+ specification_version: 3
210
+ summary: Calculation of editing distance for 2 strings using Levenshtein or Damerau-Levenshtein algorithms
211
+ test_files: []
212
+