Closed afex closed 11 years ago
after integrating this gem with our sinatra apps, we had test failures related to frozen strings. specifically the "env['sinatra.error'].message" string in an "error" block
RuntimeError: can't modify frozen string # /Users/kthornhill/.rvm/gems/ruby-1.9.2-p318/gems/yell-adapters-syslog-1.2.0/lib/yell/adapters/syslog.rb:173:in `strip!'
this PR checks the frozen state of the message and duplicates it if needed.
I wonder if that should be in Yell::Event directly... might be an issue for other adapters as well.
after integrating this gem with our sinatra apps, we had test failures related to frozen strings. specifically the "env['sinatra.error'].message" string in an "error" block
this PR checks the frozen state of the message and duplicates it if needed.