{"action":"created","comment":{"url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/comments/77194384","id":77194384,"diff_hunk":"@@ -17,6 +31,8 @@ def promote_pawn\n     old_piece = pawn.color + '_' + pawn.type.downcase\n     new_piece = pawn.game.pieces.create(pawn_promotion_params.merge(color: pawn.color, row_coordinate: pawn.row_coordinate, column_coordinate: pawn.column_coordinate, has_moved?: true))\n     pawn.destroy\n+    game_channel = 'game_channel-' + new_piece.game.id.to_s","path":"app/controllers/pieces_controller.rb","position":32,"original_position":32,"commit_id":"409a00dc1a36409f521514c4bc6fb76e23a55440","original_commit_id":"409a00dc1a36409f521514c4bc6fb76e23a55440","user":{"login":"mscoutermarsh","id":155044,"avatar_url":"https://avatars.githubusercontent.com/u/155044?v=3","gravatar_id":"","url":"https://api.github.com/users/mscoutermarsh","html_url":"https://github.com/mscoutermarsh","followers_url":"https://api.github.com/users/mscoutermarsh/followers","following_url":"https://api.github.com/users/mscoutermarsh/following{/other_user}","gists_url":"https://api.github.com/users/mscoutermarsh/gists{/gist_id}","starred_url":"https://api.github.com/users/mscoutermarsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscoutermarsh/subscriptions","organizations_url":"https://api.github.com/users/mscoutermarsh/orgs","repos_url":"https://api.github.com/users/mscoutermarsh/repos","events_url":"https://api.github.com/users/mscoutermarsh/events{/privacy}","received_events_url":"https://api.github.com/users/mscoutermarsh/received_events","type":"User","site_admin":false},"body":"Since we've used this twice. Could be extracted to a method on `game`\r\n\r\ngame.rb\r\n\r\n```\r\ndef web_socket_channel\r\n  \"game_channel-#{ id }\"\r\nend\r\n```","created_at":"2016-09-01T15:17:09Z","updated_at":"2016-09-01T15:17:09Z","html_url":"https://github.com/Team-Chess-Fusion/chess-fusion/pull/52#discussion_r77194384","pull_request_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/comments/77194384"},"html":{"href":"https://github.com/Team-Chess-Fusion/chess-fusion/pull/52#discussion_r77194384"},"pull_request":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/52","id":83462688,"html_url":"https://github.com/Team-Chess-Fusion/chess-fusion/pull/52","diff_url":"https://github.com/Team-Chess-Fusion/chess-fusion/pull/52.diff","patch_url":"https://github.com/Team-Chess-Fusion/chess-fusion/pull/52.patch","issue_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues/52","number":52,"state":"open","locked":false,"title":"Initial set up of pusher gem","user":{"login":"tohyung85","id":7091311,"avatar_url":"https://avatars.githubusercontent.com/u/7091311?v=3","gravatar_id":"","url":"https://api.github.com/users/tohyung85","html_url":"https://github.com/tohyung85","followers_url":"https://api.github.com/users/tohyung85/followers","following_url":"https://api.github.com/users/tohyung85/following{/other_user}","gists_url":"https://api.github.com/users/tohyung85/gists{/gist_id}","starred_url":"https://api.github.com/users/tohyung85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tohyung85/subscriptions","organizations_url":"https://api.github.com/users/tohyung85/orgs","repos_url":"https://api.github.com/users/tohyung85/repos","events_url":"https://api.github.com/users/tohyung85/events{/privacy}","received_events_url":"https://api.github.com/users/tohyung85/received_events","type":"User","site_admin":false},"body":"Initial draft with pusher gem.\r\n- Page will now refresh when opponent makes a move.\r\n\r\n- Point to note, to avoid refreshing the page of the user when he is not in the game but on the index page, //= require tree . has been removed from application.js\r\nTherefore javascript files are not automatically included. \r\nNew javascript files MUST be included separately in their individual pages. ","created_at":"2016-08-31T14:24:33Z","updated_at":"2016-09-01T15:17:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4a0a76dde1226e1fad23fa01d26bd812290c287","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/52/commits","review_comments_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/52/comments","review_comment_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues/52/comments","statuses_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/statuses/409a00dc1a36409f521514c4bc6fb76e23a55440","head":{"label":"Team-Chess-Fusion:add-pusher","ref":"add-pusher","sha":"409a00dc1a36409f521514c4bc6fb76e23a55440","user":{"login":"Team-Chess-Fusion","id":20618737,"avatar_url":"https://avatars.githubusercontent.com/u/20618737?v=3","gravatar_id":"","url":"https://api.github.com/users/Team-Chess-Fusion","html_url":"https://github.com/Team-Chess-Fusion","followers_url":"https://api.github.com/users/Team-Chess-Fusion/followers","following_url":"https://api.github.com/users/Team-Chess-Fusion/following{/other_user}","gists_url":"https://api.github.com/users/Team-Chess-Fusion/gists{/gist_id}","starred_url":"https://api.github.com/users/Team-Chess-Fusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Team-Chess-Fusion/subscriptions","organizations_url":"https://api.github.com/users/Team-Chess-Fusion/orgs","repos_url":"https://api.github.com/users/Team-Chess-Fusion/repos","events_url":"https://api.github.com/users/Team-Chess-Fusion/events{/privacy}","received_events_url":"https://api.github.com/users/Team-Chess-Fusion/received_events","type":"Organization","site_admin":false},"repo":{"id":64042486,"name":"chess-fusion","full_name":"Team-Chess-Fusion/chess-fusion","owner":{"login":"Team-Chess-Fusion","id":20618737,"avatar_url":"https://avatars.githubusercontent.com/u/20618737?v=3","gravatar_id":"","url":"https://api.github.com/users/Team-Chess-Fusion","html_url":"https://github.com/Team-Chess-Fusion","followers_url":"https://api.github.com/users/Team-Chess-Fusion/followers","following_url":"https://api.github.com/users/Team-Chess-Fusion/following{/other_user}","gists_url":"https://api.github.com/users/Team-Chess-Fusion/gists{/gist_id}","starred_url":"https://api.github.com/users/Team-Chess-Fusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Team-Chess-Fusion/subscriptions","organizations_url":"https://api.github.com/users/Team-Chess-Fusion/orgs","repos_url":"https://api.github.com/users/Team-Chess-Fusion/repos","events_url":"https://api.github.com/users/Team-Chess-Fusion/events{/privacy}","received_events_url":"https://api.github.com/users/Team-Chess-Fusion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Team-Chess-Fusion/chess-fusion","description":"Our awesome chess application","fork":false,"url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion","forks_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/forks","keys_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/teams","hooks_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/hooks","issue_events_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues/events{/number}","events_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/events","assignees_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/assignees{/user}","branches_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/branches{/branch}","tags_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/tags","blobs_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/refs{/sha}","trees_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/statuses/{sha}","languages_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/languages","stargazers_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/stargazers","contributors_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/contributors","subscribers_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/subscribers","subscription_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/subscription","commits_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/commits{/sha}","git_commits_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/commits{/sha}","comments_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/comments{/number}","issue_comment_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues/comments{/number}","contents_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/contents/{+path}","compare_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/merges","archive_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/downloads","issues_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues{/number}","pulls_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls{/number}","milestones_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/milestones{/number}","notifications_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/labels{/name}","releases_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/releases{/id}","deployments_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/deployments","created_at":"2016-07-24T01:01:44Z","updated_at":"2016-07-29T21:44:04Z","pushed_at":"2016-09-01T14:46:20Z","git_url":"git://github.com/Team-Chess-Fusion/chess-fusion.git","ssh_url":"git@github.com:Team-Chess-Fusion/chess-fusion.git","clone_url":"https://github.com/Team-Chess-Fusion/chess-fusion.git","svn_url":"https://github.com/Team-Chess-Fusion/chess-fusion","homepage":null,"size":286,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"Team-Chess-Fusion:master","ref":"master","sha":"1cf6f9cd2a792d7f1aa77476266cb28ffe450f46","user":{"login":"Team-Chess-Fusion","id":20618737,"avatar_url":"https://avatars.githubusercontent.com/u/20618737?v=3","gravatar_id":"","url":"https://api.github.com/users/Team-Chess-Fusion","html_url":"https://github.com/Team-Chess-Fusion","followers_url":"https://api.github.com/users/Team-Chess-Fusion/followers","following_url":"https://api.github.com/users/Team-Chess-Fusion/following{/other_user}","gists_url":"https://api.github.com/users/Team-Chess-Fusion/gists{/gist_id}","starred_url":"https://api.github.com/users/Team-Chess-Fusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Team-Chess-Fusion/subscriptions","organizations_url":"https://api.github.com/users/Team-Chess-Fusion/orgs","repos_url":"https://api.github.com/users/Team-Chess-Fusion/repos","events_url":"https://api.github.com/users/Team-Chess-Fusion/events{/privacy}","received_events_url":"https://api.github.com/users/Team-Chess-Fusion/received_events","type":"Organization","site_admin":false},"repo":{"id":64042486,"name":"chess-fusion","full_name":"Team-Chess-Fusion/chess-fusion","owner":{"login":"Team-Chess-Fusion","id":20618737,"avatar_url":"https://avatars.githubusercontent.com/u/20618737?v=3","gravatar_id":"","url":"https://api.github.com/users/Team-Chess-Fusion","html_url":"https://github.com/Team-Chess-Fusion","followers_url":"https://api.github.com/users/Team-Chess-Fusion/followers","following_url":"https://api.github.com/users/Team-Chess-Fusion/following{/other_user}","gists_url":"https://api.github.com/users/Team-Chess-Fusion/gists{/gist_id}","starred_url":"https://api.github.com/users/Team-Chess-Fusion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Team-Chess-Fusion/subscriptions","organizations_url":"https://api.github.com/users/Team-Chess-Fusion/orgs","repos_url":"https://api.github.com/users/Team-Chess-Fusion/repos","events_url":"https://api.github.com/users/Team-Chess-Fusion/events{/privacy}","received_events_url":"https://api.github.com/users/Team-Chess-Fusion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Team-Chess-Fusion/chess-fusion","description":"Our awesome chess application","fork":false,"url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion","forks_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/forks","keys_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/teams","hooks_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/hooks","issue_events_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues/events{/number}","events_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/events","assignees_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/assignees{/user}","branches_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/branches{/branch}","tags_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/tags","blobs_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/refs{/sha}","trees_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/statuses/{sha}","languages_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/languages","stargazers_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/stargazers","contributors_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/contributors","subscribers_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/subscribers","subscription_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/subscription","commits_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/commits{/sha}","git_commits_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/git/commits{/sha}","comments_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/comments{/number}","issue_comment_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues/comments{/number}","contents_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/contents/{+path}","compare_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/merges","archive_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/downloads","issues_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues{/number}","pulls_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls{/number}","milestones_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/milestones{/number}","notifications_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/labels{/name}","releases_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/releases{/id}","deployments_url":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/deployments","created_at":"2016-07-24T01:01:44Z","updated_at":"2016-07-29T21:44:04Z","pushed_at":"2016-09-01T14:46:20Z","git_url":"git://github.com/Team-Chess-Fusion/chess-fusion.git","ssh_url":"git@github.com:Team-Chess-Fusion/chess-fusion.git","clone_url":"https://github.com/Team-Chess-Fusion/chess-fusion.git","svn_url":"https://github.com/Team-Chess-Fusion/chess-fusion","homepage":null,"size":286,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/52"},"html":{"href":"https://github.com/Team-Chess-Fusion/chess-fusion/pull/52"},"issue":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues/52"},"comments":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/Team-Chess-Fusion/chess-fusion/statuses/409a00dc1a36409f521514c4bc6fb76e23a55440"}}}}
{"actor":{"display_login":"mscoutermarsh"}}