Following up with issue #105 (RuntimeError: string modified), this PR ensures that when the response string is frozen, Rack::Tracker#inject does not cause a RuntimeError and still works as before.
In addition to using frozen strings in the gem specs, I used this version of rack-tracker locally in our app (referred to by @jblock in #105). Tests that were previously failing because of this change in Rails 5.2 are now passing.
Following up with issue #105 (RuntimeError: string modified), this PR ensures that when the response string is frozen,
Rack::Tracker#inject
does not cause aRuntimeError
and still works as before.In addition to using frozen strings in the gem specs, I used this version of
rack-tracker
locally in our app (referred to by @jblock in #105). Tests that were previously failing because of this change in Rails 5.2 are now passing.Hopefully this is enough to resolve the issue!