jaro_winkler 1.5.3 → 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: 80aee05e0e58240f65bccaa6cb2c8a6d05213ce3b0f7a09bc1310064c60799bb
4
- data.tar.gz: 00516b8314041d5842ace57d3cf4a61c7a96f503584fbb437c47e93e026d9724
3
+ metadata.gz: 972f513f100d1c990c7d7afc7e47cec23c39b5fe0a45aad44857840deb95c4b7
4
+ data.tar.gz: 548de21f56d2ce92e835295372c2d5f27db74de28ddb1bbe344d5c77f5785646
5
5
  SHA512:
6
- metadata.gz: 3738cffc4027c4106cb07c967d276fb2de19941cb8b157dd0483db3f163d48eda4672c7337a372707d7a2728d052540af0f936fb3db7bc09285d373d4105216b
7
- data.tar.gz: b8bde2905cfee37cd6fae5c6666eee0addd21c5f75281040b3d38a5a3d438671b9a074014a34967fa15013d27f60e3b4add3b6f7382812a48d7c24ca507b38ac
6
+ metadata.gz: 58bf827f4b7bfb2c92f9b11d4d4549b897c5b2ba1ebe282913f9c081efa986d0e6d413cdc45a70f351164d502deaefd09f2b8fa0d7b83897ca3b588b396eaa8c
7
+ data.tar.gz: c2fee972adbbc02fa39167c09461ea17f80ef05ec6f8dec3d7f729d6ddaca322a284665dbdc94739a610402c961c6e00f4894c0ccf45d46c9184a42d97cd6f35
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Jian Weihang
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.
@@ -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.3'
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.3
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-06-18 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
@@ -78,6 +64,7 @@ extensions:
78
64
  - ext/jaro_winkler/extconf.rb
79
65
  extra_rdoc_files: []
80
66
  files:
67
+ - LICENSE.txt
81
68
  - ext/jaro_winkler/adj_matrix.c
82
69
  - ext/jaro_winkler/adj_matrix.h
83
70
  - ext/jaro_winkler/codepoints.c
@@ -93,8 +80,12 @@ files:
93
80
  homepage: https://github.com/tonytonyjan/jaro_winkler
94
81
  licenses:
95
82
  - MIT
96
- metadata: {}
97
- 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:
98
89
  rdoc_options: []
99
90
  require_paths:
100
91
  - lib
@@ -109,8 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
100
  - !ruby/object:Gem::Version
110
101
  version: '0'
111
102
  requirements: []
112
- rubygems_version: 3.0.2
113
- signing_key:
103
+ rubygems_version: 3.4.12
104
+ signing_key:
114
105
  specification_version: 4
115
106
  summary: An implementation of Jaro-Winkler distance algorithm written \ in C extension
116
107
  which supports any kind of string encoding.