{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/72904905","id":72904905,"diff_hunk":"@@ -0,0 +1,88 @@\n+require 'data_mapper'\n+ENV['RACK_ENV'] ||= \"development\"\n+DataMapper.setup(:default, ENV['DATABASE_URL'] || \"postgres://localhost/chitter_development\")\n+\n+\n+require_relative './models/user'\n+require_relative './models/peep'\n+require 'sinatra/flash'\n+require 'sinatra/base'\n+\n+class Chitter < Sinatra::Base\n+  use Rack::MethodOverride\n+\n+  enable :sessions\n+  set :session_secret, 'super secret'\n+  register Sinatra::Flash\n+\n+  get '/' do\n+    erb:index\n+  end\n+\n+  get '/user/new' do\n+    @user = User.new\n+    erb :'user/new'\n+  end\n+\n+  post '/user' do\n+  @user = User.new(name: params[:name],\n+                    username: params[:username],\n+                    email: params[:email],\n+                    password: params[:password],\n+                    password_confirmation: params[:password_confirmation])\n+      if @user.save\n+        session[:user_id] = @user.id\n+        redirect '/'\n+      else\n+        flash.now[:bad] = \"There was a problem with your sign up, Wanna try again?\"\n+        erb :'/user/new'\n+      end\n+    end","path":"app/app.rb","position":40,"original_position":40,"commit_id":"be32055ea3ea457d6ad7236cf38d25217b64ee54","original_commit_id":"be32055ea3ea457d6ad7236cf38d25217b64ee54","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Lint/BlockAlignment: `end` at 40, 4 is not aligned with `post '/user' do` at 27, 2.","created_at":"2016-07-31T14:19:01Z","updated_at":"2016-07-31T14:19:01Z","html_url":"https://github.com/makersacademy/chitter-challenge/pull/393#discussion_r72904905","pull_request_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/393","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/72904905"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/393#discussion_r72904905"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/393"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/393","id":79456550,"html_url":"https://github.com/makersacademy/chitter-challenge/pull/393","diff_url":"https://github.com/makersacademy/chitter-challenge/pull/393.diff","patch_url":"https://github.com/makersacademy/chitter-challenge/pull/393.patch","issue_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/393","number":393,"state":"open","locked":false,"title":"Chitter challenge attempt","user":{"login":"beccapearce","id":17481621,"avatar_url":"https://avatars.githubusercontent.com/u/17481621?v=3","gravatar_id":"","url":"https://api.github.com/users/beccapearce","html_url":"https://github.com/beccapearce","followers_url":"https://api.github.com/users/beccapearce/followers","following_url":"https://api.github.com/users/beccapearce/following{/other_user}","gists_url":"https://api.github.com/users/beccapearce/gists{/gist_id}","starred_url":"https://api.github.com/users/beccapearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beccapearce/subscriptions","organizations_url":"https://api.github.com/users/beccapearce/orgs","repos_url":"https://api.github.com/users/beccapearce/repos","events_url":"https://api.github.com/users/beccapearce/events{/privacy}","received_events_url":"https://api.github.com/users/beccapearce/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-30T12:44:20Z","updated_at":"2016-07-31T14:19:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa2c6df45de2e556345b537958271cb2614ee367","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/393/commits","review_comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/393/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/393/comments","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/be32055ea3ea457d6ad7236cf38d25217b64ee54","head":{"label":"beccapearce:master","ref":"master","sha":"be32055ea3ea457d6ad7236cf38d25217b64ee54","user":{"login":"beccapearce","id":17481621,"avatar_url":"https://avatars.githubusercontent.com/u/17481621?v=3","gravatar_id":"","url":"https://api.github.com/users/beccapearce","html_url":"https://github.com/beccapearce","followers_url":"https://api.github.com/users/beccapearce/followers","following_url":"https://api.github.com/users/beccapearce/following{/other_user}","gists_url":"https://api.github.com/users/beccapearce/gists{/gist_id}","starred_url":"https://api.github.com/users/beccapearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beccapearce/subscriptions","organizations_url":"https://api.github.com/users/beccapearce/orgs","repos_url":"https://api.github.com/users/beccapearce/repos","events_url":"https://api.github.com/users/beccapearce/events{/privacy}","received_events_url":"https://api.github.com/users/beccapearce/received_events","type":"User","site_admin":false},"repo":{"id":64485103,"name":"chitter-challenge","full_name":"beccapearce/chitter-challenge","owner":{"login":"beccapearce","id":17481621,"avatar_url":"https://avatars.githubusercontent.com/u/17481621?v=3","gravatar_id":"","url":"https://api.github.com/users/beccapearce","html_url":"https://github.com/beccapearce","followers_url":"https://api.github.com/users/beccapearce/followers","following_url":"https://api.github.com/users/beccapearce/following{/other_user}","gists_url":"https://api.github.com/users/beccapearce/gists{/gist_id}","starred_url":"https://api.github.com/users/beccapearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beccapearce/subscriptions","organizations_url":"https://api.github.com/users/beccapearce/orgs","repos_url":"https://api.github.com/users/beccapearce/repos","events_url":"https://api.github.com/users/beccapearce/events{/privacy}","received_events_url":"https://api.github.com/users/beccapearce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beccapearce/chitter-challenge","description":"Build a Twitter Clone!","fork":true,"url":"https://api.github.com/repos/beccapearce/chitter-challenge","forks_url":"https://api.github.com/repos/beccapearce/chitter-challenge/forks","keys_url":"https://api.github.com/repos/beccapearce/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beccapearce/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beccapearce/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/beccapearce/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/beccapearce/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/beccapearce/chitter-challenge/events","assignees_url":"https://api.github.com/repos/beccapearce/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/beccapearce/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/beccapearce/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/beccapearce/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beccapearce/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beccapearce/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/beccapearce/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beccapearce/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/beccapearce/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/beccapearce/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/beccapearce/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/beccapearce/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/beccapearce/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/beccapearce/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/beccapearce/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/beccapearce/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/beccapearce/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/beccapearce/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/beccapearce/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beccapearce/chitter-challenge/merges","archive_url":"https://api.github.com/repos/beccapearce/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beccapearce/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/beccapearce/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/beccapearce/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/beccapearce/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/beccapearce/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beccapearce/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/beccapearce/chitter-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/beccapearce/chitter-challenge/deployments","created_at":"2016-07-29T14:02:47Z","updated_at":"2016-07-29T14:02:48Z","pushed_at":"2016-07-31T14:18:52Z","git_url":"git://github.com/beccapearce/chitter-challenge.git","ssh_url":"git@github.com:beccapearce/chitter-challenge.git","clone_url":"https://github.com/beccapearce/chitter-challenge.git","svn_url":"https://github.com/beccapearce/chitter-challenge","homepage":null,"size":98,"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":"240efd897c01c9e55dcddbe390d78ab5da47565c","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}","deployments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/deployments","created_at":"2014-11-21T09:53:31Z","updated_at":"2016-02-12T17:12:06Z","pushed_at":"2016-07-31T14:18:53Z","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":79415,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":432,"mirror_url":null,"open_issues_count":70,"forks":432,"open_issues":70,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/393"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/393"},"issue":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/393"},"comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/393/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/393/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/393/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/be32055ea3ea457d6ad7236cf38d25217b64ee54"}}}}
{"actor":{"display_login":"houndci-bot"}}