{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/47445911","id":47445911,"diff_hunk":"@@ -0,0 +1,59 @@\n+require 'sinatra/base'\n+require_relative 'game'\n+\n+class Rps < Sinatra::Base\n+\n+  enable :sessions\n+\n+  get '/' do\n+    erb(:index)\n+  end\n+\n+  post '/players' do\n+    session[:players] = params[:number_of_players]\n+    redirect '/names'\n+  end\n+\n+  get '/names' do\n+    @players = session[:players]\n+    erb(:names)\n+  end\n+\n+  post '/names' do\n+    session[:player1_name] = params[:player1_name]\n+    session[:player2_name] = params[:player2_name]\n+    redirect '/play'\n+  end\n+\n+  get '/play' do\n+    @players = session[:players]\n+    @player1_name = session[:player1_name]\n+    @player2_name = session[:player2_name]\n+    erb(:play)\n+  end\n+\n+  post '/result' do\n+    if !!session[:p1_choice]\n+      $game = Game.new(session[:p1_choice], params[:player_choice])\n+      redirect '/result'\n+    elsif !!session[:player2_name]","path":"lib/rps.rb","position":39,"original_position":39,"commit_id":"a6daaa9b32693d3441b8583f0f26b6e328c82b5a","original_commit_id":"a6daaa9b32693d3441b8583f0f26b6e328c82b5a","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/DoubleNegation: Avoid the use of double negation (`!!`). (https://github.com/bbatsov/ruby-style-guide#no-bang-bang)","created_at":"2015-12-13T15:26:11Z","updated_at":"2015-12-13T15:26:11Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/226#discussion_r47445911","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/226","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/47445911"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/226#discussion_r47445911"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/226"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/226","id":53480378,"html_url":"https://github.com/makersacademy/rps-challenge/pull/226","diff_url":"https://github.com/makersacademy/rps-challenge/pull/226.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/226.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/226","number":226,"state":"open","locked":false,"title":"Weekend challenge","user":{"login":"Wynndow","id":13836290,"avatar_url":"https://avatars.githubusercontent.com/u/13836290?v=3","gravatar_id":"","url":"https://api.github.com/users/Wynndow","html_url":"https://github.com/Wynndow","followers_url":"https://api.github.com/users/Wynndow/followers","following_url":"https://api.github.com/users/Wynndow/following{/other_user}","gists_url":"https://api.github.com/users/Wynndow/gists{/gist_id}","starred_url":"https://api.github.com/users/Wynndow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wynndow/subscriptions","organizations_url":"https://api.github.com/users/Wynndow/orgs","repos_url":"https://api.github.com/users/Wynndow/repos","events_url":"https://api.github.com/users/Wynndow/events{/privacy}","received_events_url":"https://api.github.com/users/Wynndow/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-12T17:02:04Z","updated_at":"2015-12-13T15:26:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfb9806a29a4fea4c329d3dbc66090795764c006","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/226/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/226/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/226/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/a6daaa9b32693d3441b8583f0f26b6e328c82b5a","head":{"label":"Wynndow:master","ref":"master","sha":"a6daaa9b32693d3441b8583f0f26b6e328c82b5a","user":{"login":"Wynndow","id":13836290,"avatar_url":"https://avatars.githubusercontent.com/u/13836290?v=3","gravatar_id":"","url":"https://api.github.com/users/Wynndow","html_url":"https://github.com/Wynndow","followers_url":"https://api.github.com/users/Wynndow/followers","following_url":"https://api.github.com/users/Wynndow/following{/other_user}","gists_url":"https://api.github.com/users/Wynndow/gists{/gist_id}","starred_url":"https://api.github.com/users/Wynndow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wynndow/subscriptions","organizations_url":"https://api.github.com/users/Wynndow/orgs","repos_url":"https://api.github.com/users/Wynndow/repos","events_url":"https://api.github.com/users/Wynndow/events{/privacy}","received_events_url":"https://api.github.com/users/Wynndow/received_events","type":"User","site_admin":false},"repo":{"id":47876823,"name":"rps-challenge","full_name":"Wynndow/rps-challenge","owner":{"login":"Wynndow","id":13836290,"avatar_url":"https://avatars.githubusercontent.com/u/13836290?v=3","gravatar_id":"","url":"https://api.github.com/users/Wynndow","html_url":"https://github.com/Wynndow","followers_url":"https://api.github.com/users/Wynndow/followers","following_url":"https://api.github.com/users/Wynndow/following{/other_user}","gists_url":"https://api.github.com/users/Wynndow/gists{/gist_id}","starred_url":"https://api.github.com/users/Wynndow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wynndow/subscriptions","organizations_url":"https://api.github.com/users/Wynndow/orgs","repos_url":"https://api.github.com/users/Wynndow/repos","events_url":"https://api.github.com/users/Wynndow/events{/privacy}","received_events_url":"https://api.github.com/users/Wynndow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Wynndow/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/Wynndow/rps-challenge","forks_url":"https://api.github.com/repos/Wynndow/rps-challenge/forks","keys_url":"https://api.github.com/repos/Wynndow/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wynndow/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wynndow/rps-challenge/teams","hooks_url":"https://api.github.com/repos/Wynndow/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/Wynndow/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Wynndow/rps-challenge/events","assignees_url":"https://api.github.com/repos/Wynndow/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Wynndow/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Wynndow/rps-challenge/tags","blobs_url":"https://api.github.com/repos/Wynndow/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wynndow/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wynndow/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wynndow/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wynndow/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Wynndow/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/Wynndow/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/Wynndow/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/Wynndow/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/Wynndow/rps-challenge/subscription","commits_url":"https://api.github.com/repos/Wynndow/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wynndow/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wynndow/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wynndow/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wynndow/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Wynndow/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wynndow/rps-challenge/merges","archive_url":"https://api.github.com/repos/Wynndow/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wynndow/rps-challenge/downloads","issues_url":"https://api.github.com/repos/Wynndow/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Wynndow/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Wynndow/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Wynndow/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wynndow/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Wynndow/rps-challenge/releases{/id}","created_at":"2015-12-12T12:11:36Z","updated_at":"2015-12-12T12:11:37Z","pushed_at":"2015-12-13T15:26:04Z","git_url":"git://github.com/Wynndow/rps-challenge.git","ssh_url":"git@github.com:Wynndow/rps-challenge.git","clone_url":"https://github.com/Wynndow/rps-challenge.git","svn_url":"https://github.com/Wynndow/rps-challenge","homepage":null,"size":51,"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":"6fc18dfbfc6f6d00965811f3cbab77ec906803d5","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-12-12T18:11:38Z","pushed_at":"2015-12-13T15:26:04Z","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":87277,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":231,"mirror_url":null,"open_issues_count":14,"forks":231,"open_issues":14,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/226"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/226"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/226"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/226/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/226/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/226/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/a6daaa9b32693d3441b8583f0f26b6e328c82b5a"}}}}