levenshteinish 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +10 -0
- data/Gemfile.lock +4 -2
- data/LICENSE +19 -0
- data/README.md +11 -8
- data/levenshteinish.gemspec +3 -2
- metadata +49 -51
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b22de56be505cf6c21c8ec9c0c0fb0a1a34cd642
|
4
|
+
data.tar.gz: a379fd934db2029e080b8469c215ecff55150aa6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1523194cb9056c347e73837eaa74e591798e9b9baf4932e366851553a97e9b6b0b7538a48bc7e2f4f3c35ec877eb4a6ae479076b4d8b5b7b930c6da41a21bc6c
|
7
|
+
data.tar.gz: 5b20c164d4f77356ced6fd67a0a29f8ba993edb11d748ca05fc4d9966deed351b30b61111a601bb8957a93a0b75e233c578a4fe3a718c8dcf8bc73dde402cb86
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2011 Linus Oleander
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,24 +1,27 @@
|
|
1
1
|
# Levenshteinish
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem](https://img.shields.io/gem/dt/levenshteinish.svg)](https://rubygems.org/gems/levenshteinish) [![Travis](https://img.shields.io/travis/oleander/levenshteinish.svg)](https://travis-ci.org/oleander/levenshteinish) [![My personal webpage](https://img.shields.io/badge/me-oleander.io-blue.svg)](http://oleander.io)
|
4
|
+
|
5
|
+
An _average distance_ implementation of the [hintable_levenshtein](https://github.com/joshbuddy/hintable_levenshtein) gem.
|
4
6
|
|
5
7
|
## How to use
|
6
8
|
|
7
|
-
|
8
|
-
Levenshtein.distance("first", "last")
|
9
|
-
|
10
|
-
````
|
9
|
+
```ruby
|
10
|
+
Levenshtein.distance("first", "last") # => 0.6
|
11
|
+
```
|
11
12
|
|
12
13
|
The `distance` method returns a value between `0.0` and `1.0`, where `0.0` is spot on.
|
13
14
|
|
14
15
|
## How do install
|
15
16
|
|
16
|
-
|
17
|
+
```
|
18
|
+
[sudo] gem install levenshteinish
|
19
|
+
```
|
17
20
|
|
18
21
|
## Requirements
|
19
22
|
|
20
|
-
|
23
|
+
_Levenshteinish_ is tested on _OS X 10.6.7_ using Ruby _1.8.7_, _1.9.2_.
|
21
24
|
|
22
25
|
## License
|
23
26
|
|
24
|
-
|
27
|
+
_Levenshteinish_ is released under the _MIT license_. See `LICENSE` file for details.
|
data/levenshteinish.gemspec
CHANGED
@@ -3,7 +3,8 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "levenshteinish"
|
6
|
-
s.version = "0.0
|
6
|
+
s.version = "1.0.0"
|
7
|
+
s.license = "MIT"
|
7
8
|
s.platform = Gem::Platform::RUBY
|
8
9
|
s.authors = ["Linus Oleander"]
|
9
10
|
s.email = ["linus@oleander.nu"]
|
@@ -17,7 +18,7 @@ Gem::Specification.new do |s|
|
|
17
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
20
|
s.require_paths = ["lib"]
|
20
|
-
|
21
|
+
|
21
22
|
s.add_dependency('hintable_levenshtein')
|
22
23
|
s.add_development_dependency('rspec')
|
23
24
|
end
|
metadata
CHANGED
@@ -1,88 +1,86 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: levenshteinish
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Linus Oleander
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2017-01-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
17
14
|
name: hintable_levenshtein
|
18
|
-
|
19
|
-
|
20
|
-
none: false
|
21
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
22
17
|
- - ">="
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
25
20
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec
|
29
21
|
prerelease: false
|
30
|
-
|
31
|
-
|
32
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
33
31
|
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version:
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
36
34
|
type: :development
|
37
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
38
41
|
description: An average distance implementation of the hintable_levenshtein gem.
|
39
|
-
email:
|
42
|
+
email:
|
40
43
|
- linus@oleander.nu
|
41
44
|
executables: []
|
42
|
-
|
43
45
|
extensions: []
|
44
|
-
|
45
46
|
extra_rdoc_files: []
|
46
|
-
|
47
|
-
|
48
|
-
- .
|
49
|
-
- .
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- ".rspec"
|
50
|
+
- ".travis.yml"
|
50
51
|
- Gemfile
|
51
52
|
- Gemfile.lock
|
53
|
+
- LICENSE
|
52
54
|
- README.md
|
53
55
|
- Rakefile
|
54
56
|
- levenshteinish.gemspec
|
55
57
|
- lib/levenshteinish.rb
|
56
58
|
- spec/levenshteinish_spec.rb
|
57
59
|
- spec/spec_helper.rb
|
58
|
-
has_rdoc: true
|
59
60
|
homepage: https://github.com/oleander/levenshteinish
|
60
|
-
licenses:
|
61
|
-
|
61
|
+
licenses:
|
62
|
+
- MIT
|
63
|
+
metadata: {}
|
62
64
|
post_install_message:
|
63
65
|
rdoc_options: []
|
64
|
-
|
65
|
-
require_paths:
|
66
|
+
require_paths:
|
66
67
|
- lib
|
67
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
-
|
69
|
-
requirements:
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
70
|
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version:
|
73
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
-
|
75
|
-
requirements:
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
76
75
|
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
79
78
|
requirements: []
|
80
|
-
|
81
79
|
rubyforge_project: levenshteinish
|
82
|
-
rubygems_version:
|
80
|
+
rubygems_version: 2.5.1
|
83
81
|
signing_key:
|
84
|
-
specification_version:
|
82
|
+
specification_version: 4
|
85
83
|
summary: An average distance implementation of the hintable_levenshtein gem
|
86
|
-
test_files:
|
84
|
+
test_files:
|
87
85
|
- spec/levenshteinish_spec.rb
|
88
86
|
- spec/spec_helper.rb
|