You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gem in its current form is not compatible with frozen string literals as destructive methods like gsub! are used.
Here is an example:
# frozen_string_literal: trueFacebookAds::AdAccount.get('act_12345','name)#=> RuntimeError: can'tmodifyfrozenString#=> from .../gems/facebookads-0.2.10.0/lib/facebook_ads/session.rb:39:in `gsub!'
Immutable string literals will be thedefault in ruby 3, so it might be a good idea to already stop using destructive string methods.
Edit: It gets better as of course things like the following won't work either, as the result is already immutable without any additional magic comment:
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
The gem in its current form is not compatible with frozen string literals as destructive methods like
gsub!
are used.Here is an example:
Immutable string literals will be the default in ruby 3, so it might be a good idea to already stop using destructive string methods.
Edit: It gets better as of course things like the following won't work either, as the result is already immutable without any additional magic comment:
It's generally bad practice to mutate an input parameter like this.
The text was updated successfully, but these errors were encountered: