levenshteinish 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +24 -0
- data/levenshteinish.gemspec +1 -2
- metadata +11 -6
- data/lib/levenshteinish/version.rb +0 -3
data/README.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Levenshteinish
|
2
|
+
|
3
|
+
An *average distance* implementation of the [hintable_levenshtein](https://github.com/joshbuddy/hintable_levenshtein) gem.
|
4
|
+
|
5
|
+
## How to use
|
6
|
+
|
7
|
+
```` ruby
|
8
|
+
Levenshtein.distance("first", "last")
|
9
|
+
# => 0.6
|
10
|
+
````
|
11
|
+
|
12
|
+
The `distance` method returns a value between `0.0` and `1.0`, where `0.0` is spot on.
|
13
|
+
|
14
|
+
## How do install
|
15
|
+
|
16
|
+
[sudo] gem install levenshteinish
|
17
|
+
|
18
|
+
## Requirements
|
19
|
+
|
20
|
+
*Levenshteinish* is tested on *OS X 10.6.7* using Ruby *1.8.7*, *1.9.2*.
|
21
|
+
|
22
|
+
## License
|
23
|
+
|
24
|
+
*Levenshteinish* is released under the *MIT license*.
|
data/levenshteinish.gemspec
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "levenshteinish/version"
|
4
3
|
|
5
4
|
Gem::Specification.new do |s|
|
6
5
|
s.name = "levenshteinish"
|
7
|
-
s.version =
|
6
|
+
s.version = "0.0.2"
|
8
7
|
s.platform = Gem::Platform::RUBY
|
9
8
|
s.authors = ["Linus Oleander"]
|
10
9
|
s.email = ["linus@oleander.nu"]
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: levenshteinish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Linus Oleander
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-
|
18
|
+
date: 2011-05-06 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -25,6 +26,7 @@ dependencies:
|
|
25
26
|
requirements:
|
26
27
|
- - ">="
|
27
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
28
30
|
segments:
|
29
31
|
- 0
|
30
32
|
version: "0"
|
@@ -38,6 +40,7 @@ dependencies:
|
|
38
40
|
requirements:
|
39
41
|
- - ">="
|
40
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
41
44
|
segments:
|
42
45
|
- 0
|
43
46
|
version: "0"
|
@@ -57,10 +60,10 @@ files:
|
|
57
60
|
- .rspec
|
58
61
|
- Gemfile
|
59
62
|
- Gemfile.lock
|
63
|
+
- README.md
|
60
64
|
- Rakefile
|
61
65
|
- levenshteinish.gemspec
|
62
66
|
- lib/levenshteinish.rb
|
63
|
-
- lib/levenshteinish/version.rb
|
64
67
|
- spec/levenshteinish_spec.rb
|
65
68
|
- spec/spec_helper.rb
|
66
69
|
has_rdoc: true
|
@@ -77,6 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
80
|
requirements:
|
78
81
|
- - ">="
|
79
82
|
- !ruby/object:Gem::Version
|
83
|
+
hash: 3
|
80
84
|
segments:
|
81
85
|
- 0
|
82
86
|
version: "0"
|
@@ -85,13 +89,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
89
|
requirements:
|
86
90
|
- - ">="
|
87
91
|
- !ruby/object:Gem::Version
|
92
|
+
hash: 3
|
88
93
|
segments:
|
89
94
|
- 0
|
90
95
|
version: "0"
|
91
96
|
requirements: []
|
92
97
|
|
93
98
|
rubyforge_project: levenshteinish
|
94
|
-
rubygems_version: 1.
|
99
|
+
rubygems_version: 1.5.0
|
95
100
|
signing_key:
|
96
101
|
specification_version: 3
|
97
102
|
summary: An implementation of levenshteinish
|