I've tried to enable RUBYOPT="--enable-frozen-string-literal" so that strings are frozen for my application, but I noticed that fog-google modifies frozen strings:
FrozenError: can't modify frozen String: "/"
storage_json/real.rb:52:in 'Fog::Google::StorageJSON::Real#signature'
Strings will be frozen eventually for Ruby, so it would be great if fog-google would be prepared for that.
I am not sure in how many places fog-google modifies strings. Adding # frozen_string_literal: true / # frozen_string_literal: false could already help people using --enable-frozen-string-literal, or maybe these cases could be fixed directly
I've tried to enable
RUBYOPT="--enable-frozen-string-literal"so that strings are frozen for my application, but I noticed that fog-google modifies frozen strings:Strings will be frozen eventually for Ruby, so it would be great if fog-google would be prepared for that.
I am not sure in how many places fog-google modifies strings. Adding
# frozen_string_literal: true/# frozen_string_literal: falsecould already help people using--enable-frozen-string-literal, or maybe these cases could be fixed directly