jaro_winkler 1.5.4 → 1.5.6
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 +12 -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: ce3a01db50ee096efbb0ba17e8d502d794f928d87543efc96b0baf221bf5ef72
|
4
|
+
data.tar.gz: 4287e3c443cc9d8d9e4a039066b73451ba2ded1d5345a9b7bbff0aef2827defc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed23759c3bbe6c43d731281e7d0996d4c401784d72882041ff422e75d58637eebebad790b76ec41d7070176e0d0183d950216454f8b565ef5f6092d08829baf7
|
7
|
+
data.tar.gz: 17b690a9b9b990879bc2056942b2cb00aa5df6f29c65a6f199aa68edb0b2235a9b44c1981c18e2bdc011593a8ce5d65583103e14d4f3819a4dff24b4dce8a3e7
|
@@ -4,14 +4,19 @@
|
|
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 *));
|
13
13
|
|
14
14
|
void Init_jaro_winkler_ext(void) {
|
15
|
+
|
16
|
+
#ifdef HAVE_RB_EXT_RACTOR_SAFE
|
17
|
+
rb_ext_ractor_safe(true);
|
18
|
+
#endif
|
19
|
+
|
15
20
|
rb_mJaroWinkler = rb_define_module("JaroWinkler");
|
16
21
|
rb_eError = rb_define_class_under(rb_mJaroWinkler, "Error", rb_eRuntimeError);
|
17
22
|
rb_eInvalidWeightError =
|
@@ -22,13 +27,13 @@ void Init_jaro_winkler_ext(void) {
|
|
22
27
|
-1);
|
23
28
|
}
|
24
29
|
|
25
|
-
VALUE distance(
|
30
|
+
VALUE distance(int argc, VALUE *argv, VALUE self,
|
26
31
|
double (*distance_fn)(uint32_t *codepoints1, size_t len1,
|
27
32
|
uint32_t *codepoints2, size_t len2,
|
28
33
|
Options *)) {
|
29
34
|
VALUE s1, s2, opt;
|
30
35
|
|
31
|
-
rb_scan_args(
|
36
|
+
rb_scan_args(argc, argv, "2:", &s1, &s2, &opt);
|
32
37
|
|
33
38
|
Check_Type(s1, T_STRING);
|
34
39
|
Check_Type(s2, T_STRING);
|
@@ -63,10 +68,10 @@ VALUE distance(size_t argc, VALUE *argv, VALUE self,
|
|
63
68
|
return ret;
|
64
69
|
}
|
65
70
|
|
66
|
-
VALUE rb_jaro_distance(
|
71
|
+
VALUE rb_jaro_distance(int argc, VALUE *argv, VALUE self) {
|
67
72
|
return distance(argc, argv, self, jaro_distance_from_codes);
|
68
73
|
}
|
69
74
|
|
70
|
-
VALUE rb_jaro_winkler_distance(
|
75
|
+
VALUE rb_jaro_winkler_distance(int argc, VALUE *argv, VALUE self) {
|
71
76
|
return distance(argc, argv, self, jaro_winkler_distance_from_codes);
|
72
77
|
}
|
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.6
|
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-29 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.6/CHANGELOG.md
|
86
|
+
documentation_uri: https://www.rubydoc.info/gems/jaro_winkler/1.5.6
|
87
|
+
source_code_uri: https://github.com/tonytonyjan/jaro_winkler/tree/v1.5.6
|
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.13
|
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.
|