{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/36892119","id":36892119,"diff_hunk":"@@ -0,0 +1,47 @@\n+require 'sinatra/base'\n+require './lib/player'\n+require './lib/game'\n+\n+class Rps < Sinatra::Base\n+  @@game = Game.new\n+\n+  enable :sessions\n+\n+  get '/' do\n+    erb :index\n+  end\n+\n+  post '/name' do\n+    if @@game.player1\n+      session[:name2] = params[:name]\n+      @@game.set_player Player.new params[:name]\n+      redirect '/game'\n+    else\n+      session[:name1] = params[:name]\n+      @@game.set_player Player.new params[:name]\n+      redirect '/'\n+    end\n+  end\n+\n+  get '/game' do\n+    @name1 = session[:name1]\n+    @name2 = session[:name2]\n+    erb :game\n+  end\n+\n+  post '/result' do\n+    @name1 = session[:name1]\n+    @name2 = session[:name2]\n+    @choice1 = params[:choice1].to_sym\n+    @choice2 = params[:choice2].to_sym\n+    @outcome = @@game.play @choice1, @choice2\n+    erb :result\n+  end\n+\n+ get '/result' do\n+  erb :result","path":"lib/rps_web.rb","position":42,"original_position":42,"commit_id":"a488c03016d1e1ebf9b95e7337d11d7ef73e22de","original_commit_id":"a488c03016d1e1ebf9b95e7337d11d7ef73e22de","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":"Use 2 (not 1) spaces for indentation.","created_at":"2015-08-12T17:57:31Z","updated_at":"2015-08-12T17:57:31Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/134#discussion_r36892119","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/36892119"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/134#discussion_r36892119"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/134","id":42268653,"html_url":"https://github.com/makersacademy/rps-challenge/pull/134","diff_url":"https://github.com/makersacademy/rps-challenge/pull/134.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/134.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/134","number":134,"state":"open","locked":false,"title":"Game with two players","user":{"login":"raphlevy","id":12574604,"avatar_url":"https://avatars.githubusercontent.com/u/12574604?v=3","gravatar_id":"","url":"https://api.github.com/users/raphlevy","html_url":"https://github.com/raphlevy","followers_url":"https://api.github.com/users/raphlevy/followers","following_url":"https://api.github.com/users/raphlevy/following{/other_user}","gists_url":"https://api.github.com/users/raphlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/raphlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphlevy/subscriptions","organizations_url":"https://api.github.com/users/raphlevy/orgs","repos_url":"https://api.github.com/users/raphlevy/repos","events_url":"https://api.github.com/users/raphlevy/events{/privacy}","received_events_url":"https://api.github.com/users/raphlevy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-12T17:57:23Z","updated_at":"2015-08-12T17:57:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe65f53a4a51c8a69999bde43904f7f00cc05e85","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/134/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/134/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/134/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/a488c03016d1e1ebf9b95e7337d11d7ef73e22de","head":{"label":"raphlevy:master","ref":"master","sha":"a488c03016d1e1ebf9b95e7337d11d7ef73e22de","user":{"login":"raphlevy","id":12574604,"avatar_url":"https://avatars.githubusercontent.com/u/12574604?v=3","gravatar_id":"","url":"https://api.github.com/users/raphlevy","html_url":"https://github.com/raphlevy","followers_url":"https://api.github.com/users/raphlevy/followers","following_url":"https://api.github.com/users/raphlevy/following{/other_user}","gists_url":"https://api.github.com/users/raphlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/raphlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphlevy/subscriptions","organizations_url":"https://api.github.com/users/raphlevy/orgs","repos_url":"https://api.github.com/users/raphlevy/repos","events_url":"https://api.github.com/users/raphlevy/events{/privacy}","received_events_url":"https://api.github.com/users/raphlevy/received_events","type":"User","site_admin":false},"repo":{"id":40431504,"name":"rps-challenge","full_name":"raphlevy/rps-challenge","owner":{"login":"raphlevy","id":12574604,"avatar_url":"https://avatars.githubusercontent.com/u/12574604?v=3","gravatar_id":"","url":"https://api.github.com/users/raphlevy","html_url":"https://github.com/raphlevy","followers_url":"https://api.github.com/users/raphlevy/followers","following_url":"https://api.github.com/users/raphlevy/following{/other_user}","gists_url":"https://api.github.com/users/raphlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/raphlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphlevy/subscriptions","organizations_url":"https://api.github.com/users/raphlevy/orgs","repos_url":"https://api.github.com/users/raphlevy/repos","events_url":"https://api.github.com/users/raphlevy/events{/privacy}","received_events_url":"https://api.github.com/users/raphlevy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raphlevy/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/raphlevy/rps-challenge","forks_url":"https://api.github.com/repos/raphlevy/rps-challenge/forks","keys_url":"https://api.github.com/repos/raphlevy/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raphlevy/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raphlevy/rps-challenge/teams","hooks_url":"https://api.github.com/repos/raphlevy/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/raphlevy/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/raphlevy/rps-challenge/events","assignees_url":"https://api.github.com/repos/raphlevy/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/raphlevy/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/raphlevy/rps-challenge/tags","blobs_url":"https://api.github.com/repos/raphlevy/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raphlevy/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raphlevy/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/raphlevy/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raphlevy/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/raphlevy/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/raphlevy/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/raphlevy/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/raphlevy/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/raphlevy/rps-challenge/subscription","commits_url":"https://api.github.com/repos/raphlevy/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/raphlevy/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/raphlevy/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/raphlevy/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/raphlevy/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/raphlevy/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raphlevy/rps-challenge/merges","archive_url":"https://api.github.com/repos/raphlevy/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raphlevy/rps-challenge/downloads","issues_url":"https://api.github.com/repos/raphlevy/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/raphlevy/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/raphlevy/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/raphlevy/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raphlevy/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/raphlevy/rps-challenge/releases{/id}","created_at":"2015-08-09T09:33:01Z","updated_at":"2015-08-09T09:33:02Z","pushed_at":"2015-08-12T17:56:29Z","git_url":"git://github.com/raphlevy/rps-challenge.git","ssh_url":"git@github.com:raphlevy/rps-challenge.git","clone_url":"https://github.com/raphlevy/rps-challenge.git","svn_url":"https://github.com/raphlevy/rps-challenge","homepage":null,"size":102,"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":"59953a8672f5fdb2f74d149a875340446276117a","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-08-12T17:57:23Z","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":39058,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":13,"forks":133,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/134"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/134"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/134"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/134/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/134/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/a488c03016d1e1ebf9b95e7337d11d7ef73e22de"}}}}