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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87ae22a24f867e520b9895c52fd18696af73fdf15a08aabb740d3a6cbc78d237
4
- data.tar.gz: 83667824f0eb42febeb54c54a2ab0c4da8262e524c059cfc82124203ed46f1ae
3
+ metadata.gz: 013d198a04a404bcd9ebd6fc422f1b98f33bb8c146308c666e8cbe37711a8c60
4
+ data.tar.gz: 2f81b35310d4005582ef164e9dd35c9202a289be384d3c9df2869a91a913aa97
5
5
  SHA512:
6
- metadata.gz: a77adfeb1bc74c539960168bdbcb239076b298ff8692a65ba7b5a69a1247765458519f7ba7fcc7f93ca02b3feb0324b283de2d25356b4f4d4be7493d51f6f719
7
- data.tar.gz: 2b48dbd587edd158194951be7f0f63499a0e3b47f337cb327878672c9c8af660dd9c93c80b79bb7fe7f9ae9d47e989fb48f3ee6d8436c1f3a13c5881a59895a9
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JaroWinkler
4
- VERSION = '1.5.6'
4
+ VERSION = '1.6.0'
5
5
  end
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.5.6
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: 2023-05-29 00:00:00.000000000 Z
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.5.6/CHANGELOG.md
91
- documentation_uri: https://www.rubydoc.info/gems/jaro_winkler/1.5.6
92
- source_code_uri: https://github.com/tonytonyjan/jaro_winkler/tree/v1.5.6
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.4.13
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