{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/175357291","pull_request_review_id":104870311,"id":175357291,"diff_hunk":"@@ -0,0 +1,39 @@\n+require 'bcrypt'\n+\n+class User\n+\n+  attr_reader :id, :username, :email, :password\n+\n+  def initialize(id, username, email, password)\n+    @id = id\n+    @username = username\n+    @email = email\n+    @password = password\n+  end\n+\n+  def self.all\n+    users = DatabaseConnection.query(\"SELECT * FROM users;\")\n+    users.map { |element| User.new(element['id'], element['username'], element['email'], element['password']) }\n+  end\n+\n+  def self.create(username, email, password)\n+    password = BCrypt::Password.create(password)\n+    DatabaseConnection.query(\"INSERT INTO users (username, email, password) VALUES('#{username}', '#{email}', '#{password}');\")\n+    user = User.all.last\n+    User.new(user.id, user.username, user.email, user.password)\n+  end\n+\n+  def self.find(id)\n+    return nil unless id\n+    users = DatabaseConnection.query(\"SELECT * FROM users WHERE id=#{id};\")\n+    User.new(users[0]['id'], users[0]['username'], users[0]['email'], users[0]['password'])","path":"lib/user.rb","position":29,"original_position":29,"commit_id":"5515f90d4e3ef141756a702384d9dea96024c0db","original_commit_id":"5515f90d4e3ef141756a702384d9dea96024c0db","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Line is too long. [91/80]","created_at":"2018-03-19T08:28:15Z","updated_at":"2018-03-19T08:28:16Z","html_url":"https://github.com/makersacademy/chitter-challenge/pull/894#discussion_r175357291","pull_request_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/894","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/175357291"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/894#discussion_r175357291"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/894"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/894","id":175831455,"html_url":"https://github.com/makersacademy/chitter-challenge/pull/894","diff_url":"https://github.com/makersacademy/chitter-challenge/pull/894.diff","patch_url":"https://github.com/makersacademy/chitter-challenge/pull/894.patch","issue_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/894","number":894,"state":"open","locked":false,"title":"Finished weekend challenge","user":{"login":"GeorgeDrayson","id":33134274,"avatar_url":"https://avatars1.githubusercontent.com/u/33134274?v=4","gravatar_id":"","url":"https://api.github.com/users/GeorgeDrayson","html_url":"https://github.com/GeorgeDrayson","followers_url":"https://api.github.com/users/GeorgeDrayson/followers","following_url":"https://api.github.com/users/GeorgeDrayson/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeDrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeDrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeDrayson/subscriptions","organizations_url":"https://api.github.com/users/GeorgeDrayson/orgs","repos_url":"https://api.github.com/users/GeorgeDrayson/repos","events_url":"https://api.github.com/users/GeorgeDrayson/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeDrayson/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-19T08:27:59Z","updated_at":"2018-03-19T08:28:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07fbf0e124e71dd3c96d1d5fb41e980ee12c2ad0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/894/commits","review_comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/894/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/894/comments","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/5515f90d4e3ef141756a702384d9dea96024c0db","head":{"label":"GeorgeDrayson:master","ref":"master","sha":"5515f90d4e3ef141756a702384d9dea96024c0db","user":{"login":"GeorgeDrayson","id":33134274,"avatar_url":"https://avatars1.githubusercontent.com/u/33134274?v=4","gravatar_id":"","url":"https://api.github.com/users/GeorgeDrayson","html_url":"https://github.com/GeorgeDrayson","followers_url":"https://api.github.com/users/GeorgeDrayson/followers","following_url":"https://api.github.com/users/GeorgeDrayson/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeDrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeDrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeDrayson/subscriptions","organizations_url":"https://api.github.com/users/GeorgeDrayson/orgs","repos_url":"https://api.github.com/users/GeorgeDrayson/repos","events_url":"https://api.github.com/users/GeorgeDrayson/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeDrayson/received_events","type":"User","site_admin":false},"repo":{"id":125717121,"name":"chitter-challenge","full_name":"GeorgeDrayson/chitter-challenge","owner":{"login":"GeorgeDrayson","id":33134274,"avatar_url":"https://avatars1.githubusercontent.com/u/33134274?v=4","gravatar_id":"","url":"https://api.github.com/users/GeorgeDrayson","html_url":"https://github.com/GeorgeDrayson","followers_url":"https://api.github.com/users/GeorgeDrayson/followers","following_url":"https://api.github.com/users/GeorgeDrayson/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeDrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeDrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeDrayson/subscriptions","organizations_url":"https://api.github.com/users/GeorgeDrayson/orgs","repos_url":"https://api.github.com/users/GeorgeDrayson/repos","events_url":"https://api.github.com/users/GeorgeDrayson/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeDrayson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GeorgeDrayson/chitter-challenge","description":"Build a Twitter Clone!","fork":true,"url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge","forks_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/forks","keys_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/events","assignees_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/merges","archive_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/GeorgeDrayson/chitter-challenge/deployments","created_at":"2018-03-18T11:17:14Z","updated_at":"2018-03-19T08:26:21Z","pushed_at":"2018-03-19T08:26:20Z","git_url":"git://github.com/GeorgeDrayson/chitter-challenge.git","ssh_url":"git@github.com:GeorgeDrayson/chitter-challenge.git","clone_url":"https://github.com/GeorgeDrayson/chitter-challenge.git","svn_url":"https://github.com/GeorgeDrayson/chitter-challenge","homepage":null,"size":407,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"6b620101240bd73392b359e0da6273ba56054969","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars2.githubusercontent.com/u/3636186?v=4","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://avatars2.githubusercontent.com/u/3636186?v=4","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":"2018-02-20T20:03:18Z","pushed_at":"2018-03-19T08:28:01Z","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":392,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":871,"mirror_url":null,"archived":false,"open_issues_count":37,"license":null,"forks":871,"open_issues":37,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/894"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/894"},"issue":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/894"},"comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/894/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/894/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/894/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/5515f90d4e3ef141756a702384d9dea96024c0db"}},"author_association":"NONE"}}
{"actor":{"display_login":"houndci-bot"}}