jaro_winkler 1.5.6-java → 1.6.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jaro_winkler/jaro_winkler_pure.rb +10 -0
- data/lib/jaro_winkler/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 013d198a04a404bcd9ebd6fc422f1b98f33bb8c146308c666e8cbe37711a8c60
|
4
|
+
data.tar.gz: 2f81b35310d4005582ef164e9dd35c9202a289be384d3c9df2869a91a913aa97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e132802f849969f51e706a2ab913eb87429bfab8cb20e88dac18fe776ad03d112b7b1b9fb34f742573df108dd449e43c90cac68fedc640c4bfa465bc5ccbe865
|
7
|
+
data.tar.gz: 92284f1a97d949d208ff3e82651e20f255c3262d48424b0307e1db90be678287ef2becc31b96132db82f8b3dff0905aee807317cd5de811726d181766211b26f
|
@@ -14,11 +14,21 @@ module JaroWinkler
|
|
14
14
|
|
15
15
|
class << self
|
16
16
|
def distance(str1, str2, options = {})
|
17
|
+
warn("JaroWinkler.distance is deprecated. Use JaroWinkler.similarity instead.")
|
18
|
+
similarity(str1, str2, options)
|
19
|
+
end
|
20
|
+
|
21
|
+
def similarity(str1, str2, options = {})
|
17
22
|
validate!(str1, str2)
|
18
23
|
_distance str1.codepoints.to_a, str2.codepoints.to_a, options
|
19
24
|
end
|
20
25
|
|
21
26
|
def jaro_distance(str1, str2, options = {})
|
27
|
+
warn("JaroWinkler.jaro_distance is deprecated. Use JaroWinkler.jaro_similarity instead.")
|
28
|
+
jaro_similarity(str1, str2, options)
|
29
|
+
end
|
30
|
+
|
31
|
+
def jaro_similarity(str1, str2, options = {})
|
22
32
|
validate!(str1, str2)
|
23
33
|
_jaro_distance str1.codepoints.to_a, str2.codepoints.to_a, options
|
24
34
|
end
|
data/lib/jaro_winkler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jaro_winkler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jian Weihang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,9 +87,9 @@ licenses:
|
|
87
87
|
- MIT
|
88
88
|
metadata:
|
89
89
|
bug_tracker_uri: https://github.com/tonytonyjan/jaro_winkler/issues
|
90
|
-
changelog_uri: https://github.com/tonytonyjan/jaro_winkler/blob/v1.
|
91
|
-
documentation_uri: https://www.rubydoc.info/gems/jaro_winkler/1.
|
92
|
-
source_code_uri: https://github.com/tonytonyjan/jaro_winkler/tree/v1.
|
90
|
+
changelog_uri: https://github.com/tonytonyjan/jaro_winkler/blob/v1.6.0/CHANGELOG.md
|
91
|
+
documentation_uri: https://www.rubydoc.info/gems/jaro_winkler/1.6.0
|
92
|
+
source_code_uri: https://github.com/tonytonyjan/jaro_winkler/tree/v1.6.0
|
93
93
|
post_install_message:
|
94
94
|
rdoc_options: []
|
95
95
|
require_paths:
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
108
|
+
rubygems_version: 3.5.9
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: An implementation of Jaro-Winkler distance algorithm written \ in C extension
|