fog-local
fog-local copied to clipboard
Use a mutable string to be used a string buffer for Ruby 3.4
Ruby is slowly moving towards frozen string literals by default. This is from Ruby 3.4.0 release
String literals in files without a frozen_string_literal comment now emit a deprecation warning when they are mutated. These warnings can be enabled with -W:deprecated or by setting Warning[:deprecated] = true. To disable this change, you can run Ruby with the --disable-frozen-string-literal command line argument. [Feature #20205]
Minitest has deprecation warnings enabled by default and therefore it is quite noisy without this fix.
With this, the code should be compatible with newer versions of Ruby as well as backward compatible.