vladlev 1.0.4-java → 1.2.1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/LICENSE +20 -0
- data/LICENSE.txt +22 -0
- data/Makefile +24 -0
- data/lib/vladlev/version.rb +1 -1
- data/lib/vladlev.rb +1 -1
- data/vladlev.gemspec +1 -0
- metadata +20 -21
- data/lib/levenshtein.bundle +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 63e5a177a7c36f656e943b8e2ddf42db3b1d0dba5a79777d8f271688a5570889
|
|
4
|
+
data.tar.gz: 590305e41199c535ff2374cf45fdc946a7c475fce27eb42422503a5467cff237
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a69738403c64ed038b172379906f2f64fc67aec65268205728b444bd7290f683bb91696b79701e5746eb3679925d049b84c1ce4b4ec380b7e4dcd83df21621dd
|
|
7
|
+
data.tar.gz: 2e509bbd2ba329be647fca857c9d697e8cff29ec5fe23e689a5526714e49cc7d8fb34ece61f01e7796d0600e91b2b6e67c4cfa4a164c99603bbc9b4469fa182f
|
data/.gitignore
CHANGED
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2013 Brian
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2013 Brian Stien
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Makefile
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Define the default action when you just run 'make'
|
|
2
|
+
all: compile test
|
|
3
|
+
|
|
4
|
+
# Compile the C extension using the existing Rake task
|
|
5
|
+
compile:
|
|
6
|
+
bundle exec rake compile
|
|
7
|
+
|
|
8
|
+
# Run the test suite
|
|
9
|
+
test:
|
|
10
|
+
bundle exec rake spec
|
|
11
|
+
|
|
12
|
+
# Clean compiled artifacts
|
|
13
|
+
clean:
|
|
14
|
+
bundle exec rake clean
|
|
15
|
+
|
|
16
|
+
# Remove all generated files (more aggressive than clean)
|
|
17
|
+
clobber:
|
|
18
|
+
bundle exec rake clobber
|
|
19
|
+
|
|
20
|
+
# Build the gem package
|
|
21
|
+
build:
|
|
22
|
+
gem build vladlev.gemspec
|
|
23
|
+
|
|
24
|
+
.PHONY: all compile test clean clobber build
|
data/lib/vladlev/version.rb
CHANGED
data/lib/vladlev.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Vladlev
|
|
2
2
|
def self.file_fallback_path(*files)
|
|
3
|
-
files.map { |file| File.join(File.dirname(__FILE__), file) }.detect { |file| File.
|
|
3
|
+
files.map { |file| File.join(File.dirname(__FILE__), file) }.detect { |file| File.exist?(file) }
|
|
4
4
|
end
|
|
5
5
|
|
|
6
6
|
JRUBY_NATIVE = RUBY_PLATFORM =~ /java/ && file_fallback_path('levenshtein.jar')
|
data/vladlev.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,94 +1,93 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vladlev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Stien
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rake
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
18
|
version: '0'
|
|
19
|
-
name: rake
|
|
20
|
-
prerelease: false
|
|
21
19
|
type: :development
|
|
20
|
+
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: rspec
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: '0'
|
|
33
|
-
name: rspec
|
|
34
|
-
prerelease: false
|
|
35
33
|
type: :development
|
|
34
|
+
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '0'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: pry
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '0'
|
|
47
|
-
name: pry
|
|
48
|
-
prerelease: false
|
|
49
47
|
type: :development
|
|
48
|
+
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - ">="
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
53
|
version: '0'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: geminabox
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - ">="
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '0'
|
|
61
|
-
name: geminabox
|
|
62
|
-
prerelease: false
|
|
63
61
|
type: :development
|
|
62
|
+
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - ">="
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
67
|
version: '0'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: simplecov
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: '0'
|
|
75
|
-
name: simplecov
|
|
76
|
-
prerelease: false
|
|
77
75
|
type: :development
|
|
76
|
+
prerelease: false
|
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
78
|
requirements:
|
|
80
79
|
- - ">="
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: '0'
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: rake-compiler
|
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - ">="
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: '0'
|
|
89
|
-
name: rake-compiler
|
|
90
|
-
prerelease: false
|
|
91
89
|
type: :development
|
|
90
|
+
prerelease: false
|
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
92
|
requirements:
|
|
94
93
|
- - ">="
|
|
@@ -104,13 +103,15 @@ files:
|
|
|
104
103
|
- ".rspec"
|
|
105
104
|
- ".travis.yml"
|
|
106
105
|
- Gemfile
|
|
106
|
+
- LICENSE
|
|
107
|
+
- LICENSE.txt
|
|
108
|
+
- Makefile
|
|
107
109
|
- README.md
|
|
108
110
|
- Rakefile
|
|
109
111
|
- ext/.DS_Store
|
|
110
112
|
- ext/levenshtein/LevenshteinDistance.java
|
|
111
113
|
- ext/levenshtein/extconf.rb
|
|
112
114
|
- ext/levenshtein/levenshtein.c
|
|
113
|
-
- lib/levenshtein.bundle
|
|
114
115
|
- lib/levenshtein.jar
|
|
115
116
|
- lib/vladlev.rb
|
|
116
117
|
- lib/vladlev/levenshtein.rb
|
|
@@ -119,9 +120,9 @@ files:
|
|
|
119
120
|
- spec/spec_helper.rb
|
|
120
121
|
- vladlev.gemspec
|
|
121
122
|
homepage: https://github.com/mxenabled/vladlev
|
|
122
|
-
licenses:
|
|
123
|
+
licenses:
|
|
124
|
+
- MIT
|
|
123
125
|
metadata: {}
|
|
124
|
-
post_install_message:
|
|
125
126
|
rdoc_options: []
|
|
126
127
|
require_paths:
|
|
127
128
|
- lib
|
|
@@ -136,9 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
136
137
|
- !ruby/object:Gem::Version
|
|
137
138
|
version: '0'
|
|
138
139
|
requirements: []
|
|
139
|
-
|
|
140
|
-
rubygems_version: 2.6.8
|
|
141
|
-
signing_key:
|
|
140
|
+
rubygems_version: 4.0.10
|
|
142
141
|
specification_version: 4
|
|
143
142
|
summary: Levenshtein matching algorithm for ruby using C
|
|
144
143
|
test_files:
|
data/lib/levenshtein.bundle
DELETED
|
Binary file
|