{"action":"created","comment":{"url":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/comments/62014836","id":62014836,"diff_hunk":"@@ -109,11 +109,12 @@ def truncate_string(str)\n     # @return [void]\n     # @note This method mutates +str+ for speed","path":"lib/airbrake-ruby/payload_truncator.rb","position":11,"original_position":11,"commit_id":"c6f7e63d5fe987a8719c144bd7cc6fa6cd1044b4","original_commit_id":"c6f7e63d5fe987a8719c144bd7cc6fa6cd1044b4","user":{"login":"kyrylo","id":1079123,"avatar_url":"https://avatars.githubusercontent.com/u/1079123?v=3","gravatar_id":"","url":"https://api.github.com/users/kyrylo","html_url":"https://github.com/kyrylo","followers_url":"https://api.github.com/users/kyrylo/followers","following_url":"https://api.github.com/users/kyrylo/following{/other_user}","gists_url":"https://api.github.com/users/kyrylo/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrylo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrylo/subscriptions","organizations_url":"https://api.github.com/users/kyrylo/orgs","repos_url":"https://api.github.com/users/kyrylo/repos","events_url":"https://api.github.com/users/kyrylo/events{/privacy}","received_events_url":"https://api.github.com/users/kyrylo/received_events","type":"User","site_admin":false},"body":"Good call, it makes sense. I guess it's also better to update this note, to mention that it mutates every but frozen strings.","created_at":"2016-05-04T09:52:59Z","updated_at":"2016-05-04T09:52:59Z","html_url":"https://github.com/airbrake/airbrake-ruby/pull/73#discussion_r62014836","pull_request_url":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/comments/62014836"},"html":{"href":"https://github.com/airbrake/airbrake-ruby/pull/73#discussion_r62014836"},"pull_request":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/73","id":68825337,"html_url":"https://github.com/airbrake/airbrake-ruby/pull/73","diff_url":"https://github.com/airbrake/airbrake-ruby/pull/73.diff","patch_url":"https://github.com/airbrake/airbrake-ruby/pull/73.patch","issue_url":"https://api.github.com/repos/airbrake/airbrake-ruby/issues/73","number":73,"state":"open","locked":false,"title":"Correctly handle a frozen string with invalid characters","user":{"login":"bobes","id":5522,"avatar_url":"https://avatars.githubusercontent.com/u/5522?v=3","gravatar_id":"","url":"https://api.github.com/users/bobes","html_url":"https://github.com/bobes","followers_url":"https://api.github.com/users/bobes/followers","following_url":"https://api.github.com/users/bobes/following{/other_user}","gists_url":"https://api.github.com/users/bobes/gists{/gist_id}","starred_url":"https://api.github.com/users/bobes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobes/subscriptions","organizations_url":"https://api.github.com/users/bobes/orgs","repos_url":"https://api.github.com/users/bobes/repos","events_url":"https://api.github.com/users/bobes/events{/privacy}","received_events_url":"https://api.github.com/users/bobes/received_events","type":"User","site_admin":false},"body":"This change fixes a `RuntimeError: can't modify frozen String` error that happens in Payload Truncator when a string with invalid characters is frozen","created_at":"2016-05-04T08:20:50Z","updated_at":"2016-05-04T09:52:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f71ed9e358c3c4966607fabe85a89c12753c64ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/73/commits","review_comments_url":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/73/comments","review_comment_url":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/airbrake/airbrake-ruby/issues/73/comments","statuses_url":"https://api.github.com/repos/airbrake/airbrake-ruby/statuses/c6f7e63d5fe987a8719c144bd7cc6fa6cd1044b4","head":{"label":"boxdice:fix_frozen_string_bug","ref":"fix_frozen_string_bug","sha":"c6f7e63d5fe987a8719c144bd7cc6fa6cd1044b4","user":{"login":"boxdice","id":225060,"avatar_url":"https://avatars.githubusercontent.com/u/225060?v=3","gravatar_id":"","url":"https://api.github.com/users/boxdice","html_url":"https://github.com/boxdice","followers_url":"https://api.github.com/users/boxdice/followers","following_url":"https://api.github.com/users/boxdice/following{/other_user}","gists_url":"https://api.github.com/users/boxdice/gists{/gist_id}","starred_url":"https://api.github.com/users/boxdice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxdice/subscriptions","organizations_url":"https://api.github.com/users/boxdice/orgs","repos_url":"https://api.github.com/users/boxdice/repos","events_url":"https://api.github.com/users/boxdice/events{/privacy}","received_events_url":"https://api.github.com/users/boxdice/received_events","type":"Organization","site_admin":false},"repo":{"id":58032608,"name":"airbrake-ruby","full_name":"boxdice/airbrake-ruby","owner":{"login":"boxdice","id":225060,"avatar_url":"https://avatars.githubusercontent.com/u/225060?v=3","gravatar_id":"","url":"https://api.github.com/users/boxdice","html_url":"https://github.com/boxdice","followers_url":"https://api.github.com/users/boxdice/followers","following_url":"https://api.github.com/users/boxdice/following{/other_user}","gists_url":"https://api.github.com/users/boxdice/gists{/gist_id}","starred_url":"https://api.github.com/users/boxdice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxdice/subscriptions","organizations_url":"https://api.github.com/users/boxdice/orgs","repos_url":"https://api.github.com/users/boxdice/repos","events_url":"https://api.github.com/users/boxdice/events{/privacy}","received_events_url":"https://api.github.com/users/boxdice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boxdice/airbrake-ruby","description":"A plain Ruby Airbrake notifier","fork":true,"url":"https://api.github.com/repos/boxdice/airbrake-ruby","forks_url":"https://api.github.com/repos/boxdice/airbrake-ruby/forks","keys_url":"https://api.github.com/repos/boxdice/airbrake-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boxdice/airbrake-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boxdice/airbrake-ruby/teams","hooks_url":"https://api.github.com/repos/boxdice/airbrake-ruby/hooks","issue_events_url":"https://api.github.com/repos/boxdice/airbrake-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/boxdice/airbrake-ruby/events","assignees_url":"https://api.github.com/repos/boxdice/airbrake-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/boxdice/airbrake-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/boxdice/airbrake-ruby/tags","blobs_url":"https://api.github.com/repos/boxdice/airbrake-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boxdice/airbrake-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boxdice/airbrake-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/boxdice/airbrake-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boxdice/airbrake-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/boxdice/airbrake-ruby/languages","stargazers_url":"https://api.github.com/repos/boxdice/airbrake-ruby/stargazers","contributors_url":"https://api.github.com/repos/boxdice/airbrake-ruby/contributors","subscribers_url":"https://api.github.com/repos/boxdice/airbrake-ruby/subscribers","subscription_url":"https://api.github.com/repos/boxdice/airbrake-ruby/subscription","commits_url":"https://api.github.com/repos/boxdice/airbrake-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/boxdice/airbrake-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/boxdice/airbrake-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/boxdice/airbrake-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/boxdice/airbrake-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/boxdice/airbrake-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boxdice/airbrake-ruby/merges","archive_url":"https://api.github.com/repos/boxdice/airbrake-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boxdice/airbrake-ruby/downloads","issues_url":"https://api.github.com/repos/boxdice/airbrake-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/boxdice/airbrake-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/boxdice/airbrake-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/boxdice/airbrake-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boxdice/airbrake-ruby/labels{/name}","releases_url":"https://api.github.com/repos/boxdice/airbrake-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/boxdice/airbrake-ruby/deployments","created_at":"2016-05-04T07:40:29Z","updated_at":"2016-05-04T07:40:30Z","pushed_at":"2016-05-04T08:19:47Z","git_url":"git://github.com/boxdice/airbrake-ruby.git","ssh_url":"git@github.com:boxdice/airbrake-ruby.git","clone_url":"https://github.com/boxdice/airbrake-ruby.git","svn_url":"https://github.com/boxdice/airbrake-ruby","homepage":"https://airbrake.io/","size":113,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"airbrake:master","ref":"master","sha":"b26c046efefc88fa808c66f232963d7680f01fb1","user":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"repo":{"id":47778822,"name":"airbrake-ruby","full_name":"airbrake/airbrake-ruby","owner":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airbrake/airbrake-ruby","description":"A plain Ruby Airbrake notifier","fork":false,"url":"https://api.github.com/repos/airbrake/airbrake-ruby","forks_url":"https://api.github.com/repos/airbrake/airbrake-ruby/forks","keys_url":"https://api.github.com/repos/airbrake/airbrake-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbrake/airbrake-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbrake/airbrake-ruby/teams","hooks_url":"https://api.github.com/repos/airbrake/airbrake-ruby/hooks","issue_events_url":"https://api.github.com/repos/airbrake/airbrake-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/airbrake/airbrake-ruby/events","assignees_url":"https://api.github.com/repos/airbrake/airbrake-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/airbrake/airbrake-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/airbrake/airbrake-ruby/tags","blobs_url":"https://api.github.com/repos/airbrake/airbrake-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbrake/airbrake-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbrake/airbrake-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbrake/airbrake-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbrake/airbrake-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/airbrake/airbrake-ruby/languages","stargazers_url":"https://api.github.com/repos/airbrake/airbrake-ruby/stargazers","contributors_url":"https://api.github.com/repos/airbrake/airbrake-ruby/contributors","subscribers_url":"https://api.github.com/repos/airbrake/airbrake-ruby/subscribers","subscription_url":"https://api.github.com/repos/airbrake/airbrake-ruby/subscription","commits_url":"https://api.github.com/repos/airbrake/airbrake-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbrake/airbrake-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbrake/airbrake-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbrake/airbrake-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbrake/airbrake-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/airbrake/airbrake-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbrake/airbrake-ruby/merges","archive_url":"https://api.github.com/repos/airbrake/airbrake-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbrake/airbrake-ruby/downloads","issues_url":"https://api.github.com/repos/airbrake/airbrake-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/airbrake/airbrake-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/airbrake/airbrake-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbrake/airbrake-ruby/labels{/name}","releases_url":"https://api.github.com/repos/airbrake/airbrake-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/airbrake/airbrake-ruby/deployments","created_at":"2015-12-10T18:05:25Z","updated_at":"2016-03-01T14:49:23Z","pushed_at":"2016-05-04T08:20:50Z","git_url":"git://github.com/airbrake/airbrake-ruby.git","ssh_url":"git@github.com:airbrake/airbrake-ruby.git","clone_url":"https://github.com/airbrake/airbrake-ruby.git","svn_url":"https://github.com/airbrake/airbrake-ruby","homepage":"https://airbrake.io/","size":118,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/73"},"html":{"href":"https://github.com/airbrake/airbrake-ruby/pull/73"},"issue":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/issues/73"},"comments":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/airbrake/airbrake-ruby/statuses/c6f7e63d5fe987a8719c144bd7cc6fa6cd1044b4"}}}}