{"action":"created","comment":{"url":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/comments/60820198","id":60820198,"diff_hunk":"@@ -55,4 +54,25 @@ def self.default_user\n   def active_for_authentication?\n     super && email != DEFAULT_USER_EMAIL\n   end\n+\n+  private\n+\n+  def self.find_with_auth_provider(auth)\n+    find_by(provider: auth.provider, uid: auth.uid)\n+  end\n+\n+  def self.find_existing_with_auth_email(auth)","path":"app/models/user.rb","position":25,"original_position":25,"commit_id":"7f7a270cd47b3b3b6fb96e60317988a579869ad5","original_commit_id":"7f7a270cd47b3b3b6fb96e60317988a579869ad5","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":"`private` (on line 58) does not make singleton methods private. Use `private_class_method` or `private` inside a `class << self` block instead.","created_at":"2016-04-23T01:15:54Z","updated_at":"2016-04-23T01:15:54Z","html_url":"https://github.com/montrealrb/Montreal.rb/pull/222#discussion_r60820198","pull_request_url":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/222","_links":{"self":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/comments/60820198"},"html":{"href":"https://github.com/montrealrb/Montreal.rb/pull/222#discussion_r60820198"},"pull_request":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/222"}}},"pull_request":{"url":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/222","id":67590380,"html_url":"https://github.com/montrealrb/Montreal.rb/pull/222","diff_url":"https://github.com/montrealrb/Montreal.rb/pull/222.diff","patch_url":"https://github.com/montrealrb/Montreal.rb/pull/222.patch","issue_url":"https://api.github.com/repos/montrealrb/Montreal.rb/issues/222","number":222,"state":"open","locked":false,"title":"fix GitHub authentication","user":{"login":"sophiedeziel","id":1037105,"avatar_url":"https://avatars.githubusercontent.com/u/1037105?v=3","gravatar_id":"","url":"https://api.github.com/users/sophiedeziel","html_url":"https://github.com/sophiedeziel","followers_url":"https://api.github.com/users/sophiedeziel/followers","following_url":"https://api.github.com/users/sophiedeziel/following{/other_user}","gists_url":"https://api.github.com/users/sophiedeziel/gists{/gist_id}","starred_url":"https://api.github.com/users/sophiedeziel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophiedeziel/subscriptions","organizations_url":"https://api.github.com/users/sophiedeziel/orgs","repos_url":"https://api.github.com/users/sophiedeziel/repos","events_url":"https://api.github.com/users/sophiedeziel/events{/privacy}","received_events_url":"https://api.github.com/users/sophiedeziel/received_events","type":"User","site_admin":false},"body":"Fixes #154","created_at":"2016-04-23T00:47:38Z","updated_at":"2016-04-23T01:15:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c75ae4e7bdcc016944bc254615780b2ebe396686","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/222/commits","review_comments_url":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/222/comments","review_comment_url":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/montrealrb/Montreal.rb/issues/222/comments","statuses_url":"https://api.github.com/repos/montrealrb/Montreal.rb/statuses/7f7a270cd47b3b3b6fb96e60317988a579869ad5","head":{"label":"montrealrb:154_fix_github_authentication","ref":"154_fix_github_authentication","sha":"7f7a270cd47b3b3b6fb96e60317988a579869ad5","user":{"login":"montrealrb","id":216680,"avatar_url":"https://avatars.githubusercontent.com/u/216680?v=3","gravatar_id":"","url":"https://api.github.com/users/montrealrb","html_url":"https://github.com/montrealrb","followers_url":"https://api.github.com/users/montrealrb/followers","following_url":"https://api.github.com/users/montrealrb/following{/other_user}","gists_url":"https://api.github.com/users/montrealrb/gists{/gist_id}","starred_url":"https://api.github.com/users/montrealrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montrealrb/subscriptions","organizations_url":"https://api.github.com/users/montrealrb/orgs","repos_url":"https://api.github.com/users/montrealrb/repos","events_url":"https://api.github.com/users/montrealrb/events{/privacy}","received_events_url":"https://api.github.com/users/montrealrb/received_events","type":"Organization","site_admin":false},"repo":{"id":10808048,"name":"Montreal.rb","full_name":"montrealrb/Montreal.rb","owner":{"login":"montrealrb","id":216680,"avatar_url":"https://avatars.githubusercontent.com/u/216680?v=3","gravatar_id":"","url":"https://api.github.com/users/montrealrb","html_url":"https://github.com/montrealrb","followers_url":"https://api.github.com/users/montrealrb/followers","following_url":"https://api.github.com/users/montrealrb/following{/other_user}","gists_url":"https://api.github.com/users/montrealrb/gists{/gist_id}","starred_url":"https://api.github.com/users/montrealrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montrealrb/subscriptions","organizations_url":"https://api.github.com/users/montrealrb/orgs","repos_url":"https://api.github.com/users/montrealrb/repos","events_url":"https://api.github.com/users/montrealrb/events{/privacy}","received_events_url":"https://api.github.com/users/montrealrb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/montrealrb/Montreal.rb","description":"The new Montreal.rb website","fork":false,"url":"https://api.github.com/repos/montrealrb/Montreal.rb","forks_url":"https://api.github.com/repos/montrealrb/Montreal.rb/forks","keys_url":"https://api.github.com/repos/montrealrb/Montreal.rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/montrealrb/Montreal.rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/montrealrb/Montreal.rb/teams","hooks_url":"https://api.github.com/repos/montrealrb/Montreal.rb/hooks","issue_events_url":"https://api.github.com/repos/montrealrb/Montreal.rb/issues/events{/number}","events_url":"https://api.github.com/repos/montrealrb/Montreal.rb/events","assignees_url":"https://api.github.com/repos/montrealrb/Montreal.rb/assignees{/user}","branches_url":"https://api.github.com/repos/montrealrb/Montreal.rb/branches{/branch}","tags_url":"https://api.github.com/repos/montrealrb/Montreal.rb/tags","blobs_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/montrealrb/Montreal.rb/statuses/{sha}","languages_url":"https://api.github.com/repos/montrealrb/Montreal.rb/languages","stargazers_url":"https://api.github.com/repos/montrealrb/Montreal.rb/stargazers","contributors_url":"https://api.github.com/repos/montrealrb/Montreal.rb/contributors","subscribers_url":"https://api.github.com/repos/montrealrb/Montreal.rb/subscribers","subscription_url":"https://api.github.com/repos/montrealrb/Montreal.rb/subscription","commits_url":"https://api.github.com/repos/montrealrb/Montreal.rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/montrealrb/Montreal.rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/montrealrb/Montreal.rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/montrealrb/Montreal.rb/contents/{+path}","compare_url":"https://api.github.com/repos/montrealrb/Montreal.rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/montrealrb/Montreal.rb/merges","archive_url":"https://api.github.com/repos/montrealrb/Montreal.rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/montrealrb/Montreal.rb/downloads","issues_url":"https://api.github.com/repos/montrealrb/Montreal.rb/issues{/number}","pulls_url":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls{/number}","milestones_url":"https://api.github.com/repos/montrealrb/Montreal.rb/milestones{/number}","notifications_url":"https://api.github.com/repos/montrealrb/Montreal.rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/montrealrb/Montreal.rb/labels{/name}","releases_url":"https://api.github.com/repos/montrealrb/Montreal.rb/releases{/id}","deployments_url":"https://api.github.com/repos/montrealrb/Montreal.rb/deployments","created_at":"2013-06-19T23:11:36Z","updated_at":"2016-04-11T13:56:54Z","pushed_at":"2016-04-23T01:15:49Z","git_url":"git://github.com/montrealrb/Montreal.rb.git","ssh_url":"git@github.com:montrealrb/Montreal.rb.git","clone_url":"https://github.com/montrealrb/Montreal.rb.git","svn_url":"https://github.com/montrealrb/Montreal.rb","homepage":"http://montrealrb.com","size":918,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":36,"forks":27,"open_issues":36,"watchers":11,"default_branch":"master"}},"base":{"label":"montrealrb:master","ref":"master","sha":"dd5ff4190f148341a3490c7a547f6743e1cbc96f","user":{"login":"montrealrb","id":216680,"avatar_url":"https://avatars.githubusercontent.com/u/216680?v=3","gravatar_id":"","url":"https://api.github.com/users/montrealrb","html_url":"https://github.com/montrealrb","followers_url":"https://api.github.com/users/montrealrb/followers","following_url":"https://api.github.com/users/montrealrb/following{/other_user}","gists_url":"https://api.github.com/users/montrealrb/gists{/gist_id}","starred_url":"https://api.github.com/users/montrealrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montrealrb/subscriptions","organizations_url":"https://api.github.com/users/montrealrb/orgs","repos_url":"https://api.github.com/users/montrealrb/repos","events_url":"https://api.github.com/users/montrealrb/events{/privacy}","received_events_url":"https://api.github.com/users/montrealrb/received_events","type":"Organization","site_admin":false},"repo":{"id":10808048,"name":"Montreal.rb","full_name":"montrealrb/Montreal.rb","owner":{"login":"montrealrb","id":216680,"avatar_url":"https://avatars.githubusercontent.com/u/216680?v=3","gravatar_id":"","url":"https://api.github.com/users/montrealrb","html_url":"https://github.com/montrealrb","followers_url":"https://api.github.com/users/montrealrb/followers","following_url":"https://api.github.com/users/montrealrb/following{/other_user}","gists_url":"https://api.github.com/users/montrealrb/gists{/gist_id}","starred_url":"https://api.github.com/users/montrealrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montrealrb/subscriptions","organizations_url":"https://api.github.com/users/montrealrb/orgs","repos_url":"https://api.github.com/users/montrealrb/repos","events_url":"https://api.github.com/users/montrealrb/events{/privacy}","received_events_url":"https://api.github.com/users/montrealrb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/montrealrb/Montreal.rb","description":"The new Montreal.rb website","fork":false,"url":"https://api.github.com/repos/montrealrb/Montreal.rb","forks_url":"https://api.github.com/repos/montrealrb/Montreal.rb/forks","keys_url":"https://api.github.com/repos/montrealrb/Montreal.rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/montrealrb/Montreal.rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/montrealrb/Montreal.rb/teams","hooks_url":"https://api.github.com/repos/montrealrb/Montreal.rb/hooks","issue_events_url":"https://api.github.com/repos/montrealrb/Montreal.rb/issues/events{/number}","events_url":"https://api.github.com/repos/montrealrb/Montreal.rb/events","assignees_url":"https://api.github.com/repos/montrealrb/Montreal.rb/assignees{/user}","branches_url":"https://api.github.com/repos/montrealrb/Montreal.rb/branches{/branch}","tags_url":"https://api.github.com/repos/montrealrb/Montreal.rb/tags","blobs_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/montrealrb/Montreal.rb/statuses/{sha}","languages_url":"https://api.github.com/repos/montrealrb/Montreal.rb/languages","stargazers_url":"https://api.github.com/repos/montrealrb/Montreal.rb/stargazers","contributors_url":"https://api.github.com/repos/montrealrb/Montreal.rb/contributors","subscribers_url":"https://api.github.com/repos/montrealrb/Montreal.rb/subscribers","subscription_url":"https://api.github.com/repos/montrealrb/Montreal.rb/subscription","commits_url":"https://api.github.com/repos/montrealrb/Montreal.rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/montrealrb/Montreal.rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/montrealrb/Montreal.rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/montrealrb/Montreal.rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/montrealrb/Montreal.rb/contents/{+path}","compare_url":"https://api.github.com/repos/montrealrb/Montreal.rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/montrealrb/Montreal.rb/merges","archive_url":"https://api.github.com/repos/montrealrb/Montreal.rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/montrealrb/Montreal.rb/downloads","issues_url":"https://api.github.com/repos/montrealrb/Montreal.rb/issues{/number}","pulls_url":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls{/number}","milestones_url":"https://api.github.com/repos/montrealrb/Montreal.rb/milestones{/number}","notifications_url":"https://api.github.com/repos/montrealrb/Montreal.rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/montrealrb/Montreal.rb/labels{/name}","releases_url":"https://api.github.com/repos/montrealrb/Montreal.rb/releases{/id}","deployments_url":"https://api.github.com/repos/montrealrb/Montreal.rb/deployments","created_at":"2013-06-19T23:11:36Z","updated_at":"2016-04-11T13:56:54Z","pushed_at":"2016-04-23T01:15:49Z","git_url":"git://github.com/montrealrb/Montreal.rb.git","ssh_url":"git@github.com:montrealrb/Montreal.rb.git","clone_url":"https://github.com/montrealrb/Montreal.rb.git","svn_url":"https://github.com/montrealrb/Montreal.rb","homepage":"http://montrealrb.com","size":918,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":36,"forks":27,"open_issues":36,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/222"},"html":{"href":"https://github.com/montrealrb/Montreal.rb/pull/222"},"issue":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/issues/222"},"comments":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/issues/222/comments"},"review_comments":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/222/comments"},"review_comment":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/pulls/222/commits"},"statuses":{"href":"https://api.github.com/repos/montrealrb/Montreal.rb/statuses/7f7a270cd47b3b3b6fb96e60317988a579869ad5"}}}}