amatch 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 588c17ff90e55b20273ef43b5b492e53e6792e2159115f68cd5c51ae587e7419
4
- data.tar.gz: 329159a6723b97a7f4d2faa0a5e580f1e812156d7c391f0e580a918b2df84d22
3
+ metadata.gz: dc09a597846ffefb73bd3ec19c95dc51cc4d48f76e78082dbc45dcb0d92710b9
4
+ data.tar.gz: d17ce5ead9e01625991ae2a169734209fa5d69ecdbe1af77d05621a7d9290cc3
5
5
  SHA512:
6
- metadata.gz: 8cb9a9986c94a1b0cf1ec84be77d5aa6d53e454843a92334c99a7b2103bd75e03804c539555aeb5b66c6332f44e2bb21053b612f87c62ab0eeddd63f2eeb441f
7
- data.tar.gz: e656d288645b309eac412b65e3126843921c248dd56bd3ece8cdc9e7d619a1744bed01274183d08708c92cb386f099b7be6f52c497fb779286f0d6e4b83a6d44
6
+ metadata.gz: 432504036ac797eb82f927154c7851bc2c9ece721ac5e80d0eaa7eed690c9196c5a703b2ae2cde7e6c72f2f6013ac0ea5f3e565d4d99e2d8fc6fc697d2400d85
7
+ data.tar.gz: 239233612af4b2bdf1ad04aae68611609fd3c56f2d517316415ea0f8c0f7ba04fe3664535666ca44b3d5d5b7cc52e74bd09ec5a7ea30896146b9105c6b36bf9c
data/.utilsrc ADDED
@@ -0,0 +1,24 @@
1
+ # vim: set ft=ruby:
2
+
3
+ search do
4
+ prune_dirs /\A(\.svn|\.git|CVS|tmp|tags|coverage|pkg|doc|\.yardoc)\z/
5
+ skip_files /(\A\.|\.sw[pon]\z|\.(log|fnm|jpg|jpeg|png|pdf|svg)\z|tags|~\z)/i
6
+ end
7
+
8
+ discover do
9
+ prune_dirs /\A(\.svn|\.git|CVS|tmp|tags|coverage|pkg|doc|\.yardoc)\z/
10
+ skip_files /(\A\.|\.sw[pon]\z|\.log\z|~\z)/
11
+ end
12
+
13
+ strip_spaces do
14
+ prune_dirs /\A(\..*|CVS|pkg|doc|\.yardoc)\z/
15
+ skip_files /(\A\.|\.sw[pon]\z|\.log\z|~\z)/
16
+ end
17
+
18
+ probe do
19
+ test_framework :'test-unit'
20
+ end
21
+
22
+ ssh_tunnel do
23
+ terminal_multiplexer :tmux
24
+ end
data/CHANGES.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changes
2
2
 
3
+ ## 2025-09-11 v0.5.0
4
+
5
+ - Added `yaml-dev` dependency and installed `bundler` and `gem_hadar` gems in `.all_images.yml`
6
+ - Modified script section in `.all_images.yml` to use `bundle update` with parallel installation
7
+ - Changed `fail_fast` setting in `.all_images.yml` from `yes` to `true`
8
+ - Added `ext/amatch_ext*` to `.gitignore` and updated `Rakefile` to ignore these files during packaging
9
+ - Added `coverage` to `.gitignore` and `Rakefile` ignore lists
10
+ - Updated `tins` dependency from `~>1.0` to `~>1`
11
+ - Added `debug` gem as a regular dependency
12
+ - Added `simplecov` as a development dependency
13
+ - Created `.utilsrc` configuration file for `utilrb` gem with specified settings
14
+ - Replaced individual test requires with `require 'test_helper'` in all test files
15
+ - Created `tests/test_helper.rb` to centralize test setup including SimpleCov and debug loading
16
+ - The `gem_hadar/simplecov` gem is used for code coverage reporting
17
+
3
18
  ## 2025-07-10 v0.4.2
4
19
 
5
20
  * Single-character identical strings now return a similarity score of `1.0`.
data/Rakefile CHANGED
@@ -8,24 +8,29 @@ GemHadar do
8
8
  email 'flori@ping.de'
9
9
  homepage "http://github.com/flori/#{name}"
10
10
  summary 'Approximate String Matching library'
11
- description <<EOT
12
- Amatch is a library for approximate string matching and searching in strings.
13
- Several algorithms can be used to do this, and it's also possible to compute a
14
- similarity metric number between 0.0 and 1.0 for two given strings.
15
- EOT
11
+ description <<~EOT
12
+ Amatch is a library for approximate string matching and searching in strings.
13
+ Several algorithms can be used to do this, and it's also possible to compute a
14
+ similarity metric number between 0.0 and 1.0 for two given strings.
15
+ EOT
16
16
  executables << 'agrep' << 'dupfind'
17
17
  bindir 'bin'
18
18
  test_dir 'tests'
19
19
  ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.AppleDouble', '.rbx',
20
- 'Makefile', '*.bundle', '*.o', '*.so'
20
+ 'Makefile', '*.bundle', '*.o', '*.so', 'coverage', 'ext/amatch_ext*'
21
21
  package_ignore '.all_images.yml', '.gitignore', 'VERSION'
22
22
  title "#{name.camelize} - Approximate Matching"
23
23
  readme 'README.md'
24
24
  require_paths %w[lib ext]
25
- dependency 'tins', '~>1.0'
25
+
26
+ required_ruby_version '>=2.4'
27
+
28
+ dependency 'tins', '~>1'
26
29
  dependency 'mize'
30
+ dependency 'debug'
27
31
  development_dependency 'test-unit', '~>3.0'
28
32
  development_dependency 'all_images'
29
- required_ruby_version '>=2.4'
33
+ development_dependency 'simplecov'
34
+
30
35
  licenses << 'Apache-2.0'
31
36
  end
data/amatch.gemspec CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  module Amatch
2
2
  # Amatch version
3
- VERSION = '0.4.2'
3
+ VERSION = '0.5.0'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'amatch'
1
+ require 'test_helper'
3
2
 
4
3
  class TestDamerauLevenshtein < Test::Unit::TestCase
5
4
  include Amatch
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'amatch'
1
+ require 'test_helper'
3
2
 
4
3
  class TestHamming < Test::Unit::TestCase
5
4
  include Amatch
@@ -0,0 +1,8 @@
1
+ require 'gem_hadar/simplecov'
2
+ GemHadar::SimpleCov.start
3
+ begin
4
+ require 'debug'
5
+ rescue LoadError
6
+ end
7
+ require 'test/unit'
8
+ require 'amatch'
data/tests/test_jaro.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'amatch'
1
+ require 'test_helper'
3
2
 
4
3
  class TestJaro < Test::Unit::TestCase
5
4
  include Amatch
@@ -1,5 +1,5 @@
1
1
  require 'test/unit'
2
- require 'amatch'
2
+ require 'test_helper'
3
3
 
4
4
  class TestJaroWinkler < Test::Unit::TestCase
5
5
  include Amatch
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'amatch'
1
+ require 'test_helper'
3
2
 
4
3
  class TestLevenshtein < Test::Unit::TestCase
5
4
  include Amatch
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'amatch'
1
+ require 'test_helper'
3
2
 
4
3
  class TestLongestSubsequence < Test::Unit::TestCase
5
4
  include Amatch
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'amatch'
1
+ require 'test_helper'
3
2
 
4
3
  class TestLongestSubstring < Test::Unit::TestCase
5
4
  include Amatch
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'amatch'
1
+ require 'test_helper'
3
2
 
4
3
  class TestPairDistance < Test::Unit::TestCase
5
4
  include Amatch
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'amatch'
1
+ require 'test_helper'
3
2
 
4
3
  class TestSellers < Test::Unit::TestCase
5
4
  include Amatch
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.20'
18
+ version: '2.4'
19
19
  type: :development
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.20'
25
+ version: '2.4'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: test-unit
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -51,20 +51,34 @@ dependencies:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: simplecov
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
54
68
  - !ruby/object:Gem::Dependency
55
69
  name: tins
56
70
  requirement: !ruby/object:Gem::Requirement
57
71
  requirements:
58
72
  - - "~>"
59
73
  - !ruby/object:Gem::Version
60
- version: '1.0'
74
+ version: '1'
61
75
  type: :runtime
62
76
  prerelease: false
63
77
  version_requirements: !ruby/object:Gem::Requirement
64
78
  requirements:
65
79
  - - "~>"
66
80
  - !ruby/object:Gem::Version
67
- version: '1.0'
81
+ version: '1'
68
82
  - !ruby/object:Gem::Dependency
69
83
  name: mize
70
84
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +93,20 @@ dependencies:
79
93
  - - ">="
80
94
  - !ruby/object:Gem::Version
81
95
  version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: debug
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
82
110
  description: |
83
111
  Amatch is a library for approximate string matching and searching in strings.
84
112
  Several algorithms can be used to do this, and it's also possible to compute a
@@ -98,6 +126,7 @@ extra_rdoc_files:
98
126
  - lib/amatch/rude.rb
99
127
  - lib/amatch/version.rb
100
128
  files:
129
+ - ".utilsrc"
101
130
  - CHANGES.md
102
131
  - COPYING
103
132
  - Gemfile
@@ -120,6 +149,7 @@ files:
120
149
  - lib/amatch/version.rb
121
150
  - tests/test_damerau_levenshtein.rb
122
151
  - tests/test_hamming.rb
152
+ - tests/test_helper.rb
123
153
  - tests/test_jaro.rb
124
154
  - tests/test_jaro_winkler.rb
125
155
  - tests/test_levenshtein.rb
@@ -156,6 +186,7 @@ summary: Approximate String Matching library
156
186
  test_files:
157
187
  - tests/test_damerau_levenshtein.rb
158
188
  - tests/test_hamming.rb
189
+ - tests/test_helper.rb
159
190
  - tests/test_jaro.rb
160
191
  - tests/test_jaro_winkler.rb
161
192
  - tests/test_levenshtein.rb