{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/40493017","id":40493017,"diff_hunk":"@@ -0,0 +1,35 @@\n+require 'bcrypt'\n+\n+class User\n+\n+  include DataMapper::Resource\n+\n+  property :id, Serial\n+  property :email, String, required: true, unique: true\n+  property :password_digest, Text\n+  property :name, String\n+  property :user_name, String, unique: true\n+\n+  attr_reader :password\n+\n+  def password=(password)\n+    @password = password\n+    self.password_digest = BCrypt::Password.create(password)\n+  end\n+\n+  def self.authenticate(email, password)\n+    user = first(email: email)\n+    if user && password_correct(user, password)\n+      user\n+    else","path":"app/models/user.rb","position":24,"original_position":24,"commit_id":"608af07b36b46eb4db878391944634e554d71dab","original_commit_id":"608af07b36b46eb4db878391944634e554d71dab","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":"Style/EmptyElse: Redundant empty `else`-clause.","created_at":"2015-09-26T12:06:12Z","updated_at":"2015-09-26T12:06:12Z","html_url":"https://github.com/makersacademy/chitter-challenge/pull/137#discussion_r40493017","pull_request_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/137","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/40493017"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/137#discussion_r40493017"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/137"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/137","id":46080156,"html_url":"https://github.com/makersacademy/chitter-challenge/pull/137","diff_url":"https://github.com/makersacademy/chitter-challenge/pull/137.diff","patch_url":"https://github.com/makersacademy/chitter-challenge/pull/137.patch","issue_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/137","number":137,"state":"open","locked":false,"title":"chitter challenge","user":{"login":"Proskurina","id":12256750,"avatar_url":"https://avatars.githubusercontent.com/u/12256750?v=3","gravatar_id":"","url":"https://api.github.com/users/Proskurina","html_url":"https://github.com/Proskurina","followers_url":"https://api.github.com/users/Proskurina/followers","following_url":"https://api.github.com/users/Proskurina/following{/other_user}","gists_url":"https://api.github.com/users/Proskurina/gists{/gist_id}","starred_url":"https://api.github.com/users/Proskurina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Proskurina/subscriptions","organizations_url":"https://api.github.com/users/Proskurina/orgs","repos_url":"https://api.github.com/users/Proskurina/repos","events_url":"https://api.github.com/users/Proskurina/events{/privacy}","received_events_url":"https://api.github.com/users/Proskurina/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-26T11:12:42Z","updated_at":"2015-09-26T12:06:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6431fa1e35d514d3ba90c4461db6c16c909ac77e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/137/commits","review_comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/137/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/137/comments","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/608af07b36b46eb4db878391944634e554d71dab","head":{"label":"Proskurina:master","ref":"master","sha":"608af07b36b46eb4db878391944634e554d71dab","user":{"login":"Proskurina","id":12256750,"avatar_url":"https://avatars.githubusercontent.com/u/12256750?v=3","gravatar_id":"","url":"https://api.github.com/users/Proskurina","html_url":"https://github.com/Proskurina","followers_url":"https://api.github.com/users/Proskurina/followers","following_url":"https://api.github.com/users/Proskurina/following{/other_user}","gists_url":"https://api.github.com/users/Proskurina/gists{/gist_id}","starred_url":"https://api.github.com/users/Proskurina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Proskurina/subscriptions","organizations_url":"https://api.github.com/users/Proskurina/orgs","repos_url":"https://api.github.com/users/Proskurina/repos","events_url":"https://api.github.com/users/Proskurina/events{/privacy}","received_events_url":"https://api.github.com/users/Proskurina/received_events","type":"User","site_admin":false},"repo":{"id":43199269,"name":"chitter-challenge","full_name":"Proskurina/chitter-challenge","owner":{"login":"Proskurina","id":12256750,"avatar_url":"https://avatars.githubusercontent.com/u/12256750?v=3","gravatar_id":"","url":"https://api.github.com/users/Proskurina","html_url":"https://github.com/Proskurina","followers_url":"https://api.github.com/users/Proskurina/followers","following_url":"https://api.github.com/users/Proskurina/following{/other_user}","gists_url":"https://api.github.com/users/Proskurina/gists{/gist_id}","starred_url":"https://api.github.com/users/Proskurina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Proskurina/subscriptions","organizations_url":"https://api.github.com/users/Proskurina/orgs","repos_url":"https://api.github.com/users/Proskurina/repos","events_url":"https://api.github.com/users/Proskurina/events{/privacy}","received_events_url":"https://api.github.com/users/Proskurina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Proskurina/chitter-challenge","description":"Build a Twitter Clone!","fork":true,"url":"https://api.github.com/repos/Proskurina/chitter-challenge","forks_url":"https://api.github.com/repos/Proskurina/chitter-challenge/forks","keys_url":"https://api.github.com/repos/Proskurina/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Proskurina/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Proskurina/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/Proskurina/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/Proskurina/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Proskurina/chitter-challenge/events","assignees_url":"https://api.github.com/repos/Proskurina/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Proskurina/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Proskurina/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/Proskurina/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Proskurina/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Proskurina/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Proskurina/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Proskurina/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Proskurina/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/Proskurina/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/Proskurina/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/Proskurina/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/Proskurina/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/Proskurina/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Proskurina/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Proskurina/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Proskurina/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Proskurina/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Proskurina/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Proskurina/chitter-challenge/merges","archive_url":"https://api.github.com/repos/Proskurina/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Proskurina/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/Proskurina/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Proskurina/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Proskurina/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Proskurina/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Proskurina/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Proskurina/chitter-challenge/releases{/id}","created_at":"2015-09-26T09:09:46Z","updated_at":"2015-09-26T09:09:47Z","pushed_at":"2015-09-26T12:06:08Z","git_url":"git://github.com/Proskurina/chitter-challenge.git","ssh_url":"git@github.com:Proskurina/chitter-challenge.git","clone_url":"https://github.com/Proskurina/chitter-challenge.git","svn_url":"https://github.com/Proskurina/chitter-challenge","homepage":null,"size":82,"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":"537cd3bd8b691e0432d43960c6bdbfea11ce601c","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-09-26T12:06:09Z","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":28812,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":164,"mirror_url":null,"open_issues_count":6,"forks":164,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/137"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/137"},"issue":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/137"},"comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/137/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/137/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/608af07b36b46eb4db878391944634e554d71dab"}}}}