{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/31029133","id":31029133,"diff_hunk":"@@ -0,0 +1,94 @@\n+require 'sinatra/base'\n+require 'data_mapper'\n+require 'rack-flash'\n+\n+# ----- DATAMAPPER SETUP BEGIN --------#\n+\n+env = ENV['RACK_ENV'] || 'development'\n+\n+DataMapper.setup(:default, \"postgres://localhost/chitter_#{env}\")\n+\n+require './lib/user'\n+require './lib/peep'\n+\n+DataMapper.finalize\n+\n+DataMapper.auto_upgrade!\n+\n+# ------ DATAMAPPER SETUP END ---------#\n+\n+class Chitter < Sinatra::Base\n+\n+  enable :sessions\n+  set :session_secret, 'seekrit' # why does this have to be set?","path":"lib/chitter.rb","position":23,"original_position":23,"commit_id":"76afd62e26345d153178a132a3ea1b90823d4e02","original_commit_id":"76afd62e26345d153178a132a3ea1b90823d4e02","user":{"login":"silvabox","id":3007273,"avatar_url":"https://avatars.githubusercontent.com/u/3007273?v=3","gravatar_id":"","url":"https://api.github.com/users/silvabox","html_url":"https://github.com/silvabox","followers_url":"https://api.github.com/users/silvabox/followers","following_url":"https://api.github.com/users/silvabox/following{/other_user}","gists_url":"https://api.github.com/users/silvabox/gists{/gist_id}","starred_url":"https://api.github.com/users/silvabox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvabox/subscriptions","organizations_url":"https://api.github.com/users/silvabox/orgs","repos_url":"https://api.github.com/users/silvabox/repos","events_url":"https://api.github.com/users/silvabox/events{/privacy}","received_events_url":"https://api.github.com/users/silvabox/received_events","type":"User","site_admin":false},"body":"Check the Sinatra docs to understand `:session_secret`.","created_at":"2015-05-26T12:50:30Z","updated_at":"2015-05-26T12:50:30Z","html_url":"https://github.com/makersacademy/chitter-challenge/pull/68#discussion_r31029133","pull_request_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/31029133"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/68#discussion_r31029133"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/68","id":36161568,"html_url":"https://github.com/makersacademy/chitter-challenge/pull/68","diff_url":"https://github.com/makersacademy/chitter-challenge/pull/68.diff","patch_url":"https://github.com/makersacademy/chitter-challenge/pull/68.patch","issue_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/68","number":68,"state":"open","locked":false,"title":"Chitter challenge","user":{"login":"chidumaga","id":2510116,"avatar_url":"https://avatars.githubusercontent.com/u/2510116?v=3","gravatar_id":"","url":"https://api.github.com/users/chidumaga","html_url":"https://github.com/chidumaga","followers_url":"https://api.github.com/users/chidumaga/followers","following_url":"https://api.github.com/users/chidumaga/following{/other_user}","gists_url":"https://api.github.com/users/chidumaga/gists{/gist_id}","starred_url":"https://api.github.com/users/chidumaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chidumaga/subscriptions","organizations_url":"https://api.github.com/users/chidumaga/orgs","repos_url":"https://api.github.com/users/chidumaga/repos","events_url":"https://api.github.com/users/chidumaga/events{/privacy}","received_events_url":"https://api.github.com/users/chidumaga/received_events","type":"User","site_admin":false},"body":"The code could do with a lot of cleaning up. I've flagged this as a codebase to refactor in week 6.","created_at":"2015-05-25T23:36:20Z","updated_at":"2015-05-26T12:50:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c533206338be8f52999d15af108389e0c2c85b33","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/68/commits","review_comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/68/comments","review_comment_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/68/comments","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/76afd62e26345d153178a132a3ea1b90823d4e02","head":{"label":"chidumaga:master","ref":"master","sha":"76afd62e26345d153178a132a3ea1b90823d4e02","user":{"login":"chidumaga","id":2510116,"avatar_url":"https://avatars.githubusercontent.com/u/2510116?v=3","gravatar_id":"","url":"https://api.github.com/users/chidumaga","html_url":"https://github.com/chidumaga","followers_url":"https://api.github.com/users/chidumaga/followers","following_url":"https://api.github.com/users/chidumaga/following{/other_user}","gists_url":"https://api.github.com/users/chidumaga/gists{/gist_id}","starred_url":"https://api.github.com/users/chidumaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chidumaga/subscriptions","organizations_url":"https://api.github.com/users/chidumaga/orgs","repos_url":"https://api.github.com/users/chidumaga/repos","events_url":"https://api.github.com/users/chidumaga/events{/privacy}","received_events_url":"https://api.github.com/users/chidumaga/received_events","type":"User","site_admin":false},"repo":{"id":36066303,"name":"chitter-challenge","full_name":"chidumaga/chitter-challenge","owner":{"login":"chidumaga","id":2510116,"avatar_url":"https://avatars.githubusercontent.com/u/2510116?v=3","gravatar_id":"","url":"https://api.github.com/users/chidumaga","html_url":"https://github.com/chidumaga","followers_url":"https://api.github.com/users/chidumaga/followers","following_url":"https://api.github.com/users/chidumaga/following{/other_user}","gists_url":"https://api.github.com/users/chidumaga/gists{/gist_id}","starred_url":"https://api.github.com/users/chidumaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chidumaga/subscriptions","organizations_url":"https://api.github.com/users/chidumaga/orgs","repos_url":"https://api.github.com/users/chidumaga/repos","events_url":"https://api.github.com/users/chidumaga/events{/privacy}","received_events_url":"https://api.github.com/users/chidumaga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chidumaga/chitter-challenge","description":"Build a Twitter Clone!","fork":true,"url":"https://api.github.com/repos/chidumaga/chitter-challenge","forks_url":"https://api.github.com/repos/chidumaga/chitter-challenge/forks","keys_url":"https://api.github.com/repos/chidumaga/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chidumaga/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chidumaga/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/chidumaga/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/chidumaga/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/chidumaga/chitter-challenge/events","assignees_url":"https://api.github.com/repos/chidumaga/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/chidumaga/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/chidumaga/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/chidumaga/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chidumaga/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chidumaga/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/chidumaga/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chidumaga/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/chidumaga/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/chidumaga/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/chidumaga/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/chidumaga/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/chidumaga/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/chidumaga/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/chidumaga/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/chidumaga/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/chidumaga/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/chidumaga/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/chidumaga/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chidumaga/chitter-challenge/merges","archive_url":"https://api.github.com/repos/chidumaga/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chidumaga/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/chidumaga/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/chidumaga/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/chidumaga/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/chidumaga/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chidumaga/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/chidumaga/chitter-challenge/releases{/id}","created_at":"2015-05-22T10:21:59Z","updated_at":"2015-05-22T10:22:00Z","pushed_at":"2015-05-25T23:44:40Z","git_url":"git://github.com/chidumaga/chitter-challenge.git","ssh_url":"git@github.com:chidumaga/chitter-challenge.git","clone_url":"https://github.com/chidumaga/chitter-challenge.git","svn_url":"https://github.com/chidumaga/chitter-challenge","homepage":null,"size":128,"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":"e5089a84bb003abe0af9486b5270dcd2f8d1b964","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":26954706,"name":"chitter-challenge","full_name":"makersacademy/chitter-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/chitter-challenge","description":"Build a Twitter Clone!","fork":false,"url":"https://api.github.com/repos/makersacademy/chitter-challenge","forks_url":"https://api.github.com/repos/makersacademy/chitter-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/chitter-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/chitter-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/chitter-challenge/releases{/id}","created_at":"2014-11-21T09:53:31Z","updated_at":"2015-04-10T05:48:20Z","pushed_at":"2015-05-26T12:26:42Z","git_url":"git://github.com/makersacademy/chitter-challenge.git","ssh_url":"git@github.com:makersacademy/chitter-challenge.git","clone_url":"https://github.com/makersacademy/chitter-challenge.git","svn_url":"https://github.com/makersacademy/chitter-challenge","homepage":null,"size":15582,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":15,"forks":74,"open_issues":15,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/68"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/68"},"issue":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/68"},"comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/76afd62e26345d153178a132a3ea1b90823d4e02"}}}}