jaro_winkler 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/jaro_winkler/jaro_winkler.c +7 -7
- data/lib/jaro_winkler/version.rb +1 -1
- metadata +13 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 972f513f100d1c990c7d7afc7e47cec23c39b5fe0a45aad44857840deb95c4b7
|
4
|
+
data.tar.gz: 548de21f56d2ce92e835295372c2d5f27db74de28ddb1bbe344d5c77f5785646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58bf827f4b7bfb2c92f9b11d4d4549b897c5b2ba1ebe282913f9c081efa986d0e6d413cdc45a70f351164d502deaefd09f2b8fa0d7b83897ca3b588b396eaa8c
|
7
|
+
data.tar.gz: c2fee972adbbc02fa39167c09461ea17f80ef05ec6f8dec3d7f729d6ddaca322a284665dbdc94739a610402c961c6e00f4894c0ccf45d46c9184a42d97cd6f35
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
VALUE rb_mJaroWinkler, rb_eError, rb_eInvalidWeightError;
|
6
6
|
|
7
|
-
VALUE rb_jaro_winkler_distance(
|
8
|
-
VALUE rb_jaro_distance(
|
9
|
-
VALUE distance(
|
7
|
+
VALUE rb_jaro_winkler_distance(int argc, VALUE *argv, VALUE self);
|
8
|
+
VALUE rb_jaro_distance(int argc, VALUE *argv, VALUE self);
|
9
|
+
VALUE distance(int argc, VALUE *argv, VALUE self,
|
10
10
|
double (*distance_fn)(uint32_t *codepoints1, size_t len1,
|
11
11
|
uint32_t *codepoints2, size_t len2,
|
12
12
|
Options *));
|
@@ -22,13 +22,13 @@ void Init_jaro_winkler_ext(void) {
|
|
22
22
|
-1);
|
23
23
|
}
|
24
24
|
|
25
|
-
VALUE distance(
|
25
|
+
VALUE distance(int argc, VALUE *argv, VALUE self,
|
26
26
|
double (*distance_fn)(uint32_t *codepoints1, size_t len1,
|
27
27
|
uint32_t *codepoints2, size_t len2,
|
28
28
|
Options *)) {
|
29
29
|
VALUE s1, s2, opt;
|
30
30
|
|
31
|
-
rb_scan_args(
|
31
|
+
rb_scan_args(argc, argv, "2:", &s1, &s2, &opt);
|
32
32
|
|
33
33
|
Check_Type(s1, T_STRING);
|
34
34
|
Check_Type(s2, T_STRING);
|
@@ -63,10 +63,10 @@ VALUE distance(size_t argc, VALUE *argv, VALUE self,
|
|
63
63
|
return ret;
|
64
64
|
}
|
65
65
|
|
66
|
-
VALUE rb_jaro_distance(
|
66
|
+
VALUE rb_jaro_distance(int argc, VALUE *argv, VALUE self) {
|
67
67
|
return distance(argc, argv, self, jaro_distance_from_codes);
|
68
68
|
}
|
69
69
|
|
70
|
-
VALUE rb_jaro_winkler_distance(
|
70
|
+
VALUE rb_jaro_winkler_distance(int argc, VALUE *argv, VALUE self) {
|
71
71
|
return distance(argc, argv, self, jaro_winkler_distance_from_codes);
|
72
72
|
}
|
data/lib/jaro_winkler/version.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jaro_winkler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jian Weihang
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.7'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.7'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rake
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
19
|
+
version: '13.0'
|
34
20
|
type: :development
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
26
|
+
version: '13.0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake-compiler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,8 +80,12 @@ files:
|
|
94
80
|
homepage: https://github.com/tonytonyjan/jaro_winkler
|
95
81
|
licenses:
|
96
82
|
- MIT
|
97
|
-
metadata:
|
98
|
-
|
83
|
+
metadata:
|
84
|
+
bug_tracker_uri: https://github.com/tonytonyjan/jaro_winkler/issues
|
85
|
+
changelog_uri: https://github.com/tonytonyjan/jaro_winkler/blob/v1.5.5/CHANGELOG.md
|
86
|
+
documentation_uri: https://www.rubydoc.info/gems/jaro_winkler/1.5.5
|
87
|
+
source_code_uri: https://github.com/tonytonyjan/jaro_winkler/tree/v1.5.5
|
88
|
+
post_install_message:
|
99
89
|
rdoc_options: []
|
100
90
|
require_paths:
|
101
91
|
- lib
|
@@ -110,8 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
100
|
- !ruby/object:Gem::Version
|
111
101
|
version: '0'
|
112
102
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
114
|
-
signing_key:
|
103
|
+
rubygems_version: 3.4.12
|
104
|
+
signing_key:
|
115
105
|
specification_version: 4
|
116
106
|
summary: An implementation of Jaro-Winkler distance algorithm written \ in C extension
|
117
107
|
which supports any kind of string encoding.
|