{"action":"created","issue":{"url":"https://api.github.com/repos/bblimke/webmock/issues/607","repository_url":"https://api.github.com/repos/bblimke/webmock","labels_url":"https://api.github.com/repos/bblimke/webmock/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/bblimke/webmock/issues/607/comments","events_url":"https://api.github.com/repos/bblimke/webmock/issues/607/events","html_url":"https://github.com/bblimke/webmock/issues/607","id":149836826,"number":607,"title":"RuntimeError: can't modify frozen String with v1.24.3+, Net::HTTP, and older Rubygems","user":{"login":"cgriego","id":4805,"avatar_url":"https://avatars.githubusercontent.com/u/4805?v=3","gravatar_id":"","url":"https://api.github.com/users/cgriego","html_url":"https://github.com/cgriego","followers_url":"https://api.github.com/users/cgriego/followers","following_url":"https://api.github.com/users/cgriego/following{/other_user}","gists_url":"https://api.github.com/users/cgriego/gists{/gist_id}","starred_url":"https://api.github.com/users/cgriego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgriego/subscriptions","organizations_url":"https://api.github.com/users/cgriego/orgs","repos_url":"https://api.github.com/users/cgriego/repos","events_url":"https://api.github.com/users/cgriego/events{/privacy}","received_events_url":"https://api.github.com/users/cgriego/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-20T17:39:07Z","updated_at":"2016-04-21T15:51:41Z","closed_at":"2016-04-20T22:13:57Z","body":"Older versions of RubyGems raise `RuntimeError: can't modify frozen String` when a frozen string, like `RUBY_VERSION`, is passed to `Gem::Version.new`. v1.24.3 introduced code that does just that for dealing handling symbol headers with Net::HTTP. Can we workaround this and restore compatibility by duping `RUBY_VERSION` before passing it?"},"comment":{"url":"https://api.github.com/repos/bblimke/webmock/issues/comments/212983625","html_url":"https://github.com/bblimke/webmock/issues/607#issuecomment-212983625","issue_url":"https://api.github.com/repos/bblimke/webmock/issues/607","id":212983625,"user":{"login":"cgriego","id":4805,"avatar_url":"https://avatars.githubusercontent.com/u/4805?v=3","gravatar_id":"","url":"https://api.github.com/users/cgriego","html_url":"https://github.com/cgriego","followers_url":"https://api.github.com/users/cgriego/followers","following_url":"https://api.github.com/users/cgriego/following{/other_user}","gists_url":"https://api.github.com/users/cgriego/gists{/gist_id}","starred_url":"https://api.github.com/users/cgriego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgriego/subscriptions","organizations_url":"https://api.github.com/users/cgriego/orgs","repos_url":"https://api.github.com/users/cgriego/repos","events_url":"https://api.github.com/users/cgriego/events{/privacy}","received_events_url":"https://api.github.com/users/cgriego/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T15:51:41Z","updated_at":"2016-04-21T15:51:41Z","body":"Thanks @bblimke for the quick turnaround, but unfortunately 1.24.5 still has the issue. Looks like the test code was changed but the runtime code is still passing the frozen RUBY_VERSION to Gem::Version so it's still giving older rubygems an issue."}}