{"action":"created","comment":{"url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/comments/45075133","id":45075133,"diff_hunk":"@@ -0,0 +1,20 @@\n+$(\".vote\").click(function()\n+{\n+  var voteType = this.id;\n+  var parentId = this.parentElement;\n+  var commentId = parentId.parentElement.id;\n+  var url = window.location.pathname;\n+  var CharacterId = url.substring(url.lastIndexOf(\"characters/\") + 10);\n+  var MoveId = url.substring(url.lastIndexOf(\"/\") + 1);\n+  $.ajax({\n+  METHOD: \"POST\",\n+  url: \"/characters/\" + CharacterId + \"/comment_votes\",\n+  dataType: \"JSON\",\n+  data: { _method:\"put\", comment_id: commentId, vote_type: voteType,\n+         character_id: CharacterId, move_id: MoveId },","path":"app/assets/javascripts/voting.js","position":14,"original_position":14,"commit_id":"e58d58c14227a435accd05de0ba0b5ef4da89f3a","original_commit_id":"e58d58c14227a435accd05de0ba0b5ef4da89f3a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Identifier 'character_id' is not in camel case.<br>Identifier 'move_id' is not in camel case.","created_at":"2015-11-17T15:42:40Z","updated_at":"2015-11-17T15:42:40Z","html_url":"https://github.com/philiptang42/MKX-Frame-Data/pull/28#discussion_r45075133","pull_request_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/comments/45075133"},"html":{"href":"https://github.com/philiptang42/MKX-Frame-Data/pull/28#discussion_r45075133"},"pull_request":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/28","id":50960478,"html_url":"https://github.com/philiptang42/MKX-Frame-Data/pull/28","diff_url":"https://github.com/philiptang42/MKX-Frame-Data/pull/28.diff","patch_url":"https://github.com/philiptang42/MKX-Frame-Data/pull/28.patch","issue_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues/28","number":28,"state":"open","locked":false,"title":"voting system working","user":{"login":"philiptang42","id":12959491,"avatar_url":"https://avatars.githubusercontent.com/u/12959491?v=3","gravatar_id":"","url":"https://api.github.com/users/philiptang42","html_url":"https://github.com/philiptang42","followers_url":"https://api.github.com/users/philiptang42/followers","following_url":"https://api.github.com/users/philiptang42/following{/other_user}","gists_url":"https://api.github.com/users/philiptang42/gists{/gist_id}","starred_url":"https://api.github.com/users/philiptang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philiptang42/subscriptions","organizations_url":"https://api.github.com/users/philiptang42/orgs","repos_url":"https://api.github.com/users/philiptang42/repos","events_url":"https://api.github.com/users/philiptang42/events{/privacy}","received_events_url":"https://api.github.com/users/philiptang42/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-17T15:27:00Z","updated_at":"2015-11-17T15:42:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd7dfbdd9b870055ac45095920ca607db5e8ab98","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/28/commits","review_comments_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/28/comments","review_comment_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/comments{/number}","comments_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues/28/comments","statuses_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/statuses/e58d58c14227a435accd05de0ba0b5ef4da89f3a","head":{"label":"philiptang42:upvote-attempt","ref":"upvote-attempt","sha":"e58d58c14227a435accd05de0ba0b5ef4da89f3a","user":{"login":"philiptang42","id":12959491,"avatar_url":"https://avatars.githubusercontent.com/u/12959491?v=3","gravatar_id":"","url":"https://api.github.com/users/philiptang42","html_url":"https://github.com/philiptang42","followers_url":"https://api.github.com/users/philiptang42/followers","following_url":"https://api.github.com/users/philiptang42/following{/other_user}","gists_url":"https://api.github.com/users/philiptang42/gists{/gist_id}","starred_url":"https://api.github.com/users/philiptang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philiptang42/subscriptions","organizations_url":"https://api.github.com/users/philiptang42/orgs","repos_url":"https://api.github.com/users/philiptang42/repos","events_url":"https://api.github.com/users/philiptang42/events{/privacy}","received_events_url":"https://api.github.com/users/philiptang42/received_events","type":"User","site_admin":false},"repo":{"id":43696331,"name":"MKX-Frame-Data","full_name":"philiptang42/MKX-Frame-Data","owner":{"login":"philiptang42","id":12959491,"avatar_url":"https://avatars.githubusercontent.com/u/12959491?v=3","gravatar_id":"","url":"https://api.github.com/users/philiptang42","html_url":"https://github.com/philiptang42","followers_url":"https://api.github.com/users/philiptang42/followers","following_url":"https://api.github.com/users/philiptang42/following{/other_user}","gists_url":"https://api.github.com/users/philiptang42/gists{/gist_id}","starred_url":"https://api.github.com/users/philiptang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philiptang42/subscriptions","organizations_url":"https://api.github.com/users/philiptang42/orgs","repos_url":"https://api.github.com/users/philiptang42/repos","events_url":"https://api.github.com/users/philiptang42/events{/privacy}","received_events_url":"https://api.github.com/users/philiptang42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/philiptang42/MKX-Frame-Data","description":"","fork":false,"url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data","forks_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/forks","keys_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/teams","hooks_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/hooks","issue_events_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues/events{/number}","events_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/events","assignees_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/assignees{/user}","branches_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/branches{/branch}","tags_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/tags","blobs_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/refs{/sha}","trees_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/statuses/{sha}","languages_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/languages","stargazers_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/stargazers","contributors_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/contributors","subscribers_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/subscribers","subscription_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/subscription","commits_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/commits{/sha}","git_commits_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/commits{/sha}","comments_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/comments{/number}","issue_comment_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues/comments{/number}","contents_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/contents/{+path}","compare_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/merges","archive_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/downloads","issues_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues{/number}","pulls_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls{/number}","milestones_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/milestones{/number}","notifications_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/labels{/name}","releases_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/releases{/id}","created_at":"2015-10-05T15:58:27Z","updated_at":"2015-10-07T18:32:50Z","pushed_at":"2015-11-17T15:42:36Z","git_url":"git://github.com/philiptang42/MKX-Frame-Data.git","ssh_url":"git@github.com:philiptang42/MKX-Frame-Data.git","clone_url":"https://github.com/philiptang42/MKX-Frame-Data.git","svn_url":"https://github.com/philiptang42/MKX-Frame-Data","homepage":null,"size":618658,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"philiptang42:master","ref":"master","sha":"ca1be6e31b50f38f4a1ff5f319ac7fb13a96dfd2","user":{"login":"philiptang42","id":12959491,"avatar_url":"https://avatars.githubusercontent.com/u/12959491?v=3","gravatar_id":"","url":"https://api.github.com/users/philiptang42","html_url":"https://github.com/philiptang42","followers_url":"https://api.github.com/users/philiptang42/followers","following_url":"https://api.github.com/users/philiptang42/following{/other_user}","gists_url":"https://api.github.com/users/philiptang42/gists{/gist_id}","starred_url":"https://api.github.com/users/philiptang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philiptang42/subscriptions","organizations_url":"https://api.github.com/users/philiptang42/orgs","repos_url":"https://api.github.com/users/philiptang42/repos","events_url":"https://api.github.com/users/philiptang42/events{/privacy}","received_events_url":"https://api.github.com/users/philiptang42/received_events","type":"User","site_admin":false},"repo":{"id":43696331,"name":"MKX-Frame-Data","full_name":"philiptang42/MKX-Frame-Data","owner":{"login":"philiptang42","id":12959491,"avatar_url":"https://avatars.githubusercontent.com/u/12959491?v=3","gravatar_id":"","url":"https://api.github.com/users/philiptang42","html_url":"https://github.com/philiptang42","followers_url":"https://api.github.com/users/philiptang42/followers","following_url":"https://api.github.com/users/philiptang42/following{/other_user}","gists_url":"https://api.github.com/users/philiptang42/gists{/gist_id}","starred_url":"https://api.github.com/users/philiptang42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philiptang42/subscriptions","organizations_url":"https://api.github.com/users/philiptang42/orgs","repos_url":"https://api.github.com/users/philiptang42/repos","events_url":"https://api.github.com/users/philiptang42/events{/privacy}","received_events_url":"https://api.github.com/users/philiptang42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/philiptang42/MKX-Frame-Data","description":"","fork":false,"url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data","forks_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/forks","keys_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/teams","hooks_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/hooks","issue_events_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues/events{/number}","events_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/events","assignees_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/assignees{/user}","branches_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/branches{/branch}","tags_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/tags","blobs_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/refs{/sha}","trees_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/statuses/{sha}","languages_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/languages","stargazers_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/stargazers","contributors_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/contributors","subscribers_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/subscribers","subscription_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/subscription","commits_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/commits{/sha}","git_commits_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/git/commits{/sha}","comments_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/comments{/number}","issue_comment_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues/comments{/number}","contents_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/contents/{+path}","compare_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/merges","archive_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/downloads","issues_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues{/number}","pulls_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls{/number}","milestones_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/milestones{/number}","notifications_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/labels{/name}","releases_url":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/releases{/id}","created_at":"2015-10-05T15:58:27Z","updated_at":"2015-10-07T18:32:50Z","pushed_at":"2015-11-17T15:42:36Z","git_url":"git://github.com/philiptang42/MKX-Frame-Data.git","ssh_url":"git@github.com:philiptang42/MKX-Frame-Data.git","clone_url":"https://github.com/philiptang42/MKX-Frame-Data.git","svn_url":"https://github.com/philiptang42/MKX-Frame-Data","homepage":null,"size":618658,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/28"},"html":{"href":"https://github.com/philiptang42/MKX-Frame-Data/pull/28"},"issue":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues/28"},"comments":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/philiptang42/MKX-Frame-Data/statuses/e58d58c14227a435accd05de0ba0b5ef4da89f3a"}}}}