amatch 0.4.2 → 0.6.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: 4fc4761462d177bcebf7212934afe5658a103b8dd6b32083d32ab1ee98a93459
4
+ data.tar.gz: 9d73b4f9e4ab4033f3d9f72dd7c3b0bf37fdefff78008675a15abbd7f4960e77
5
5
  SHA512:
6
- metadata.gz: 8cb9a9986c94a1b0cf1ec84be77d5aa6d53e454843a92334c99a7b2103bd75e03804c539555aeb5b66c6332f44e2bb21053b612f87c62ab0eeddd63f2eeb441f
7
- data.tar.gz: e656d288645b309eac412b65e3126843921c248dd56bd3ece8cdc9e7d619a1744bed01274183d08708c92cb386f099b7be6f52c497fb779286f0d6e4b83a6d44
6
+ metadata.gz: a808291e86d7660209c4a4c34639c2c1f024a25e28b84ce09d1415b775ea7989c2dc489a69684506f737c7b3603eec4f260ec60aae8a967ccd56e8f0ad573922
7
+ data.tar.gz: 91e485ecdd534ab4678fedba873db8bb6f2612fc3f0a9fc002ca849e1e9c6bd42f0e57a6a76ddf674c3e0d34e56187f022f52b78f53719596cdaf9aa7531502e
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,29 @@
1
1
  # Changes
2
2
 
3
+ ## 2025-12-19 v0.6.0
4
+
5
+ - Moved the `debug` gem from regular dependencies to development dependencies
6
+ in `Rakefile` and updated `amatch.gemspec` accordingly
7
+ - Added `openssl-dev` dependency and included `ruby:4.0-rc-alpine` image
8
+ configuration in `.all_images.yml`
9
+ - Changed `bundle update` command to `bundle update --all` for improved
10
+ dependency management
11
+
12
+ ## 2025-09-11 v0.5.0
13
+
14
+ - Added `yaml-dev` dependency and installed `bundler` and `gem_hadar` gems in `.all_images.yml`
15
+ - Modified script section in `.all_images.yml` to use `bundle update` with parallel installation
16
+ - Changed `fail_fast` setting in `.all_images.yml` from `yes` to `true`
17
+ - Added `ext/amatch_ext*` to `.gitignore` and updated `Rakefile` to ignore these files during packaging
18
+ - Added `coverage` to `.gitignore` and `Rakefile` ignore lists
19
+ - Updated `tins` dependency from `~>1.0` to `~>1`
20
+ - Added `debug` gem as a regular dependency
21
+ - Added `simplecov` as a development dependency
22
+ - Created `.utilsrc` configuration file for `utilrb` gem with specified settings
23
+ - Replaced individual test requires with `require 'test_helper'` in all test files
24
+ - Created `tests/test_helper.rb` to centralize test setup including SimpleCov and debug loading
25
+ - The `gem_hadar/simplecov` gem is used for code coverage reporting
26
+
3
27
  ## 2025-07-10 v0.4.2
4
28
 
5
29
  * 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
+ development_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.6.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.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
@@ -15,14 +15,28 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.20'
18
+ version: '2.10'
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.10'
26
+ - !ruby/object:Gem::Dependency
27
+ name: debug
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
26
40
  - !ruby/object:Gem::Dependency
27
41
  name: test-unit
28
42
  requirement: !ruby/object:Gem::Requirement
@@ -51,20 +65,34 @@ dependencies:
51
65
  - - ">="
52
66
  - !ruby/object:Gem::Version
53
67
  version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: simplecov
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
54
82
  - !ruby/object:Gem::Dependency
55
83
  name: tins
56
84
  requirement: !ruby/object:Gem::Requirement
57
85
  requirements:
58
86
  - - "~>"
59
87
  - !ruby/object:Gem::Version
60
- version: '1.0'
88
+ version: '1'
61
89
  type: :runtime
62
90
  prerelease: false
63
91
  version_requirements: !ruby/object:Gem::Requirement
64
92
  requirements:
65
93
  - - "~>"
66
94
  - !ruby/object:Gem::Version
67
- version: '1.0'
95
+ version: '1'
68
96
  - !ruby/object:Gem::Dependency
69
97
  name: mize
70
98
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -150,12 +180,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
180
  - !ruby/object:Gem::Version
151
181
  version: '0'
152
182
  requirements: []
153
- rubygems_version: 3.6.9
183
+ rubygems_version: 4.0.2
154
184
  specification_version: 4
155
185
  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