{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/31011090","id":31011090,"diff_hunk":"@@ -0,0 +1,98 @@\n+require 'sinatra/base'\n+require 'rack-flash'\n+require 'data_mapper'\n+require 'tilt/erb'\n+require_relative 'user'\n+\n+env = ENV['RACK_ENV'] || 'development'\n+\n+DataMapper.setup(:default, ENV['DATABASE_URL']  || \"postgres://localhost/chitter_#{env}\")\n+\n+require './lib/user'\n+require './lib/peep' # this needs to be done after datamapper is initialised\n+\n+DataMapper.finalize\n+\n+DataMapper.auto_upgrade!\n+\n+class Chitter < Sinatra::Base\n+\n+\tuse Rack::Flash\n+\tuse Rack::MethodOverride\n+\tenable :sessions\n+\tset :session_secret, 'extremely secret stuff'\n+\n+\thelpers do\n+\t\tdef current_user\n+\t\t\t@current_user ||= User.get(session[:user_id]) if session[:user_id]\n+\t\tend\n+\tend\n+\n+  get '/' do\n+  \t@peeps = Peep.all\n+    erb :index\n+  end\n+\n+  get '/users/new' do\n+  \t@user = User.new\n+  \terb :'users/new'\n+  end\n+\n+  post '/users' do\n+  \t@user = User.create(name: params[:name],\n+  \t\t\t\t\t\t\t\t\t\t\tusername: params[:username],","path":"lib/chitter_web.rb","position":43,"original_position":43,"commit_id":"79764e29752fda284b20078c2d5e010085f5d2b9","original_commit_id":"79764e29752fda284b20078c2d5e010085f5d2b9","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":"Align the elements of a hash literal if they span more than one line.<br>Tab detected.","created_at":"2015-05-26T07:54:40Z","updated_at":"2015-05-26T07:54:40Z","html_url":"https://github.com/makersacademy/chitter-challenge/pull/70#discussion_r31011090","pull_request_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/31011090"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/70#discussion_r31011090"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/70","id":36177157,"html_url":"https://github.com/makersacademy/chitter-challenge/pull/70","diff_url":"https://github.com/makersacademy/chitter-challenge/pull/70.diff","patch_url":"https://github.com/makersacademy/chitter-challenge/pull/70.patch","issue_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/70","number":70,"state":"open","locked":false,"title":"Chitter Challenge","user":{"login":"ashleigh090990","id":8567247,"avatar_url":"https://avatars.githubusercontent.com/u/8567247?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleigh090990","html_url":"https://github.com/ashleigh090990","followers_url":"https://api.github.com/users/ashleigh090990/followers","following_url":"https://api.github.com/users/ashleigh090990/following{/other_user}","gists_url":"https://api.github.com/users/ashleigh090990/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleigh090990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleigh090990/subscriptions","organizations_url":"https://api.github.com/users/ashleigh090990/orgs","repos_url":"https://api.github.com/users/ashleigh090990/repos","events_url":"https://api.github.com/users/ashleigh090990/events{/privacy}","received_events_url":"https://api.github.com/users/ashleigh090990/received_events","type":"User","site_admin":false},"body":"Probably a lot to be desired... And I think I've just found a bug! Will try and fix before 9 :)","created_at":"2015-05-26T07:54:35Z","updated_at":"2015-05-26T07:54:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/70/commits","review_comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/70/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/70/comments","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/79764e29752fda284b20078c2d5e010085f5d2b9","head":{"label":"ashleigh090990:test","ref":"test","sha":"79764e29752fda284b20078c2d5e010085f5d2b9","user":{"login":"ashleigh090990","id":8567247,"avatar_url":"https://avatars.githubusercontent.com/u/8567247?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleigh090990","html_url":"https://github.com/ashleigh090990","followers_url":"https://api.github.com/users/ashleigh090990/followers","following_url":"https://api.github.com/users/ashleigh090990/following{/other_user}","gists_url":"https://api.github.com/users/ashleigh090990/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleigh090990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleigh090990/subscriptions","organizations_url":"https://api.github.com/users/ashleigh090990/orgs","repos_url":"https://api.github.com/users/ashleigh090990/repos","events_url":"https://api.github.com/users/ashleigh090990/events{/privacy}","received_events_url":"https://api.github.com/users/ashleigh090990/received_events","type":"User","site_admin":false},"repo":{"id":36060634,"name":"chitter-challenge","full_name":"ashleigh090990/chitter-challenge","owner":{"login":"ashleigh090990","id":8567247,"avatar_url":"https://avatars.githubusercontent.com/u/8567247?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleigh090990","html_url":"https://github.com/ashleigh090990","followers_url":"https://api.github.com/users/ashleigh090990/followers","following_url":"https://api.github.com/users/ashleigh090990/following{/other_user}","gists_url":"https://api.github.com/users/ashleigh090990/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleigh090990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleigh090990/subscriptions","organizations_url":"https://api.github.com/users/ashleigh090990/orgs","repos_url":"https://api.github.com/users/ashleigh090990/repos","events_url":"https://api.github.com/users/ashleigh090990/events{/privacy}","received_events_url":"https://api.github.com/users/ashleigh090990/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashleigh090990/chitter-challenge","description":"Build a Twitter Clone!","fork":true,"url":"https://api.github.com/repos/ashleigh090990/chitter-challenge","forks_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/forks","keys_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/events","assignees_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/merges","archive_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/ashleigh090990/chitter-challenge/releases{/id}","created_at":"2015-05-22T08:19:13Z","updated_at":"2015-05-22T08:19:13Z","pushed_at":"2015-05-25T16:28:38Z","git_url":"git://github.com/ashleigh090990/chitter-challenge.git","ssh_url":"git@github.com:ashleigh090990/chitter-challenge.git","clone_url":"https://github.com/ashleigh090990/chitter-challenge.git","svn_url":"https://github.com/ashleigh090990/chitter-challenge","homepage":null,"size":291,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"test"}},"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-26T07:54:35Z","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":12,"forks":74,"open_issues":12,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/70"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/70"},"issue":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/70"},"comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/70/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/70/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/79764e29752fda284b20078c2d5e010085f5d2b9"}}}}