GitHub PullRequestReviewCommentEvent at 2014-09-09 19:19:54
Repository: level_up_exercises
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/17321750","id":17321750,"diff_hunk":"@@ -1,14 +1,69 @@\n-# run `ruby overlord.rb` to run a webserver for this app\n+require 'sinatra/base'\n+require 'rack-flash'\n+require_relative 'application_controller'\n \n-require 'sinatra'\n+class Overlord < Sinatra::Application\n \n-enable :sessions\n+  enable :sessions\n+  set :pseudo_in_memory_store, Hash.new({})\n+  set :env, environment\n+  use Rack::Flash\n \n-get '/' do\n-  \"Time to build an app around here. Start time: \" + start_time\n-end\n+  Tilt.register Tilt::ERBTemplate, 'html.erb'\n+\n+  get '/' do\n+    destination, redirected, message = ApplicationController.new.service(get_in_memory_session, request)\n+    flash[:notice] = message if message\n+    redirect to(destination) if redirected\n+\n+    erb :bomb_activation \n+  end\n+\n+  post '/activate' do\n+    destination, redirected = ApplicationController.new.service(get_in_memory_session, request)\n+    redirect to(destination)\n+  end\n+\n+  get '/activated' do\n+    server_side_session = get_in_memory_session\n+    destination, redirected = ApplicationController.new.service(get_in_memory_session, request)\n+    redirect to(destination) if redirected\n+\n+    erb :armed_countdown, locals: {armed_at: server_side_session[:bomb].state[:armed_at], timer: server_side_session[:bomb].state[:timer].to_i, env: settings.env}","path":"overlord/overlord.rb","position":38,"original_position":38,"commit_id":"39e828a8970d6f0c9d549cbb13d97ad56b9ed43d","original_commit_id":"39e828a8970d6f0c9d549cbb13d97ad56b9ed43d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=2","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","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":"Line is too long. [162/80]<br>Space inside { missing.<br>Space inside } missing.","created_at":"2014-09-09T19:19:54Z","updated_at":"2014-09-09T19:19:54Z","html_url":"https://github.com/jmmastey/level_up_exercises/pull/44#discussion_r17321750","pull_request_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/comments/17321750"},"html":{"href":"https://github.com/jmmastey/level_up_exercises/pull/44#discussion_r17321750"},"pull_request":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/44","id":20976788,"html_url":"https://github.com/jmmastey/level_up_exercises/pull/44","diff_url":"https://github.com/jmmastey/level_up_exercises/pull/44.diff","patch_url":"https://github.com/jmmastey/level_up_exercises/pull/44.patch","issue_url":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/44","number":44,"state":"open","locked":false,"title":"Sri | Overlord","user":{"login":"Slania","id":855842,"avatar_url":"https://avatars.githubusercontent.com/u/855842?v=2","gravatar_id":"9a19041daf7652189e0fa4b279ce6eb0","url":"https://api.github.com/users/Slania","html_url":"https://github.com/Slania","followers_url":"https://api.github.com/users/Slania/followers","following_url":"https://api.github.com/users/Slania/following{/other_user}","gists_url":"https://api.github.com/users/Slania/gists{/gist_id}","starred_url":"https://api.github.com/users/Slania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slania/subscriptions","organizations_url":"https://api.github.com/users/Slania/orgs","repos_url":"https://api.github.com/users/Slania/repos","events_url":"https://api.github.com/users/Slania/events{/privacy}","received_events_url":"https://api.github.com/users/Slania/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-09T19:19:43Z","updated_at":"2014-09-09T19:19:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81ae287d4b282537d6d964c8bc928002afab0c76","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/44/commits","review_comments_url":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/44/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/44/comments","statuses_url":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/39e828a8970d6f0c9d549cbb13d97ad56b9ed43d","head":{"label":"Slania:Overlord","ref":"Overlord","sha":"39e828a8970d6f0c9d549cbb13d97ad56b9ed43d","user":{"login":"Slania","id":855842,"avatar_url":"https://avatars.githubusercontent.com/u/855842?v=2","gravatar_id":"9a19041daf7652189e0fa4b279ce6eb0","url":"https://api.github.com/users/Slania","html_url":"https://github.com/Slania","followers_url":"https://api.github.com/users/Slania/followers","following_url":"https://api.github.com/users/Slania/following{/other_user}","gists_url":"https://api.github.com/users/Slania/gists{/gist_id}","starred_url":"https://api.github.com/users/Slania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slania/subscriptions","organizations_url":"https://api.github.com/users/Slania/orgs","repos_url":"https://api.github.com/users/Slania/repos","events_url":"https://api.github.com/users/Slania/events{/privacy}","received_events_url":"https://api.github.com/users/Slania/received_events","type":"User","site_admin":false},"repo":{"id":23846643,"name":"level_up_exercises","full_name":"Slania/level_up_exercises","owner":{"login":"Slania","id":855842,"avatar_url":"https://avatars.githubusercontent.com/u/855842?v=2","gravatar_id":"9a19041daf7652189e0fa4b279ce6eb0","url":"https://api.github.com/users/Slania","html_url":"https://github.com/Slania","followers_url":"https://api.github.com/users/Slania/followers","following_url":"https://api.github.com/users/Slania/following{/other_user}","gists_url":"https://api.github.com/users/Slania/gists{/gist_id}","starred_url":"https://api.github.com/users/Slania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slania/subscriptions","organizations_url":"https://api.github.com/users/Slania/orgs","repos_url":"https://api.github.com/users/Slania/repos","events_url":"https://api.github.com/users/Slania/events{/privacy}","received_events_url":"https://api.github.com/users/Slania/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Slania/level_up_exercises","description":"A long series of code-related assignments to challenge starting engineers","fork":true,"url":"https://api.github.com/repos/Slania/level_up_exercises","forks_url":"https://api.github.com/repos/Slania/level_up_exercises/forks","keys_url":"https://api.github.com/repos/Slania/level_up_exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Slania/level_up_exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Slania/level_up_exercises/teams","hooks_url":"https://api.github.com/repos/Slania/level_up_exercises/hooks","issue_events_url":"https://api.github.com/repos/Slania/level_up_exercises/issues/events{/number}","events_url":"https://api.github.com/repos/Slania/level_up_exercises/events","assignees_url":"https://api.github.com/repos/Slania/level_up_exercises/assignees{/user}","branches_url":"https://api.github.com/repos/Slania/level_up_exercises/branches{/branch}","tags_url":"https://api.github.com/repos/Slania/level_up_exercises/tags","blobs_url":"https://api.github.com/repos/Slania/level_up_exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Slania/level_up_exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Slania/level_up_exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/Slania/level_up_exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Slania/level_up_exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/Slania/level_up_exercises/languages","stargazers_url":"https://api.github.com/repos/Slania/level_up_exercises/stargazers","contributors_url":"https://api.github.com/repos/Slania/level_up_exercises/contributors","subscribers_url":"https://api.github.com/repos/Slania/level_up_exercises/subscribers","subscription_url":"https://api.github.com/repos/Slania/level_up_exercises/subscription","commits_url":"https://api.github.com/repos/Slania/level_up_exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/Slania/level_up_exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/Slania/level_up_exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/Slania/level_up_exercises/issues/comments/{number}","contents_url":"https://api.github.com/repos/Slania/level_up_exercises/contents/{+path}","compare_url":"https://api.github.com/repos/Slania/level_up_exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Slania/level_up_exercises/merges","archive_url":"https://api.github.com/repos/Slania/level_up_exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Slania/level_up_exercises/downloads","issues_url":"https://api.github.com/repos/Slania/level_up_exercises/issues{/number}","pulls_url":"https://api.github.com/repos/Slania/level_up_exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/Slania/level_up_exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/Slania/level_up_exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Slania/level_up_exercises/labels{/name}","releases_url":"https://api.github.com/repos/Slania/level_up_exercises/releases{/id}","created_at":"2014-09-09T19:10:27Z","updated_at":"2014-09-02T21:41:48Z","pushed_at":"2014-09-09T19:18:09Z","git_url":"git://github.com/Slania/level_up_exercises.git","ssh_url":"git@github.com:Slania/level_up_exercises.git","clone_url":"https://github.com/Slania/level_up_exercises.git","svn_url":"https://github.com/Slania/level_up_exercises","homepage":null,"size":3721,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"136b1af958398e3337c6a4055eea783d1e079911","user":{"login":"jmmastey","id":302011,"avatar_url":"https://avatars.githubusercontent.com/u/302011?v=2","gravatar_id":"a9704266587836f7e784235e5073b93e","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":"a9704266587836f7e784235e5073b93e","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 long 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-09-02T21:41:48Z","pushed_at":"2014-09-09T00:55:58Z","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":null,"size":3721,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":21,"mirror_url":null,"open_issues_count":22,"forks":21,"open_issues":22,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/44"},"html":{"href":"https://github.com/jmmastey/level_up_exercises/pull/44"},"issue":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/44"},"comments":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/pulls/44/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/44/commits"},"statuses":{"href":"https://api.github.com/repos/jmmastey/level_up_exercises/statuses/39e828a8970d6f0c9d549cbb13d97ad56b9ed43d"}}}}