Skip to content

fog-google modifies strings #639

@dgmora

Description

@dgmora

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions