{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/39934340","id":39934340,"diff_hunk":"@@ -0,0 +1,55 @@\n+require 'sinatra/base'\n+require_relative 'rps_helper'\n+\n+class Rps_Challenge < Sinatra::Base\n+  set :views, proc {File.join(root,'..','/views')}\n+\n+  enable :sessions\n+\n+  before do\n+    $result = nil\n+  end\n+\n+  get '/' do\n+    session.clear\n+    erb :index\n+  end\n+\n+  get '/new_game' do\n+    erb :new_game\n+  end\n+\n+  get '/new_session' do\n+    redirect '/new_game' if params[:name] == \"\"\n+    session[:name] = params[:name]\n+    $name = session[:name]\n+    erb :new_session\n+  end\n+\n+  get '/rock' do\n+    $game.p1_move(:rock)\n+    $game.p2_move($cpu.cpu_move)\n+    $result = $game.play\n+    $cpu_move_image_helper = cpu_move_image\n+    erb :new_session\n+  end\n+\n+  get '/paper' do\n+    $game.p1_move(:paper)","path":"lib/rps_challenge.rb","position":38,"original_position":38,"commit_id":"7abc31d8e62ca629195784913b6c76e80129739a","original_commit_id":"7abc31d8e62ca629195784913b6c76e80129739a","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.","created_at":"2015-09-20T20:48:21Z","updated_at":"2015-09-20T20:48:21Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/163#discussion_r39934340","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/163","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/39934340"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/163#discussion_r39934340"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/163"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/163","id":45503572,"html_url":"https://github.com/makersacademy/rps-challenge/pull/163","diff_url":"https://github.com/makersacademy/rps-challenge/pull/163.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/163.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/163","number":163,"state":"open","locked":false,"title":"rps-challenge submission","user":{"login":"Harryandrew","id":13185670,"avatar_url":"https://avatars.githubusercontent.com/u/13185670?v=3","gravatar_id":"","url":"https://api.github.com/users/Harryandrew","html_url":"https://github.com/Harryandrew","followers_url":"https://api.github.com/users/Harryandrew/followers","following_url":"https://api.github.com/users/Harryandrew/following{/other_user}","gists_url":"https://api.github.com/users/Harryandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Harryandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harryandrew/subscriptions","organizations_url":"https://api.github.com/users/Harryandrew/orgs","repos_url":"https://api.github.com/users/Harryandrew/repos","events_url":"https://api.github.com/users/Harryandrew/events{/privacy}","received_events_url":"https://api.github.com/users/Harryandrew/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-20T20:36:32Z","updated_at":"2015-09-20T20:48:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33ab115e5a1f82ac45dfb2794dfd29d6b4a70507","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/163/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/163/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/163/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/7abc31d8e62ca629195784913b6c76e80129739a","head":{"label":"Harryandrew:master","ref":"master","sha":"7abc31d8e62ca629195784913b6c76e80129739a","user":{"login":"Harryandrew","id":13185670,"avatar_url":"https://avatars.githubusercontent.com/u/13185670?v=3","gravatar_id":"","url":"https://api.github.com/users/Harryandrew","html_url":"https://github.com/Harryandrew","followers_url":"https://api.github.com/users/Harryandrew/followers","following_url":"https://api.github.com/users/Harryandrew/following{/other_user}","gists_url":"https://api.github.com/users/Harryandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Harryandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harryandrew/subscriptions","organizations_url":"https://api.github.com/users/Harryandrew/orgs","repos_url":"https://api.github.com/users/Harryandrew/repos","events_url":"https://api.github.com/users/Harryandrew/events{/privacy}","received_events_url":"https://api.github.com/users/Harryandrew/received_events","type":"User","site_admin":false},"repo":{"id":42821399,"name":"rps-challenge","full_name":"Harryandrew/rps-challenge","owner":{"login":"Harryandrew","id":13185670,"avatar_url":"https://avatars.githubusercontent.com/u/13185670?v=3","gravatar_id":"","url":"https://api.github.com/users/Harryandrew","html_url":"https://github.com/Harryandrew","followers_url":"https://api.github.com/users/Harryandrew/followers","following_url":"https://api.github.com/users/Harryandrew/following{/other_user}","gists_url":"https://api.github.com/users/Harryandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Harryandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harryandrew/subscriptions","organizations_url":"https://api.github.com/users/Harryandrew/orgs","repos_url":"https://api.github.com/users/Harryandrew/repos","events_url":"https://api.github.com/users/Harryandrew/events{/privacy}","received_events_url":"https://api.github.com/users/Harryandrew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Harryandrew/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/Harryandrew/rps-challenge","forks_url":"https://api.github.com/repos/Harryandrew/rps-challenge/forks","keys_url":"https://api.github.com/repos/Harryandrew/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Harryandrew/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Harryandrew/rps-challenge/teams","hooks_url":"https://api.github.com/repos/Harryandrew/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/Harryandrew/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Harryandrew/rps-challenge/events","assignees_url":"https://api.github.com/repos/Harryandrew/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Harryandrew/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Harryandrew/rps-challenge/tags","blobs_url":"https://api.github.com/repos/Harryandrew/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Harryandrew/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Harryandrew/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Harryandrew/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Harryandrew/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Harryandrew/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/Harryandrew/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/Harryandrew/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/Harryandrew/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/Harryandrew/rps-challenge/subscription","commits_url":"https://api.github.com/repos/Harryandrew/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Harryandrew/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Harryandrew/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Harryandrew/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Harryandrew/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Harryandrew/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Harryandrew/rps-challenge/merges","archive_url":"https://api.github.com/repos/Harryandrew/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Harryandrew/rps-challenge/downloads","issues_url":"https://api.github.com/repos/Harryandrew/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Harryandrew/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Harryandrew/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Harryandrew/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Harryandrew/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Harryandrew/rps-challenge/releases{/id}","created_at":"2015-09-20T17:04:55Z","updated_at":"2015-09-20T17:04:56Z","pushed_at":"2015-09-20T20:48:17Z","git_url":"git://github.com/Harryandrew/rps-challenge.git","ssh_url":"git@github.com:Harryandrew/rps-challenge.git","clone_url":"https://github.com/Harryandrew/rps-challenge.git","svn_url":"https://github.com/Harryandrew/rps-challenge","homepage":null,"size":1272,"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":"cbb82df47ab9b711d20b47c7c9bd12855d465bb1","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-09-20T20:48:17Z","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":49539,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":170,"mirror_url":null,"open_issues_count":25,"forks":170,"open_issues":25,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/163"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/163"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/163"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/163/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/163/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/163/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/7abc31d8e62ca629195784913b6c76e80129739a"}}}}