{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/44874752","id":44874752,"diff_hunk":"@@ -0,0 +1,28 @@\n+require 'sinatra/base'\n+\n+class RPS < Sinatra::Base\n+  enable :sessions\n+\n+  get '/' do\n+    erb :index\n+  end\n+\n+  post '/name' do\n+    session[:player_name] = params[:name]\n+    redirect '/play'\n+  end\n+\n+  get '/play' do\n+    @turn = Turn.new(session)\n+    erb :play\n+  end\n+\n+  post '/play' do\n+    session[:player_shape] = params[:shape].downcase.to_sym\n+    session[:opponent_shape] = Opponent.new.shape\n+    redirect '/play'\n+  end\n+\n+  # start the server if ruby file executed directly\n+  run! if app_file == $0","path":"app.rb","position":27,"original_position":27,"commit_id":"af16005f78b41b3e2267293978a53f08ce9f9515","original_commit_id":"af16005f78b41b3e2267293978a53f08ce9f9515","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/SpecialGlobalVars: Prefer `$PROGRAM_NAME` over `$0`. (https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms)","created_at":"2015-11-15T17:21:24Z","updated_at":"2015-11-15T17:21:24Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/216#discussion_r44874752","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/216","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/44874752"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/216#discussion_r44874752"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/216"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/216","id":50751127,"html_url":"https://github.com/makersacademy/rps-challenge/pull/216","diff_url":"https://github.com/makersacademy/rps-challenge/pull/216.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/216.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/216","number":216,"state":"open","locked":false,"title":"New version","user":{"login":"OctavianRotari","id":10881613,"avatar_url":"https://avatars.githubusercontent.com/u/10881613?v=3","gravatar_id":"","url":"https://api.github.com/users/OctavianRotari","html_url":"https://github.com/OctavianRotari","followers_url":"https://api.github.com/users/OctavianRotari/followers","following_url":"https://api.github.com/users/OctavianRotari/following{/other_user}","gists_url":"https://api.github.com/users/OctavianRotari/gists{/gist_id}","starred_url":"https://api.github.com/users/OctavianRotari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OctavianRotari/subscriptions","organizations_url":"https://api.github.com/users/OctavianRotari/orgs","repos_url":"https://api.github.com/users/OctavianRotari/repos","events_url":"https://api.github.com/users/OctavianRotari/events{/privacy}","received_events_url":"https://api.github.com/users/OctavianRotari/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-15T17:21:20Z","updated_at":"2015-11-15T17:21:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b9a593e0de1bbf7998c37f136275cd2404e3d89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/216/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/216/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/216/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/af16005f78b41b3e2267293978a53f08ce9f9515","head":{"label":"OctavianRotari:new_version","ref":"new_version","sha":"af16005f78b41b3e2267293978a53f08ce9f9515","user":{"login":"OctavianRotari","id":10881613,"avatar_url":"https://avatars.githubusercontent.com/u/10881613?v=3","gravatar_id":"","url":"https://api.github.com/users/OctavianRotari","html_url":"https://github.com/OctavianRotari","followers_url":"https://api.github.com/users/OctavianRotari/followers","following_url":"https://api.github.com/users/OctavianRotari/following{/other_user}","gists_url":"https://api.github.com/users/OctavianRotari/gists{/gist_id}","starred_url":"https://api.github.com/users/OctavianRotari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OctavianRotari/subscriptions","organizations_url":"https://api.github.com/users/OctavianRotari/orgs","repos_url":"https://api.github.com/users/OctavianRotari/repos","events_url":"https://api.github.com/users/OctavianRotari/events{/privacy}","received_events_url":"https://api.github.com/users/OctavianRotari/received_events","type":"User","site_admin":false},"repo":{"id":45342405,"name":"rps-challenge","full_name":"OctavianRotari/rps-challenge","owner":{"login":"OctavianRotari","id":10881613,"avatar_url":"https://avatars.githubusercontent.com/u/10881613?v=3","gravatar_id":"","url":"https://api.github.com/users/OctavianRotari","html_url":"https://github.com/OctavianRotari","followers_url":"https://api.github.com/users/OctavianRotari/followers","following_url":"https://api.github.com/users/OctavianRotari/following{/other_user}","gists_url":"https://api.github.com/users/OctavianRotari/gists{/gist_id}","starred_url":"https://api.github.com/users/OctavianRotari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OctavianRotari/subscriptions","organizations_url":"https://api.github.com/users/OctavianRotari/orgs","repos_url":"https://api.github.com/users/OctavianRotari/repos","events_url":"https://api.github.com/users/OctavianRotari/events{/privacy}","received_events_url":"https://api.github.com/users/OctavianRotari/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OctavianRotari/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/OctavianRotari/rps-challenge","forks_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/forks","keys_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/teams","hooks_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/events","assignees_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/tags","blobs_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/subscription","commits_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/merges","archive_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/downloads","issues_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/OctavianRotari/rps-challenge/releases{/id}","created_at":"2015-11-01T13:56:37Z","updated_at":"2015-11-01T13:56:38Z","pushed_at":"2015-11-15T17:20:50Z","git_url":"git://github.com/OctavianRotari/rps-challenge.git","ssh_url":"git@github.com:OctavianRotari/rps-challenge.git","clone_url":"https://github.com/OctavianRotari/rps-challenge.git","svn_url":"https://github.com/OctavianRotari/rps-challenge","homepage":null,"size":960,"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-11-15T17:21:20Z","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":88960,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":208,"mirror_url":null,"open_issues_count":35,"forks":208,"open_issues":35,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/216"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/216"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/216"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/216/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/216/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/216/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/af16005f78b41b3e2267293978a53f08ce9f9515"}}}}