GitHub PullRequestReviewCommentEvent at 2014-11-06 20:02:08
Repository: level_up_exercises
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/19970849","id":19970849,"diff_hunk":"@@ -0,0 +1,72 @@\n+# run `ruby overlord.rb` to run a webserver for this app\n+\n+require 'sinatra'\n+require 'pry'\n+\n+enable :sessions\n+\n+get '/' do\n+  erb :configure\n+end\n+\n+get '/configure' do\n+  erb :configure\n+end\n+\n+get '/activate' do\n+  erb :activate\n+end\n+\n+get '/deactivate' do\n+  erb :deactivate\n+end\n+\n+post '/configure' do\n+  session[:count] = 0\n+  session[:activation] = params[:activation]\n+  session[:deactivation] = params[:deactivation]\n+  if (session[:deactivation] == nil || session[:deactivation] == \"\")\n+    session[:deactivation] = \"0000\"\n+  end  \n+  if (session[:activation] == nil || session[:activation] == \"\")\n+    session[:activation] = \"1234\"\n+  end\n+  erb :activate\n+end\n+\n+\n+post '/activate' do\n+  act_code = params[:act_code]\n+  if act_code!=session[:activation] \n+    if session[:count] >= 3\n+      erb :activate_three_attempts\n+ \telse session[:count] = session[:count] + 1\n+      erb :go_back\n+    end\n+   else erb :activate_bomb\n+   end\n+end\n+\n+post '/activate_bomb' do\n+  deact_code = params[:deact_code]\n+  if (deact_code == \"0000\" || deact_code == session[:deactivation])\n+    erb :deactivate_bomb\n+  else\n+    \"wrong deactivation code\"\n+  end\n+end\n+\n+post '/deactivate_bomb' do\n+  erb :deactivate_bomb\n+end\n+\n+get '/bomb_exploded' do","path":"overlord/bomb_setup.rb","position":63,"original_position":63,"commit_id":"0e7fc195a412d02a73a0991e4f1e8144b2d95742","original_commit_id":"0e7fc195a412d02a73a0991e4f1e8144b2d95742","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=2","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2014-11-06T20:02:08Z","updated_at":"2014-11-06T20:02:08Z","html_url":"https://github.com/jmmastey/level_up_exercises/pull/232#discussion_r19970849","pull_request_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/232","_links":{"self":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/19970849"},"html":{"href":"https://github.com/jmmastey/level_up_exercises/pull/232#discussion_r19970849"},"pull_request":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/232"}}},"pull_request":{"url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/232","id":24008090,"html_url":"https://github.com/jmmastey/level_up_exercises/pull/232","diff_url":"https://github.com/jmmastey/level_up_exercises/pull/232.diff","patch_url":"https://github.com/jmmastey/level_up_exercises/pull/232.patch","issue_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/232","number":232,"state":"open","locked":false,"title":"Supportive up for review","user":{"login":"rkannan1","id":8366569,"avatar_url":"https://avatars.githubusercontent.com/u/8366569?v=2","gravatar_id":"","url":"https://api.github.com/users/rkannan1","html_url":"https://github.com/rkannan1","followers_url":"https://api.github.com/users/rkannan1/followers","following_url":"https://api.github.com/users/rkannan1/following{/other_user}","gists_url":"https://api.github.com/users/rkannan1/gists{/gist_id}","starred_url":"https://api.github.com/users/rkannan1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkannan1/subscriptions","organizations_url":"https://api.github.com/users/rkannan1/orgs","repos_url":"https://api.github.com/users/rkannan1/repos","events_url":"https://api.github.com/users/rkannan1/events{/privacy}","received_events_url":"https://api.github.com/users/rkannan1/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-06T20:01:15Z","updated_at":"2014-11-06T20:02:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e59427a19d379d7796d00e51211c843b4df806a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/232/commits","review_comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/232/comments","review_comment_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/232/comments","statuses_url":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/0e7fc195a412d02a73a0991e4f1e8144b2d95742","head":{"label":"rkannan1:supportive","ref":"supportive","sha":"0e7fc195a412d02a73a0991e4f1e8144b2d95742","user":{"login":"rkannan1","id":8366569,"avatar_url":"https://avatars.githubusercontent.com/u/8366569?v=2","gravatar_id":"","url":"https://api.github.com/users/rkannan1","html_url":"https://github.com/rkannan1","followers_url":"https://api.github.com/users/rkannan1/followers","following_url":"https://api.github.com/users/rkannan1/following{/other_user}","gists_url":"https://api.github.com/users/rkannan1/gists{/gist_id}","starred_url":"https://api.github.com/users/rkannan1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkannan1/subscriptions","organizations_url":"https://api.github.com/users/rkannan1/orgs","repos_url":"https://api.github.com/users/rkannan1/repos","events_url":"https://api.github.com/users/rkannan1/events{/privacy}","received_events_url":"https://api.github.com/users/rkannan1/received_events","type":"User","site_admin":false},"repo":{"id":23088431,"name":"level_up_exercises","full_name":"rkannan1/level_up_exercises","owner":{"login":"rkannan1","id":8366569,"avatar_url":"https://avatars.githubusercontent.com/u/8366569?v=2","gravatar_id":"","url":"https://api.github.com/users/rkannan1","html_url":"https://github.com/rkannan1","followers_url":"https://api.github.com/users/rkannan1/followers","following_url":"https://api.github.com/users/rkannan1/following{/other_user}","gists_url":"https://api.github.com/users/rkannan1/gists{/gist_id}","starred_url":"https://api.github.com/users/rkannan1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkannan1/subscriptions","organizations_url":"https://api.github.com/users/rkannan1/orgs","repos_url":"https://api.github.com/users/rkannan1/repos","events_url":"https://api.github.com/users/rkannan1/events{/privacy}","received_events_url":"https://api.github.com/users/rkannan1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rkannan1/level_up_exercises","description":"A long series of code-related assignments to challenge starting engineers","fork":true,"url":"https://api.github.com/repos/rkannan1/level_up_exercises","forks_url":"https://api.github.com/repos/rkannan1/level_up_exercises/forks","keys_url":"https://api.github.com/repos/rkannan1/level_up_exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rkannan1/level_up_exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rkannan1/level_up_exercises/teams","hooks_url":"https://api.github.com/repos/rkannan1/level_up_exercises/hooks","issue_events_url":"https://api.github.com/repos/rkannan1/level_up_exercises/issues/events{/number}","events_url":"https://api.github.com/repos/rkannan1/level_up_exercises/events","assignees_url":"https://api.github.com/repos/rkannan1/level_up_exercises/assignees{/user}","branches_url":"https://api.github.com/repos/rkannan1/level_up_exercises/branches{/branch}","tags_url":"https://api.github.com/repos/rkannan1/level_up_exercises/tags","blobs_url":"https://api.github.com/repos/rkannan1/level_up_exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rkannan1/level_up_exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rkannan1/level_up_exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/rkannan1/level_up_exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rkannan1/level_up_exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/rkannan1/level_up_exercises/languages","stargazers_url":"https://api.github.com/repos/rkannan1/level_up_exercises/stargazers","contributors_url":"https://api.github.com/repos/rkannan1/level_up_exercises/contributors","subscribers_url":"https://api.github.com/repos/rkannan1/level_up_exercises/subscribers","subscription_url":"https://api.github.com/repos/rkannan1/level_up_exercises/subscription","commits_url":"https://api.github.com/repos/rkannan1/level_up_exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/rkannan1/level_up_exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/rkannan1/level_up_exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/rkannan1/level_up_exercises/issues/comments/{number}","contents_url":"https://api.github.com/repos/rkannan1/level_up_exercises/contents/{+path}","compare_url":"https://api.github.com/repos/rkannan1/level_up_exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rkannan1/level_up_exercises/merges","archive_url":"https://api.github.com/repos/rkannan1/level_up_exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rkannan1/level_up_exercises/downloads","issues_url":"https://api.github.com/repos/rkannan1/level_up_exercises/issues{/number}","pulls_url":"https://api.github.com/repos/rkannan1/level_up_exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/rkannan1/level_up_exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/rkannan1/level_up_exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rkannan1/level_up_exercises/labels{/name}","releases_url":"https://api.github.com/repos/rkannan1/level_up_exercises/releases{/id}","created_at":"2014-08-18T22:18:29Z","updated_at":"2014-08-21T16:05:41Z","pushed_at":"2014-11-06T19:59:03Z","git_url":"git://github.com/rkannan1/level_up_exercises.git","ssh_url":"git@github.com:rkannan1/level_up_exercises.git","clone_url":"https://github.com/rkannan1/level_up_exercises.git","svn_url":"https://github.com/rkannan1/level_up_exercises","homepage":null,"size":1103,"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":"jmmastey:master","ref":"master","sha":"d6fb3782079429bc5629858bbd6c76ee3d4906b0","user":{"login":"jmmastey","id":302011,"avatar_url":"https://avatars.githubusercontent.com/u/302011?v=2","gravatar_id":"","url":"https://api.github.com/users/jmmastey","html_url":"https://github.com/jmmastey","followers_url":"https://api.github.com/users/jmmastey/followers","following_url":"https://api.github.com/users/jmmastey/following{/other_user}","gists_url":"https://api.github.com/users/jmmastey/gists{/gist_id}","starred_url":"https://api.github.com/users/jmmastey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmmastey/subscriptions","organizations_url":"https://api.github.com/users/jmmastey/orgs","repos_url":"https://api.github.com/users/jmmastey/repos","events_url":"https://api.github.com/users/jmmastey/events{/privacy}","received_events_url":"https://api.github.com/users/jmmastey/received_events","type":"User","site_admin":false},"repo":{"id":20705648,"name":"level_up_exercises","full_name":"jmmastey/level_up_exercises","owner":{"login":"jmmastey","id":302011,"avatar_url":"https://avatars.githubusercontent.com/u/302011?v=2","gravatar_id":"","url":"https://api.github.com/users/jmmastey","html_url":"https://github.com/jmmastey","followers_url":"https://api.github.com/users/jmmastey/followers","following_url":"https://api.github.com/users/jmmastey/following{/other_user}","gists_url":"https://api.github.com/users/jmmastey/gists{/gist_id}","starred_url":"https://api.github.com/users/jmmastey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmmastey/subscriptions","organizations_url":"https://api.github.com/users/jmmastey/orgs","repos_url":"https://api.github.com/users/jmmastey/repos","events_url":"https://api.github.com/users/jmmastey/events{/privacy}","received_events_url":"https://api.github.com/users/jmmastey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmmastey/level_up_exercises","description":"A series of code-related assignments to challenge starting engineers","fork":false,"url":"https://api.github.com/repos/jmmastey/level_up_exercises","forks_url":"https://api.github.com/repos/jmmastey/level_up_exercises/forks","keys_url":"https://api.github.com/repos/jmmastey/level_up_exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmmastey/level_up_exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmmastey/level_up_exercises/teams","hooks_url":"https://api.github.com/repos/jmmastey/level_up_exercises/hooks","issue_events_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/events{/number}","events_url":"https://api.github.com/repos/jmmastey/level_up_exercises/events","assignees_url":"https://api.github.com/repos/jmmastey/level_up_exercises/assignees{/user}","branches_url":"https://api.github.com/repos/jmmastey/level_up_exercises/branches{/branch}","tags_url":"https://api.github.com/repos/jmmastey/level_up_exercises/tags","blobs_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/jmmastey/level_up_exercises/languages","stargazers_url":"https://api.github.com/repos/jmmastey/level_up_exercises/stargazers","contributors_url":"https://api.github.com/repos/jmmastey/level_up_exercises/contributors","subscribers_url":"https://api.github.com/repos/jmmastey/level_up_exercises/subscribers","subscription_url":"https://api.github.com/repos/jmmastey/level_up_exercises/subscription","commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/comments/{number}","contents_url":"https://api.github.com/repos/jmmastey/level_up_exercises/contents/{+path}","compare_url":"https://api.github.com/repos/jmmastey/level_up_exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmmastey/level_up_exercises/merges","archive_url":"https://api.github.com/repos/jmmastey/level_up_exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmmastey/level_up_exercises/downloads","issues_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues{/number}","pulls_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/jmmastey/level_up_exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/jmmastey/level_up_exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmmastey/level_up_exercises/labels{/name}","releases_url":"https://api.github.com/repos/jmmastey/level_up_exercises/releases{/id}","created_at":"2014-06-10T23:42:24Z","updated_at":"2014-10-30T16:04:17Z","pushed_at":"2014-11-05T12:49:26Z","git_url":"git://github.com/jmmastey/level_up_exercises.git","ssh_url":"git@github.com:jmmastey/level_up_exercises.git","clone_url":"https://github.com/jmmastey/level_up_exercises.git","svn_url":"https://github.com/jmmastey/level_up_exercises","homepage":"http://leveluprails.herokuapp.com","size":38413,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":11,"forks":46,"open_issues":11,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/232"},"html":{"href":"https://github.com/jmmastey/level_up_exercises/pull/232"},"issue":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/232"},"comments":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/232/comments"},"review_comments":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/232/comments"},"review_comment":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/232/commits"},"statuses":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/0e7fc195a412d02a73a0991e4f1e8144b2d95742"}}}}