Skip to content

Commit e07848c

Browse files
0.2.4
1 parent c44070f commit e07848c

6 files changed

Lines changed: 10 additions & 15 deletions

File tree

‎CHANGES.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# libpath.Ruby - Changes <!-- omit in toc -->
22

33

4-
## 0.2.4 - 19th August 2026
4+
## 0.2.4 - 27th August 2026
55

66
* renamed **libpath.gemspec** to **libpath-ruby.gemspec** so the filename stem matches `spec.name`;
77
* **libpath-ruby.gemspec**: `required_ruby_version` is the range `>= 2.0`; **Gemfile.lock** and **.ruby-version** excluded from `spec.files`; `spec.summary` matches the README tagline; packaged **AUTHORS**, **CHANGES**, **CONTRIBUTING**, **EXAMPLES**, **FAQ**, **INSTALL**, **NEWS**, **SECURITY**, **TODO**;
88
* **Gemfile** sets `lockfile false` when Bundler supports it; stop tracking **Gemfile.lock**;
99
* CI uses `bundler-cache: false` and explicit `bundle install`; **Warnings** job on Ruby **3.4**; `gem build libpath-ruby.gemspec`;
1010
* updated **run_all_unit_tests.sh** (from https://github.com/synesissoftware/misc-dev-scripts) to skip **tput** when **$TERM** is unset or stdout is not a TTY;
1111
* library source **Home:** URLs now use `https`;
12+
* workarounds for avoiding potentially modifying frozen strings;
1213
* **README.md**: tagline before badges; canonical badge row; **Dependencies** (Efferent / Afferent); related projects; License → `./LICENSE`;
1314
* **EXAMPLES.md** example links are repo-relative (`./examples/…`);
1415
* `elide_redundant_path_name_separators!` is freeze-safe (Ruby 3.4 `FrozenError` on a frozen remainder, e.g. malformed UNC);

‎NEWS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Date | News Item |
44
| ----------------- | -------------------------------------------------------------------------------------------- |
5-
| 19th August 2026 | [**libpath.Ruby** 0.2.4](https://github.com/synesissoftware/libpath.Ruby/releases/tag/0.2.4) |
5+
| 27th August 2026 | [**libpath.Ruby** 0.2.4](https://github.com/synesissoftware/libpath.Ruby/releases/tag/0.2.4) |
66
| 15th August 2026 | [**libpath.Ruby** 0.2.3](https://github.com/synesissoftware/libpath.Ruby/releases/tag/0.2.3) |
77
| 13th April 2024 | [**libpath.Ruby** 0.2.2.3](https://github.com/synesissoftware/libpath.Ruby/releases/tag/0.2.2.3) |
88
| 7th April 2024 | **libpath.Ruby** 0.2.2.2 released |

‎lib/libpath/internal_/unix/form.rb‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,9 @@ def self.elide_redundant_path_name_separators s # :nodoc:
7373
# time
7474
#
7575
# @!visibility private
76-
def self.elide_redundant_path_name_separators! s # :nodoc:
77-
78-
s = s.dup if s.frozen?
79-
s.gsub!(/\/\/+/, '/')
76+
def self.elide_redundant_path_name_separators s # :nodoc:
8077

81-
s
78+
s.gsub(/\/\/+/, '/')
8279
end
8380

8481

‎lib/libpath/internal_/windows/form.rb‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,9 @@ def self.elide_redundant_path_name_separators s # :nodoc:
7979
# time
8080
#
8181
# @!visibility private
82-
def self.elide_redundant_path_name_separators! s # :nodoc:
83-
84-
s = s.dup if s.frozen?
85-
s.gsub!(/[\\\/]{2,}/, '\\')
82+
def self.elide_redundant_path_name_separators s # :nodoc:
8683

87-
s
84+
s.gsub(/[\\\/]{2,}/, '\\')
8885
end
8986

9087
# [INTERNAL] This function is undocumented, and subject to change at any
@@ -209,7 +206,7 @@ def self.split_path s # :nodoc:
209206

210207
f1_volume, rem, frm = self.get_windows_volume s
211208

212-
rem = self.elide_redundant_path_name_separators! rem
209+
rem = self.elide_redundant_path_name_separators rem
213210

214211
f1_volume.define_singleton_method(:form) { frm } if f1_volume
215212

‎lib/libpath/util/windows.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def make_path_absolute path, **options
492492

493493
vol, rem, _ = _Internal_Windows_Form.get_windows_volume r
494494

495-
rem = _Internal_Windows_Form.elide_redundant_path_name_separators! rem
495+
rem = _Internal_Windows_Form.elide_redundant_path_name_separators rem
496496

497497
r = "#{vol}#{rem}"
498498
end

‎lib/libpath/version.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Purpose: Version for libpath.Ruby library
66
#
77
# Created: 8th January 2019
8-
# Updated: 19th August 2026
8+
# Updated: 27th August 2026
99
#
1010
# Home: https://github.com/synesissoftware/libpath.Ruby
1111
#

0 commit comments

Comments
 (0)