sys-filesystem 1.5.4 → 1.5.5

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: 43744bef5f8edef84a4b282c900460fd5aefb7f2d9650e5259d5b0f8a8fae97a
4
- data.tar.gz: 6eddc2f29fb509209addc117e4a9ad4ff80e64f11cb71b9db54672dfefeba4eb
3
+ metadata.gz: bff196a377aeaf2d5983fd6e15877a990c73e3fea18b6b94d7bc6a751d331419
4
+ data.tar.gz: 743b5452bd13840a977045a29a338b9240cfaa9eb0878385dcab66e9384c7335
5
5
  SHA512:
6
- metadata.gz: 59800ffa5e85934f3cc4f360c6cde04168deb1d9b5790750f8584332d2fba5bdf2c8019d1e05261bd3ac71858c3488c8d80a65c2cf4fc4fb2c6db6e032cf2461
7
- data.tar.gz: 001fb9676236d2916836e4690cfdaa8bfb838328c43e1c31fa07669f3da4bba3e814a35cc55122ca825fd7c22c90e24d8ea385bc3d9c70548363b8cfa4594def
6
+ metadata.gz: 77443aaa680057b9e055a2c570a3fcbd8025f32ebc266d3b6628d775a5a4d5b9cc3dbaadf99d4ba584f8f5badb9ae8665ca9e557403c05efc28dd4358be94f18
7
+ data.tar.gz: b11463a784178cca2068211aa342de4b2e3c65acac6830bdea67b6793214f0f2b9ba0c5dda53a274837d7822201d2d90c89ba92d69dab6d7bf003d6c7fb2a15e
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.5.5 - 6-Dec-2025
2
+ * Replaced string concatenation operators with addition assignment operators
3
+ since the current code generates a frozen string warning with Ruby 3.4 and
4
+ later.
5
+ * Updated Rakefile to run specs with warnings enabled.
6
+
1
7
  ## 1.5.4 - 7-Sep-2025
2
8
  * Added a fallback check for 64-bit Linux in case the config info doesn't
3
9
  include "64" anywhere in it. Thanks go to Chris Hofstaedtler for the
data/Rakefile CHANGED
@@ -41,7 +41,7 @@ end
41
41
  desc "Run the test suite"
42
42
  RSpec::Core::RakeTask.new(:spec) do |t|
43
43
  t.verbose = false
44
- t.rspec_opts = '-f documentation'
44
+ t.rspec_opts = '-f documentation -w'
45
45
  end
46
46
 
47
47
  # Clean up afterwards
@@ -16,7 +16,7 @@ module Sys
16
16
  # return objects of other types. Do not instantiate.
17
17
  class Filesystem
18
18
  # The version of the sys-filesystem library
19
- VERSION = '1.5.4'
19
+ VERSION = '1.5.5'
20
20
 
21
21
  # Stat objects are returned by the Sys::Filesystem.stat method. Here
22
22
  # we're adding universal methods.
@@ -321,9 +321,9 @@ module Sys
321
321
  OPT_NAMES.each do |key, val|
322
322
  if flags & key > 0
323
323
  if string.empty?
324
- string << val
324
+ string += val
325
325
  else
326
- string << ", #{val}"
326
+ string += ", #{val}"
327
327
  end
328
328
  end
329
329
  flags &= ~key
@@ -427,18 +427,18 @@ module Sys
427
427
  #
428
428
  def self.get_options(flags)
429
429
  str = ''
430
- str << ' casepres' if CASE_PRESERVED_NAMES & flags > 0
431
- str << ' casesens' if CASE_SENSITIVE_SEARCH & flags > 0
432
- str << ' compression' if FILE_COMPRESSION & flags > 0
433
- str << ' namedstreams' if NAMED_STREAMS & flags > 0
434
- str << ' pacls' if PERSISTENT_ACLS & flags > 0
435
- str << ' ro' if READ_ONLY_VOLUME & flags > 0
436
- str << ' encryption' if SUPPORTS_ENCRYPTION & flags > 0
437
- str << ' objids' if SUPPORTS_OBJECT_IDS & flags > 0
438
- str << ' rpoints' if SUPPORTS_REPARSE_POINTS & flags > 0
439
- str << ' sparse' if SUPPORTS_SPARSE_FILES & flags > 0
440
- str << ' unicode' if UNICODE_ON_DISK & flags > 0
441
- str << ' compressed' if VOLUME_IS_COMPRESSED & flags > 0
430
+ str += ' casepres' if CASE_PRESERVED_NAMES & flags > 0
431
+ str += ' casesens' if CASE_SENSITIVE_SEARCH & flags > 0
432
+ str += ' compression' if FILE_COMPRESSION & flags > 0
433
+ str += ' namedstreams' if NAMED_STREAMS & flags > 0
434
+ str += ' pacls' if PERSISTENT_ACLS & flags > 0
435
+ str += ' ro' if READ_ONLY_VOLUME & flags > 0
436
+ str += ' encryption' if SUPPORTS_ENCRYPTION & flags > 0
437
+ str += ' objids' if SUPPORTS_OBJECT_IDS & flags > 0
438
+ str += ' rpoints' if SUPPORTS_REPARSE_POINTS & flags > 0
439
+ str += ' sparse' if SUPPORTS_SPARSE_FILES & flags > 0
440
+ str += ' unicode' if UNICODE_ON_DISK & flags > 0
441
+ str += ' compressed' if VOLUME_IS_COMPRESSED & flags > 0
442
442
 
443
443
  str.tr!(' ', ',')
444
444
  str[1..-1] # Ignore the first comma
@@ -4,7 +4,7 @@ require 'sys-filesystem'
4
4
 
5
5
  RSpec.shared_examples Sys::Filesystem do
6
6
  example 'version number is set to the expected value' do
7
- expect(Sys::Filesystem::VERSION).to eq('1.5.4')
7
+ expect(Sys::Filesystem::VERSION).to eq('1.5.5')
8
8
  expect(Sys::Filesystem::VERSION).to be_frozen
9
9
  end
10
10
 
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'sys-filesystem'
5
- spec.version = '1.5.4'
5
+ spec.version = '1.5.5'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.email = 'djberg96@gmail.com'
8
8
  spec.homepage = 'https://github.com/djberg96/sys-filesystem'
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-filesystem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
metadata.gz.sig CHANGED
Binary file