{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/33550627","id":33550627,"diff_hunk":"@@ -0,0 +1,77 @@\n+require 'sinatra/base'\n+require_relative 'game'\n+require_relative 'player'\n+require_relative 'computer'\n+\n+class Rps_web < Sinatra::Base\n+enable :sessions\n+\n+  set :views, proc { File.join(root, '..', 'views') }\n+\n+  get '/' do\n+    erb :index\n+  end\n+\n+  post '/welcome' do\n+    if (params[:name] == '' || params[:name] == nil)\n+      redirect '/'\n+    elsif params[:gametype] == \"1 player game\"\n+      session[:name] = params[:name]\n+      $game = Game.new Player, Computer\n+      session[:player] = :player1\n+    elsif $game.nil?\n+      session[:name] = params[:name]\n+      $game = Game.new Player, Player\n+      session[:player] = :player1\n+    else\n+      session[:name] = params[:name]\n+      session[:player] = :player2\n+    end\n+    session[:gametype] = params[:gametype]\n+    redirect '/new_game'\n+  end\n+\n+    #\n+    # $game = Game.new(Player, Computer)\n+    #\n+    # elsif params[:gametype] == \"1 player game\"\n+    #   session[:name] = params[:name]\n+    #   $game = Game.new Player, Computer\n+    #\n+    # else\n+    #   session[:name] = params[:name]\n+    #   session[:player] = :player2\n+    # end\n+\n+\n+  get '/new_game' do","path":"lib/rps_web.rb","position":47,"original_position":47,"commit_id":"983ff44fde0955961ee56b96d993203118f1e1fa","original_commit_id":"983ff44fde0955961ee56b96d993203118f1e1fa","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":"Inconsistent indentation detected.","created_at":"2015-06-30T08:28:26Z","updated_at":"2015-06-30T08:28:26Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/99#discussion_r33550627","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/99","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/33550627"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/99#discussion_r33550627"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/99"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/99","id":38853333,"html_url":"https://github.com/makersacademy/rps-challenge/pull/99","diff_url":"https://github.com/makersacademy/rps-challenge/pull/99.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/99.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/99","number":99,"state":"open","locked":false,"title":"RPS challenge","user":{"login":"salman-karim","id":12249905,"avatar_url":"https://avatars.githubusercontent.com/u/12249905?v=3","gravatar_id":"","url":"https://api.github.com/users/salman-karim","html_url":"https://github.com/salman-karim","followers_url":"https://api.github.com/users/salman-karim/followers","following_url":"https://api.github.com/users/salman-karim/following{/other_user}","gists_url":"https://api.github.com/users/salman-karim/gists{/gist_id}","starred_url":"https://api.github.com/users/salman-karim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salman-karim/subscriptions","organizations_url":"https://api.github.com/users/salman-karim/orgs","repos_url":"https://api.github.com/users/salman-karim/repos","events_url":"https://api.github.com/users/salman-karim/events{/privacy}","received_events_url":"https://api.github.com/users/salman-karim/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-30T08:28:18Z","updated_at":"2015-06-30T08:28:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"183d6f7018b5327bccbf1659ea44423f26107fa2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/99/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/99/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/99/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/983ff44fde0955961ee56b96d993203118f1e1fa","head":{"label":"salman-karim:master","ref":"master","sha":"983ff44fde0955961ee56b96d993203118f1e1fa","user":{"login":"salman-karim","id":12249905,"avatar_url":"https://avatars.githubusercontent.com/u/12249905?v=3","gravatar_id":"","url":"https://api.github.com/users/salman-karim","html_url":"https://github.com/salman-karim","followers_url":"https://api.github.com/users/salman-karim/followers","following_url":"https://api.github.com/users/salman-karim/following{/other_user}","gists_url":"https://api.github.com/users/salman-karim/gists{/gist_id}","starred_url":"https://api.github.com/users/salman-karim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salman-karim/subscriptions","organizations_url":"https://api.github.com/users/salman-karim/orgs","repos_url":"https://api.github.com/users/salman-karim/repos","events_url":"https://api.github.com/users/salman-karim/events{/privacy}","received_events_url":"https://api.github.com/users/salman-karim/received_events","type":"User","site_admin":false},"repo":{"id":38295879,"name":"rps-challenge","full_name":"salman-karim/rps-challenge","owner":{"login":"salman-karim","id":12249905,"avatar_url":"https://avatars.githubusercontent.com/u/12249905?v=3","gravatar_id":"","url":"https://api.github.com/users/salman-karim","html_url":"https://github.com/salman-karim","followers_url":"https://api.github.com/users/salman-karim/followers","following_url":"https://api.github.com/users/salman-karim/following{/other_user}","gists_url":"https://api.github.com/users/salman-karim/gists{/gist_id}","starred_url":"https://api.github.com/users/salman-karim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salman-karim/subscriptions","organizations_url":"https://api.github.com/users/salman-karim/orgs","repos_url":"https://api.github.com/users/salman-karim/repos","events_url":"https://api.github.com/users/salman-karim/events{/privacy}","received_events_url":"https://api.github.com/users/salman-karim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/salman-karim/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/salman-karim/rps-challenge","forks_url":"https://api.github.com/repos/salman-karim/rps-challenge/forks","keys_url":"https://api.github.com/repos/salman-karim/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salman-karim/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salman-karim/rps-challenge/teams","hooks_url":"https://api.github.com/repos/salman-karim/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/salman-karim/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/salman-karim/rps-challenge/events","assignees_url":"https://api.github.com/repos/salman-karim/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/salman-karim/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/salman-karim/rps-challenge/tags","blobs_url":"https://api.github.com/repos/salman-karim/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salman-karim/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salman-karim/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/salman-karim/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salman-karim/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/salman-karim/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/salman-karim/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/salman-karim/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/salman-karim/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/salman-karim/rps-challenge/subscription","commits_url":"https://api.github.com/repos/salman-karim/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/salman-karim/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/salman-karim/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/salman-karim/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/salman-karim/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/salman-karim/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salman-karim/rps-challenge/merges","archive_url":"https://api.github.com/repos/salman-karim/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salman-karim/rps-challenge/downloads","issues_url":"https://api.github.com/repos/salman-karim/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/salman-karim/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/salman-karim/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/salman-karim/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salman-karim/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/salman-karim/rps-challenge/releases{/id}","created_at":"2015-06-30T08:00:00Z","updated_at":"2015-06-30T08:00:00Z","pushed_at":"2015-06-30T08:27:48Z","git_url":"git://github.com/salman-karim/rps-challenge.git","ssh_url":"git@github.com:salman-karim/rps-challenge.git","clone_url":"https://github.com/salman-karim/rps-challenge.git","svn_url":"https://github.com/salman-karim/rps-challenge","homepage":null,"size":38291,"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":"a11d2128e9605c16587bc9377cdee2684f2ed4ae","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-06-30T08:28:18Z","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":38291,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":102,"mirror_url":null,"open_issues_count":23,"forks":102,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/99"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/99"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/99"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/99/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/99/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/983ff44fde0955961ee56b96d993203118f1e1fa"}}}}