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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 074a2faf9dcbc567be92150a30f31369cb6f364cae879916c3a7afdfd83ee895
4
- data.tar.gz: a634f17778e1b5a474067b821d424a29bd31098d646d084453de979a06e7e39d
3
+ metadata.gz: 972f513f100d1c990c7d7afc7e47cec23c39b5fe0a45aad44857840deb95c4b7
4
+ data.tar.gz: 548de21f56d2ce92e835295372c2d5f27db74de28ddb1bbe344d5c77f5785646
5
5
  SHA512:
6
- metadata.gz: a905906da32784a982dd08d937c18f976dca60053d91b7b87337e6afe355d5b11a1c2d3bffd41d2381b7cf0dfaed732ef0ef67ed332c462d6225d0e75434bf0e
7
- data.tar.gz: 600387cb98a67aa7de9dd0c8708e50985f91478c158ce5939992fd3dd8a4e13231d955de16ea65b74075f88e820b9674490093e833acbcc01788edc604fbc678
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(size_t argc, VALUE *argv, VALUE self);
8
- VALUE rb_jaro_distance(size_t argc, VALUE *argv, VALUE self);
9
- VALUE distance(size_t argc, VALUE *argv, VALUE self,
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(size_t argc, VALUE *argv, VALUE self,
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((int32_t)argc, argv, "2:", &s1, &s2, &opt);
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(size_t argc, VALUE *argv, VALUE self) {
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(size_t argc, VALUE *argv, VALUE self) {
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
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JaroWinkler
4
- VERSION = '1.5.4'
4
+ VERSION = '1.5.5'
5
5
  end
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
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: 2019-10-30 00:00:00.000000000 Z
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: '12.0'
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: '12.0'
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
- post_install_message:
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.0.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.