jaro_winkler 1.5.5-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: '04474685e3a75212e3ede7aff7f52ff6655aabc4edb4ea0caa34779442746ce4'
4
- data.tar.gz: ff41b700aa18f10a4c509021312bd1b1e29afbaf1adbc59874050b5f54b9e541
3
+ metadata.gz: 013d198a04a404bcd9ebd6fc422f1b98f33bb8c146308c666e8cbe37711a8c60
4
+ data.tar.gz: 2f81b35310d4005582ef164e9dd35c9202a289be384d3c9df2869a91a913aa97
5
5
  SHA512:
6
- metadata.gz: 92f225b40f6cfc6254cd079016c680c69f55e1df404aff19faf26a84596127c00dd1cfb0e8e3c0b27596b7bb34fb85377dd3755393512473b397722892cfd855
7
- data.tar.gz: 136e419c063bfb2d8cb7e38e45ad73427b0d1634d856b7eba04e9adabfebab2d9dab1fcad2b57c665439719583e6064d1f32a62bf30b79eda4fd7fd195fbb580
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.5'
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.5
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-22 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.5/CHANGELOG.md
91
- documentation_uri: https://www.rubydoc.info/gems/jaro_winkler/1.5.5
92
- source_code_uri: https://github.com/tonytonyjan/jaro_winkler/tree/v1.5.5
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.12
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