Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#
# Created: 15th August 2026
# Updated: 27th August 2026
# Updated: 28th August 2026
#

name: Ruby
Expand All @@ -22,6 +22,7 @@ on:
- rc1
- rc2
- rc3
- warnings
pull_request:

permissions:
Expand Down
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# cmpfs.Ruby - Changes <!-- omit in toc -->


## 0.2.6 - 30th August 2026

* removed unused local variable assignments from text stream comparison;
* parenthesised the regular expression argument in the version test to eliminate an ambiguous regular expression warning under Ruby 3.4 `-W`;
* added the `warnings` branch to CI push triggers and upgraded **actions/checkout** to v7;
* centralised the project URL in **cmpfs-ruby.gemspec** for the homepage and metadata URLs;


## 0.2.5 - 27th August 2026

* renamed **cmpfs.gemspec** to **cmpfs-ruby.gemspec** so the filename stem matches `spec.name`;
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

| Date | News Item |
| ---------------- | ---------------------------------------------------------------------------------------- |
| 30th August 2026 | [**cmpfs.Ruby** 0.2.6](https://github.com/synesissoftware/cmpfs.Ruby/releases/tag/0.2.6) |
| 27th August 2026 | [**cmpfs.Ruby** 0.2.5](https://github.com/synesissoftware/cmpfs.Ruby/releases/tag/0.2.5) |
| 15th August 2026 | [**cmpfs.Ruby** 0.2.4](https://github.com/synesissoftware/cmpfs.Ruby/releases/tag/0.2.4) |
| 4th April 2024 | [**cmpfs.Ruby** 0.2.3](https://github.com/synesissoftware/cmpfs.Ruby/releases/tag/0.2.3) |
Expand Down
4 changes: 2 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Functional improvements

* [ ] quiet assigned-but-unused variable warnings in **lib/cmpfs/compare/text/internal_.rb** (`lhs_ix`, `rhs_ix`, `lhs_nr`, `rhs_nr`; Ruby 3.4 `-W` / CI **Warnings** job);
* [ ] quiet the ambiguous `/` regexp warning in **test/unit/tc_version.rb** (Ruby 3.4 `-W` / CI **Warnings** job);
* [x] ~~~quiet assigned-but-unused variable warnings in **lib/cmpfs/compare/text/internal_.rb** (`lhs_ix`, `rhs_ix`, `lhs_nr`, `rhs_nr`; Ruby 3.4 `-W` / CI **Warnings** job)~~~ - ✅;
* [x] ~~~quiet the ambiguous `/` regexp warning in **test/unit/tc_version.rb** (Ruby 3.4 `-W` / CI **Warnings** job)~~~ - ✅;


## Performance improvements
Expand Down
15 changes: 9 additions & 6 deletions cmpfs-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Purpose: Gemspec for cmpfs.Ruby library
#
# Created: 1st March 2019
# Updated: 27th August 2026
# Updated: 28th August 2026
#
# ######################################################################## #

Expand All @@ -14,6 +14,9 @@ $:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'cmpfs/version'


PROJECT_URL = 'https://github.com/synesissoftware/cmpfs.Ruby'


Gem::Specification.new do |spec|

spec.name = 'cmpfs-ruby'
Expand All @@ -31,16 +34,16 @@ END_DESC
spec.email = [
'matthew@synesis.com.au',
]
spec.homepage = 'https://github.com/synesissoftware/cmpfs.Ruby'
spec.homepage = PROJECT_URL
spec.license = 'BSD-3-Clause'

spec.required_ruby_version = [ '>= 1.9.3' ]

spec.metadata = {
'bug_tracker_uri' => 'https://github.com/synesissoftware/cmpfs.Ruby/issues',
'changelog_uri' => 'https://github.com/synesissoftware/cmpfs.Ruby/blob/master/CHANGES.md',
'homepage_uri' => 'https://github.com/synesissoftware/cmpfs.Ruby',
'source_code_uri' => 'https://github.com/synesissoftware/cmpfs.Ruby',
'bug_tracker_uri' => "#{PROJECT_URL}/issues",
'changelog_uri' => "#{PROJECT_URL}/blob/master/CHANGES.md",
'homepage_uri' => PROJECT_URL,
'source_code_uri' => PROJECT_URL,
}

spec.files = Dir[
Expand Down
7 changes: 2 additions & 5 deletions lib/cmpfs/compare/text/internal_.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,10 @@ def self.compare_text_streams_ lhs_stm, rhs_stm, options
rhs_en.rewind if rhs_stm.respond_to?(:rewind)
end

lhs_ix = 0
rhs_ix = 0

loop do

lhs_ln, lhs_nr = self.next_line_or_nil_ lhs_en, options
rhs_ln, rhs_nr = self.next_line_or_nil_ rhs_en, options
lhs_ln, = self.next_line_or_nil_ lhs_en, options
rhs_ln, = self.next_line_or_nil_ rhs_en, options

if lhs_ln != rhs_ln

Expand Down
4 changes: 2 additions & 2 deletions lib/cmpfs/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Purpose: Version for cmpfs.Ruby library
#
# Created: 1st March 2019
# Updated: 27th August 2026
# Updated: 30th August 2026
#
# Home: https://github.com/synesissoftware/cmpfs.Ruby
#
Expand Down Expand Up @@ -51,7 +51,7 @@
module CmpFS

# Current version of the cmpfs.Ruby library
VERSION = '0.2.5'
VERSION = '0.2.6'

private
VERSION_PARTS_ = VERSION.split(/[.]/).collect { |n| n.to_i } # :nodoc:
Expand Down
2 changes: 1 addition & 1 deletion test/unit/tc_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test__VERSION_has_consistent_format
version = CmpFS::VERSION
j_n_p = "#{CmpFS::VERSION_MAJOR}.#{CmpFS::VERSION_MINOR}.#{CmpFS::VERSION_PATCH}"

assert_match /^#{j_n_p}(|\..+)$/, version
assert_match(/^#{j_n_p}(|\..+)$/, version)
end
end