{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/43564878","id":43564878,"diff_hunk":"@@ -0,0 +1,35 @@\n+require 'sinatra/base'\n+require 'game'\n+require 'player'\n+require 'computer'\n+\n+class RPS < Sinatra::Base\n+\n+  get '/' do\n+    erb (:register)\n+  end\n+\n+  get '/play' do\n+    player1 = Player.new(params[:name])\n+    player2 = Computer.new\n+    $game = Game.new(player1, player2)\n+    @player_name = player1.name\n+    erb :play\n+  end\n+\n+  post '/go' do\n+    $game.set_player1_hand(params[:hand])\n+    $game.set_player2_hand(nil)\n+    $game.play\n+    redirect '/go'\n+  end\n+\n+  get '/go' do\n+    @player1_name = $game.player1_name\n+    @player2_name = $game.player2_name","path":"app/rps.rb","position":29,"original_position":29,"commit_id":"e2439a9cf5333824e7a8dc8a1872db7e72d52590","original_commit_id":"e2439a9cf5333824e7a8dc8a1872db7e72d52590","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":"Style/GlobalVars: Do not introduce global variables. (https://github.com/bbatsov/ruby-style-guide#instance-vars, http://www.zenspider.com/Languages/Ruby/QuickRef.html)","created_at":"2015-10-31T00:27:00Z","updated_at":"2015-10-31T00:27:00Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/181#discussion_r43564878","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/181","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/43564878"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/181#discussion_r43564878"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/181"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/181","id":49336476,"html_url":"https://github.com/makersacademy/rps-challenge/pull/181","diff_url":"https://github.com/makersacademy/rps-challenge/pull/181.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/181.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/181","number":181,"state":"open","locked":false,"title":"Rock Paper Scissors Challenge","user":{"login":"DeathRay1977","id":1090221,"avatar_url":"https://avatars.githubusercontent.com/u/1090221?v=3","gravatar_id":"","url":"https://api.github.com/users/DeathRay1977","html_url":"https://github.com/DeathRay1977","followers_url":"https://api.github.com/users/DeathRay1977/followers","following_url":"https://api.github.com/users/DeathRay1977/following{/other_user}","gists_url":"https://api.github.com/users/DeathRay1977/gists{/gist_id}","starred_url":"https://api.github.com/users/DeathRay1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeathRay1977/subscriptions","organizations_url":"https://api.github.com/users/DeathRay1977/orgs","repos_url":"https://api.github.com/users/DeathRay1977/repos","events_url":"https://api.github.com/users/DeathRay1977/events{/privacy}","received_events_url":"https://api.github.com/users/DeathRay1977/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-31T00:26:52Z","updated_at":"2015-10-31T00:27:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5875065f0195b9d8219d748290c2bcbc882b5112","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/181/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/181/comments","review_comment_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/181/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/e2439a9cf5333824e7a8dc8a1872db7e72d52590","head":{"label":"DeathRay1977:master","ref":"master","sha":"e2439a9cf5333824e7a8dc8a1872db7e72d52590","user":{"login":"DeathRay1977","id":1090221,"avatar_url":"https://avatars.githubusercontent.com/u/1090221?v=3","gravatar_id":"","url":"https://api.github.com/users/DeathRay1977","html_url":"https://github.com/DeathRay1977","followers_url":"https://api.github.com/users/DeathRay1977/followers","following_url":"https://api.github.com/users/DeathRay1977/following{/other_user}","gists_url":"https://api.github.com/users/DeathRay1977/gists{/gist_id}","starred_url":"https://api.github.com/users/DeathRay1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeathRay1977/subscriptions","organizations_url":"https://api.github.com/users/DeathRay1977/orgs","repos_url":"https://api.github.com/users/DeathRay1977/repos","events_url":"https://api.github.com/users/DeathRay1977/events{/privacy}","received_events_url":"https://api.github.com/users/DeathRay1977/received_events","type":"User","site_admin":false},"repo":{"id":45266652,"name":"rps-challenge","full_name":"DeathRay1977/rps-challenge","owner":{"login":"DeathRay1977","id":1090221,"avatar_url":"https://avatars.githubusercontent.com/u/1090221?v=3","gravatar_id":"","url":"https://api.github.com/users/DeathRay1977","html_url":"https://github.com/DeathRay1977","followers_url":"https://api.github.com/users/DeathRay1977/followers","following_url":"https://api.github.com/users/DeathRay1977/following{/other_user}","gists_url":"https://api.github.com/users/DeathRay1977/gists{/gist_id}","starred_url":"https://api.github.com/users/DeathRay1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeathRay1977/subscriptions","organizations_url":"https://api.github.com/users/DeathRay1977/orgs","repos_url":"https://api.github.com/users/DeathRay1977/repos","events_url":"https://api.github.com/users/DeathRay1977/events{/privacy}","received_events_url":"https://api.github.com/users/DeathRay1977/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DeathRay1977/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/DeathRay1977/rps-challenge","forks_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/forks","keys_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/teams","hooks_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/events","assignees_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/tags","blobs_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/subscription","commits_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/merges","archive_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/downloads","issues_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/DeathRay1977/rps-challenge/releases{/id}","created_at":"2015-10-30T17:38:37Z","updated_at":"2015-10-30T17:38:38Z","pushed_at":"2015-10-31T00:23:24Z","git_url":"git://github.com/DeathRay1977/rps-challenge.git","ssh_url":"git@github.com:DeathRay1977/rps-challenge.git","clone_url":"https://github.com/DeathRay1977/rps-challenge.git","svn_url":"https://github.com/DeathRay1977/rps-challenge","homepage":null,"size":78844,"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":"makersacademy:master","ref":"master","sha":"bf3bc763ce825618da0caeb2117833e95f0655a9","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006066,"name":"rps-challenge","full_name":"makersacademy/rps-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":false,"url":"https://api.github.com/repos/makersacademy/rps-challenge","forks_url":"https://api.github.com/repos/makersacademy/rps-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/rps-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/rps-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/rps-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/rps-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/rps-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/rps-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/rps-challenge/releases{/id}","created_at":"2014-11-22T17:15:17Z","updated_at":"2015-04-02T19:30:46Z","pushed_at":"2015-10-31T00:26:52Z","git_url":"git://github.com/makersacademy/rps-challenge.git","ssh_url":"git@github.com:makersacademy/rps-challenge.git","clone_url":"https://github.com/makersacademy/rps-challenge.git","svn_url":"https://github.com/makersacademy/rps-challenge","homepage":null,"size":78844,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":183,"mirror_url":null,"open_issues_count":1,"forks":183,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/181"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/181"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/181"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/181/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/181/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/181/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/e2439a9cf5333824e7a8dc8a1872db7e72d52590"}}}}