{"action":"created","comment":{"url":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/comments/41343004","id":41343004,"diff_hunk":"@@ -0,0 +1,35 @@\n+$(document).ready(function() {\n+  $('.upvote_rec').on(\"click\", function(event) {\n+    event.preventDefault();\n+    var recId = event.currentTarget.attributes[1].value;\n+    $.ajax({\n+      method: 'PUT',\n+      url: '/recommendations/' + recId + '/like',\n+      success: function(data){\n+        if(data[2] === true){\n+          $('.update-rating-' + data[0].id).html(\n+            data[1]\n+          )} else {\n+            alert('You need to sign in to vote!')\n+        };\n+      }\n+    });\n+  });\n+\n+  $('.downvote_rec').on(\"click\", function(event) {\n+    event.preventDefault();\n+    var recId = event.currentTarget.attributes[1].value;\n+    $.ajax({\n+      method: 'PUT',\n+      url: '/recommendations/' + recId + '/dislike',\n+      success: function(data){\n+        if(data[2] === true){\n+          $('.update-rating-' + data[0].id).html(\n+            data[1]\n+          )} else {\n+            alert('You need to sign in to vote!')\n+        };","path":"app/assets/javascripts/votes.js","position":31,"original_position":31,"commit_id":"1ab9d931c5e16d369a6b445e20e446db19e79171","original_commit_id":"1ab9d931c5e16d369a6b445e20e446db19e79171","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":"Unnecessary semicolon.","created_at":"2015-10-07T01:24:56Z","updated_at":"2015-10-07T01:24:56Z","html_url":"https://github.com/nathanielltaylor/trend-map/pull/2#discussion_r41343004","pull_request_url":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/comments/41343004"},"html":{"href":"https://github.com/nathanielltaylor/trend-map/pull/2#discussion_r41343004"},"pull_request":{"href":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/2","id":46977738,"html_url":"https://github.com/nathanielltaylor/trend-map/pull/2","diff_url":"https://github.com/nathanielltaylor/trend-map/pull/2.diff","patch_url":"https://github.com/nathanielltaylor/trend-map/pull/2.patch","issue_url":"https://api.github.com/repos/nathanielltaylor/trend-map/issues/2","number":2,"state":"open","locked":false,"title":"Votes","user":{"login":"nathanielltaylor","id":12632655,"avatar_url":"https://avatars.githubusercontent.com/u/12632655?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielltaylor","html_url":"https://github.com/nathanielltaylor","followers_url":"https://api.github.com/users/nathanielltaylor/followers","following_url":"https://api.github.com/users/nathanielltaylor/following{/other_user}","gists_url":"https://api.github.com/users/nathanielltaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielltaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielltaylor/subscriptions","organizations_url":"https://api.github.com/users/nathanielltaylor/orgs","repos_url":"https://api.github.com/users/nathanielltaylor/repos","events_url":"https://api.github.com/users/nathanielltaylor/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielltaylor/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-07T01:17:46Z","updated_at":"2015-10-07T01:24:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a2403f17e67c7a6b487a767fa4c7eb932b347e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nathanielltaylor/trend-map/issues/2/comments","statuses_url":"https://api.github.com/repos/nathanielltaylor/trend-map/statuses/1ab9d931c5e16d369a6b445e20e446db19e79171","head":{"label":"nathanielltaylor:votes","ref":"votes","sha":"1ab9d931c5e16d369a6b445e20e446db19e79171","user":{"login":"nathanielltaylor","id":12632655,"avatar_url":"https://avatars.githubusercontent.com/u/12632655?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielltaylor","html_url":"https://github.com/nathanielltaylor","followers_url":"https://api.github.com/users/nathanielltaylor/followers","following_url":"https://api.github.com/users/nathanielltaylor/following{/other_user}","gists_url":"https://api.github.com/users/nathanielltaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielltaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielltaylor/subscriptions","organizations_url":"https://api.github.com/users/nathanielltaylor/orgs","repos_url":"https://api.github.com/users/nathanielltaylor/repos","events_url":"https://api.github.com/users/nathanielltaylor/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielltaylor/received_events","type":"User","site_admin":false},"repo":{"id":43225861,"name":"trend-map","full_name":"nathanielltaylor/trend-map","owner":{"login":"nathanielltaylor","id":12632655,"avatar_url":"https://avatars.githubusercontent.com/u/12632655?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielltaylor","html_url":"https://github.com/nathanielltaylor","followers_url":"https://api.github.com/users/nathanielltaylor/followers","following_url":"https://api.github.com/users/nathanielltaylor/following{/other_user}","gists_url":"https://api.github.com/users/nathanielltaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielltaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielltaylor/subscriptions","organizations_url":"https://api.github.com/users/nathanielltaylor/orgs","repos_url":"https://api.github.com/users/nathanielltaylor/repos","events_url":"https://api.github.com/users/nathanielltaylor/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielltaylor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathanielltaylor/trend-map","description":"Mapping trending topics to their geographic locations","fork":false,"url":"https://api.github.com/repos/nathanielltaylor/trend-map","forks_url":"https://api.github.com/repos/nathanielltaylor/trend-map/forks","keys_url":"https://api.github.com/repos/nathanielltaylor/trend-map/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathanielltaylor/trend-map/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathanielltaylor/trend-map/teams","hooks_url":"https://api.github.com/repos/nathanielltaylor/trend-map/hooks","issue_events_url":"https://api.github.com/repos/nathanielltaylor/trend-map/issues/events{/number}","events_url":"https://api.github.com/repos/nathanielltaylor/trend-map/events","assignees_url":"https://api.github.com/repos/nathanielltaylor/trend-map/assignees{/user}","branches_url":"https://api.github.com/repos/nathanielltaylor/trend-map/branches{/branch}","tags_url":"https://api.github.com/repos/nathanielltaylor/trend-map/tags","blobs_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathanielltaylor/trend-map/statuses/{sha}","languages_url":"https://api.github.com/repos/nathanielltaylor/trend-map/languages","stargazers_url":"https://api.github.com/repos/nathanielltaylor/trend-map/stargazers","contributors_url":"https://api.github.com/repos/nathanielltaylor/trend-map/contributors","subscribers_url":"https://api.github.com/repos/nathanielltaylor/trend-map/subscribers","subscription_url":"https://api.github.com/repos/nathanielltaylor/trend-map/subscription","commits_url":"https://api.github.com/repos/nathanielltaylor/trend-map/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathanielltaylor/trend-map/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathanielltaylor/trend-map/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathanielltaylor/trend-map/contents/{+path}","compare_url":"https://api.github.com/repos/nathanielltaylor/trend-map/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathanielltaylor/trend-map/merges","archive_url":"https://api.github.com/repos/nathanielltaylor/trend-map/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathanielltaylor/trend-map/downloads","issues_url":"https://api.github.com/repos/nathanielltaylor/trend-map/issues{/number}","pulls_url":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls{/number}","milestones_url":"https://api.github.com/repos/nathanielltaylor/trend-map/milestones{/number}","notifications_url":"https://api.github.com/repos/nathanielltaylor/trend-map/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathanielltaylor/trend-map/labels{/name}","releases_url":"https://api.github.com/repos/nathanielltaylor/trend-map/releases{/id}","created_at":"2015-09-26T22:42:21Z","updated_at":"2015-10-05T00:11:51Z","pushed_at":"2015-10-07T01:24:52Z","git_url":"git://github.com/nathanielltaylor/trend-map.git","ssh_url":"git@github.com:nathanielltaylor/trend-map.git","clone_url":"https://github.com/nathanielltaylor/trend-map.git","svn_url":"https://github.com/nathanielltaylor/trend-map","homepage":null,"size":172,"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":"nathanielltaylor:master","ref":"master","sha":"671f1a60854273464214743baf83f9b3d1d99ac1","user":{"login":"nathanielltaylor","id":12632655,"avatar_url":"https://avatars.githubusercontent.com/u/12632655?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielltaylor","html_url":"https://github.com/nathanielltaylor","followers_url":"https://api.github.com/users/nathanielltaylor/followers","following_url":"https://api.github.com/users/nathanielltaylor/following{/other_user}","gists_url":"https://api.github.com/users/nathanielltaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielltaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielltaylor/subscriptions","organizations_url":"https://api.github.com/users/nathanielltaylor/orgs","repos_url":"https://api.github.com/users/nathanielltaylor/repos","events_url":"https://api.github.com/users/nathanielltaylor/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielltaylor/received_events","type":"User","site_admin":false},"repo":{"id":43225861,"name":"trend-map","full_name":"nathanielltaylor/trend-map","owner":{"login":"nathanielltaylor","id":12632655,"avatar_url":"https://avatars.githubusercontent.com/u/12632655?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielltaylor","html_url":"https://github.com/nathanielltaylor","followers_url":"https://api.github.com/users/nathanielltaylor/followers","following_url":"https://api.github.com/users/nathanielltaylor/following{/other_user}","gists_url":"https://api.github.com/users/nathanielltaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielltaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielltaylor/subscriptions","organizations_url":"https://api.github.com/users/nathanielltaylor/orgs","repos_url":"https://api.github.com/users/nathanielltaylor/repos","events_url":"https://api.github.com/users/nathanielltaylor/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielltaylor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathanielltaylor/trend-map","description":"Mapping trending topics to their geographic locations","fork":false,"url":"https://api.github.com/repos/nathanielltaylor/trend-map","forks_url":"https://api.github.com/repos/nathanielltaylor/trend-map/forks","keys_url":"https://api.github.com/repos/nathanielltaylor/trend-map/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathanielltaylor/trend-map/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathanielltaylor/trend-map/teams","hooks_url":"https://api.github.com/repos/nathanielltaylor/trend-map/hooks","issue_events_url":"https://api.github.com/repos/nathanielltaylor/trend-map/issues/events{/number}","events_url":"https://api.github.com/repos/nathanielltaylor/trend-map/events","assignees_url":"https://api.github.com/repos/nathanielltaylor/trend-map/assignees{/user}","branches_url":"https://api.github.com/repos/nathanielltaylor/trend-map/branches{/branch}","tags_url":"https://api.github.com/repos/nathanielltaylor/trend-map/tags","blobs_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathanielltaylor/trend-map/statuses/{sha}","languages_url":"https://api.github.com/repos/nathanielltaylor/trend-map/languages","stargazers_url":"https://api.github.com/repos/nathanielltaylor/trend-map/stargazers","contributors_url":"https://api.github.com/repos/nathanielltaylor/trend-map/contributors","subscribers_url":"https://api.github.com/repos/nathanielltaylor/trend-map/subscribers","subscription_url":"https://api.github.com/repos/nathanielltaylor/trend-map/subscription","commits_url":"https://api.github.com/repos/nathanielltaylor/trend-map/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathanielltaylor/trend-map/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathanielltaylor/trend-map/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathanielltaylor/trend-map/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathanielltaylor/trend-map/contents/{+path}","compare_url":"https://api.github.com/repos/nathanielltaylor/trend-map/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathanielltaylor/trend-map/merges","archive_url":"https://api.github.com/repos/nathanielltaylor/trend-map/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathanielltaylor/trend-map/downloads","issues_url":"https://api.github.com/repos/nathanielltaylor/trend-map/issues{/number}","pulls_url":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls{/number}","milestones_url":"https://api.github.com/repos/nathanielltaylor/trend-map/milestones{/number}","notifications_url":"https://api.github.com/repos/nathanielltaylor/trend-map/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathanielltaylor/trend-map/labels{/name}","releases_url":"https://api.github.com/repos/nathanielltaylor/trend-map/releases{/id}","created_at":"2015-09-26T22:42:21Z","updated_at":"2015-10-05T00:11:51Z","pushed_at":"2015-10-07T01:24:52Z","git_url":"git://github.com/nathanielltaylor/trend-map.git","ssh_url":"git@github.com:nathanielltaylor/trend-map.git","clone_url":"https://github.com/nathanielltaylor/trend-map.git","svn_url":"https://github.com/nathanielltaylor/trend-map","homepage":null,"size":172,"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/nathanielltaylor/trend-map/pulls/2"},"html":{"href":"https://github.com/nathanielltaylor/trend-map/pull/2"},"issue":{"href":"https://api.github.com/repos/nathanielltaylor/trend-map/issues/2"},"comments":{"href":"https://api.github.com/repos/nathanielltaylor/trend-map/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nathanielltaylor/trend-map/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nathanielltaylor/trend-map/statuses/1ab9d931c5e16d369a6b445e20e446db19e79171"}}}}