{"action":"created","comment":{"url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/comments/23349831","id":23349831,"diff_hunk":"@@ -0,0 +1,19 @@\n+class SessionsController < ApplicationController\n+\n+  def create\n+    auth = request.env[\"omniauth.auth\"]\n+    \n+    user = User.find_by_provider_and_uid(auth) ||\n+           User.create_with_omniauth(auth)\n+    session[:user_id] = user.id\n+    flash[:success] = \"Signed in!\"\n+    redirect_to root_url\n+  end\n+\n+  def destroy\n+    session[:user_id] = nil\n+    flash[:success] = \"Signed out!\"\n+    redirect_to root_url\n+  end\n+","path":"app/controllers/sessions_controller.rb","position":18,"original_position":18,"commit_id":"3b9c77bc8f3993f5308c0e1c8c22e8bc71312f95","original_commit_id":"3b9c77bc8f3993f5308c0e1c8c22e8bc71312f95","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":"Extra empty line detected at body end.","created_at":"2015-01-22T01:28:42Z","updated_at":"2015-01-22T01:28:42Z","html_url":"https://github.com/tomtomecek/quizzer/pull/15#discussion_r23349831","pull_request_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/comments/23349831"},"html":{"href":"https://github.com/tomtomecek/quizzer/pull/15#discussion_r23349831"},"pull_request":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/15","id":27811270,"html_url":"https://github.com/tomtomecek/quizzer/pull/15","diff_url":"https://github.com/tomtomecek/quizzer/pull/15.diff","patch_url":"https://github.com/tomtomecek/quizzer/pull/15.patch","issue_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/15","number":15,"state":"open","locked":false,"title":"Development","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-22T01:28:37Z","updated_at":"2015-01-22T01:28:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69d0881fec95561954392c01833f836050fd0ff9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/15/commits","review_comments_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/15/comments","review_comment_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/15/comments","statuses_url":"https://api.github.com/repos/tomtomecek/quizzer/statuses/3b9c77bc8f3993f5308c0e1c8c22e8bc71312f95","head":{"label":"tomtomecek:development","ref":"development","sha":"3b9c77bc8f3993f5308c0e1c8c22e8bc71312f95","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"repo":{"id":29296016,"name":"quizzer","full_name":"tomtomecek/quizzer","owner":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomtomecek/quizzer","description":"Tealeaf Academy Quiz app dealing with missing exam executor.","fork":false,"url":"https://api.github.com/repos/tomtomecek/quizzer","forks_url":"https://api.github.com/repos/tomtomecek/quizzer/forks","keys_url":"https://api.github.com/repos/tomtomecek/quizzer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomtomecek/quizzer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomtomecek/quizzer/teams","hooks_url":"https://api.github.com/repos/tomtomecek/quizzer/hooks","issue_events_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/events{/number}","events_url":"https://api.github.com/repos/tomtomecek/quizzer/events","assignees_url":"https://api.github.com/repos/tomtomecek/quizzer/assignees{/user}","branches_url":"https://api.github.com/repos/tomtomecek/quizzer/branches{/branch}","tags_url":"https://api.github.com/repos/tomtomecek/quizzer/tags","blobs_url":"https://api.github.com/repos/tomtomecek/quizzer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomtomecek/quizzer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomtomecek/quizzer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomtomecek/quizzer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomtomecek/quizzer/statuses/{sha}","languages_url":"https://api.github.com/repos/tomtomecek/quizzer/languages","stargazers_url":"https://api.github.com/repos/tomtomecek/quizzer/stargazers","contributors_url":"https://api.github.com/repos/tomtomecek/quizzer/contributors","subscribers_url":"https://api.github.com/repos/tomtomecek/quizzer/subscribers","subscription_url":"https://api.github.com/repos/tomtomecek/quizzer/subscription","commits_url":"https://api.github.com/repos/tomtomecek/quizzer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomtomecek/quizzer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomtomecek/quizzer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/comments/{number}","contents_url":"https://api.github.com/repos/tomtomecek/quizzer/contents/{+path}","compare_url":"https://api.github.com/repos/tomtomecek/quizzer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomtomecek/quizzer/merges","archive_url":"https://api.github.com/repos/tomtomecek/quizzer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomtomecek/quizzer/downloads","issues_url":"https://api.github.com/repos/tomtomecek/quizzer/issues{/number}","pulls_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls{/number}","milestones_url":"https://api.github.com/repos/tomtomecek/quizzer/milestones{/number}","notifications_url":"https://api.github.com/repos/tomtomecek/quizzer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomtomecek/quizzer/labels{/name}","releases_url":"https://api.github.com/repos/tomtomecek/quizzer/releases{/id}","created_at":"2015-01-15T12:15:54Z","updated_at":"2015-01-19T23:21:51Z","pushed_at":"2015-01-22T01:16:43Z","git_url":"git://github.com/tomtomecek/quizzer.git","ssh_url":"git@github.com:tomtomecek/quizzer.git","clone_url":"https://github.com/tomtomecek/quizzer.git","svn_url":"https://github.com/tomtomecek/quizzer","homepage":null,"size":516,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tomtomecek:master","ref":"master","sha":"e68fd982a2c75b6c21d51f39012989ec2bea0b2f","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"repo":{"id":29296016,"name":"quizzer","full_name":"tomtomecek/quizzer","owner":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomtomecek/quizzer","description":"Tealeaf Academy Quiz app dealing with missing exam executor.","fork":false,"url":"https://api.github.com/repos/tomtomecek/quizzer","forks_url":"https://api.github.com/repos/tomtomecek/quizzer/forks","keys_url":"https://api.github.com/repos/tomtomecek/quizzer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomtomecek/quizzer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomtomecek/quizzer/teams","hooks_url":"https://api.github.com/repos/tomtomecek/quizzer/hooks","issue_events_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/events{/number}","events_url":"https://api.github.com/repos/tomtomecek/quizzer/events","assignees_url":"https://api.github.com/repos/tomtomecek/quizzer/assignees{/user}","branches_url":"https://api.github.com/repos/tomtomecek/quizzer/branches{/branch}","tags_url":"https://api.github.com/repos/tomtomecek/quizzer/tags","blobs_url":"https://api.github.com/repos/tomtomecek/quizzer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomtomecek/quizzer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomtomecek/quizzer/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomtomecek/quizzer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomtomecek/quizzer/statuses/{sha}","languages_url":"https://api.github.com/repos/tomtomecek/quizzer/languages","stargazers_url":"https://api.github.com/repos/tomtomecek/quizzer/stargazers","contributors_url":"https://api.github.com/repos/tomtomecek/quizzer/contributors","subscribers_url":"https://api.github.com/repos/tomtomecek/quizzer/subscribers","subscription_url":"https://api.github.com/repos/tomtomecek/quizzer/subscription","commits_url":"https://api.github.com/repos/tomtomecek/quizzer/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomtomecek/quizzer/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomtomecek/quizzer/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomtomecek/quizzer/issues/comments/{number}","contents_url":"https://api.github.com/repos/tomtomecek/quizzer/contents/{+path}","compare_url":"https://api.github.com/repos/tomtomecek/quizzer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomtomecek/quizzer/merges","archive_url":"https://api.github.com/repos/tomtomecek/quizzer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomtomecek/quizzer/downloads","issues_url":"https://api.github.com/repos/tomtomecek/quizzer/issues{/number}","pulls_url":"https://api.github.com/repos/tomtomecek/quizzer/pulls{/number}","milestones_url":"https://api.github.com/repos/tomtomecek/quizzer/milestones{/number}","notifications_url":"https://api.github.com/repos/tomtomecek/quizzer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomtomecek/quizzer/labels{/name}","releases_url":"https://api.github.com/repos/tomtomecek/quizzer/releases{/id}","created_at":"2015-01-15T12:15:54Z","updated_at":"2015-01-19T23:21:51Z","pushed_at":"2015-01-22T01:16:43Z","git_url":"git://github.com/tomtomecek/quizzer.git","ssh_url":"git@github.com:tomtomecek/quizzer.git","clone_url":"https://github.com/tomtomecek/quizzer.git","svn_url":"https://github.com/tomtomecek/quizzer","homepage":null,"size":516,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/15"},"html":{"href":"https://github.com/tomtomecek/quizzer/pull/15"},"issue":{"href":"https://api.github.com/repos/tomtomecek/quizzer/issues/15"},"comments":{"href":"https://api.github.com/repos/tomtomecek/quizzer/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tomtomecek/quizzer/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/tomtomecek/quizzer/statuses/3b9c77bc8f3993f5308c0e1c8c22e8bc71312f95"}}}}