{"action":"created","comment":{"url":"https://api.github.com/repos/sa-inu/ChatApp/pulls/comments/73188594","id":73188594,"diff_hunk":"@@ -18,14 +18,32 @@ class User < ApplicationRecord\n \n   has_secure_password\n \n-  def self.digest(string)\n-    cost = ActiveModel::SecurePassword.min_cost ? BCrypt::Engine::MIN_COST :\n-                                                  BCrypt::Engine.cost\n-    BCrypt::Password.create(string, cost: cost)\n-  end\n+  class << self\n+    def self.digest(string)\n+      cost = ActiveModel::SecurePassword.min_cost ? BCrypt::Engine::MIN_COST : BCrypt::Engine.cost\n+      BCrypt::Password.create(string, cost: cost)\n+    end\n+\n+    def self.new_token\n+      SecureRandom.urlsafe_base64\n+    end\n \n-  def self.new_token\n-    SecureRandom.urlsafe_base64\n+    def self.create_with_omniauth(auth)","path":"app/models/user.rb","position":21,"original_position":21,"commit_id":"cadc575ca07d8b857e7be1d5a4c21ccb7d8ec7f7","original_commit_id":"cadc575ca07d8b857e7be1d5a4c21ccb7d8ec7f7","user":{"login":"sa-inu","id":12888685,"avatar_url":"https://avatars.githubusercontent.com/u/12888685?v=3","gravatar_id":"","url":"https://api.github.com/users/sa-inu","html_url":"https://github.com/sa-inu","followers_url":"https://api.github.com/users/sa-inu/followers","following_url":"https://api.github.com/users/sa-inu/following{/other_user}","gists_url":"https://api.github.com/users/sa-inu/gists{/gist_id}","starred_url":"https://api.github.com/users/sa-inu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa-inu/subscriptions","organizations_url":"https://api.github.com/users/sa-inu/orgs","repos_url":"https://api.github.com/users/sa-inu/repos","events_url":"https://api.github.com/users/sa-inu/events{/privacy}","received_events_url":"https://api.github.com/users/sa-inu/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Assignment Branch Condition size for create_with_omniauth is too high. [18.89/15] [:ref](http://c2.com/cgi/wiki?AbcMetric)\n* Method has too many lines. [14/10] [:ref](https://github.com/bbatsov/ruby-style-guide#short-methods)\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2016-08-02T16:22:46Z","updated_at":"2016-08-02T16:22:46Z","html_url":"https://github.com/sa-inu/ChatApp/pull/38#discussion_r73188594","pull_request_url":"https://api.github.com/repos/sa-inu/ChatApp/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/sa-inu/ChatApp/pulls/comments/73188594"},"html":{"href":"https://github.com/sa-inu/ChatApp/pull/38#discussion_r73188594"},"pull_request":{"href":"https://api.github.com/repos/sa-inu/ChatApp/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/sa-inu/ChatApp/pulls/38","id":79764923,"html_url":"https://github.com/sa-inu/ChatApp/pull/38","diff_url":"https://github.com/sa-inu/ChatApp/pull/38.diff","patch_url":"https://github.com/sa-inu/ChatApp/pull/38.patch","issue_url":"https://api.github.com/repos/sa-inu/ChatApp/issues/38","number":38,"state":"open","locked":false,"title":"Feature/34 introduce GitHub authentication","user":{"login":"sa-inu","id":12888685,"avatar_url":"https://avatars.githubusercontent.com/u/12888685?v=3","gravatar_id":"","url":"https://api.github.com/users/sa-inu","html_url":"https://github.com/sa-inu","followers_url":"https://api.github.com/users/sa-inu/followers","following_url":"https://api.github.com/users/sa-inu/following{/other_user}","gists_url":"https://api.github.com/users/sa-inu/gists{/gist_id}","starred_url":"https://api.github.com/users/sa-inu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa-inu/subscriptions","organizations_url":"https://api.github.com/users/sa-inu/orgs","repos_url":"https://api.github.com/users/sa-inu/repos","events_url":"https://api.github.com/users/sa-inu/events{/privacy}","received_events_url":"https://api.github.com/users/sa-inu/received_events","type":"User","site_admin":false},"body":"resolve #38 \r\n","created_at":"2016-08-02T16:18:55Z","updated_at":"2016-08-02T16:22:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b00ec8e21cbfc516038e2adb1ce727817e35b0d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sa-inu/ChatApp/pulls/38/commits","review_comments_url":"https://api.github.com/repos/sa-inu/ChatApp/pulls/38/comments","review_comment_url":"https://api.github.com/repos/sa-inu/ChatApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sa-inu/ChatApp/issues/38/comments","statuses_url":"https://api.github.com/repos/sa-inu/ChatApp/statuses/cadc575ca07d8b857e7be1d5a4c21ccb7d8ec7f7","head":{"label":"sa-inu:feature/34_introduce_github_authentication","ref":"feature/34_introduce_github_authentication","sha":"cadc575ca07d8b857e7be1d5a4c21ccb7d8ec7f7","user":{"login":"sa-inu","id":12888685,"avatar_url":"https://avatars.githubusercontent.com/u/12888685?v=3","gravatar_id":"","url":"https://api.github.com/users/sa-inu","html_url":"https://github.com/sa-inu","followers_url":"https://api.github.com/users/sa-inu/followers","following_url":"https://api.github.com/users/sa-inu/following{/other_user}","gists_url":"https://api.github.com/users/sa-inu/gists{/gist_id}","starred_url":"https://api.github.com/users/sa-inu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa-inu/subscriptions","organizations_url":"https://api.github.com/users/sa-inu/orgs","repos_url":"https://api.github.com/users/sa-inu/repos","events_url":"https://api.github.com/users/sa-inu/events{/privacy}","received_events_url":"https://api.github.com/users/sa-inu/received_events","type":"User","site_admin":false},"repo":{"id":63926913,"name":"ChatApp","full_name":"sa-inu/ChatApp","owner":{"login":"sa-inu","id":12888685,"avatar_url":"https://avatars.githubusercontent.com/u/12888685?v=3","gravatar_id":"","url":"https://api.github.com/users/sa-inu","html_url":"https://github.com/sa-inu","followers_url":"https://api.github.com/users/sa-inu/followers","following_url":"https://api.github.com/users/sa-inu/following{/other_user}","gists_url":"https://api.github.com/users/sa-inu/gists{/gist_id}","starred_url":"https://api.github.com/users/sa-inu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa-inu/subscriptions","organizations_url":"https://api.github.com/users/sa-inu/orgs","repos_url":"https://api.github.com/users/sa-inu/repos","events_url":"https://api.github.com/users/sa-inu/events{/privacy}","received_events_url":"https://api.github.com/users/sa-inu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sa-inu/ChatApp","description":null,"fork":false,"url":"https://api.github.com/repos/sa-inu/ChatApp","forks_url":"https://api.github.com/repos/sa-inu/ChatApp/forks","keys_url":"https://api.github.com/repos/sa-inu/ChatApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sa-inu/ChatApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sa-inu/ChatApp/teams","hooks_url":"https://api.github.com/repos/sa-inu/ChatApp/hooks","issue_events_url":"https://api.github.com/repos/sa-inu/ChatApp/issues/events{/number}","events_url":"https://api.github.com/repos/sa-inu/ChatApp/events","assignees_url":"https://api.github.com/repos/sa-inu/ChatApp/assignees{/user}","branches_url":"https://api.github.com/repos/sa-inu/ChatApp/branches{/branch}","tags_url":"https://api.github.com/repos/sa-inu/ChatApp/tags","blobs_url":"https://api.github.com/repos/sa-inu/ChatApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sa-inu/ChatApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sa-inu/ChatApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/sa-inu/ChatApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sa-inu/ChatApp/statuses/{sha}","languages_url":"https://api.github.com/repos/sa-inu/ChatApp/languages","stargazers_url":"https://api.github.com/repos/sa-inu/ChatApp/stargazers","contributors_url":"https://api.github.com/repos/sa-inu/ChatApp/contributors","subscribers_url":"https://api.github.com/repos/sa-inu/ChatApp/subscribers","subscription_url":"https://api.github.com/repos/sa-inu/ChatApp/subscription","commits_url":"https://api.github.com/repos/sa-inu/ChatApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/sa-inu/ChatApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/sa-inu/ChatApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/sa-inu/ChatApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/sa-inu/ChatApp/contents/{+path}","compare_url":"https://api.github.com/repos/sa-inu/ChatApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sa-inu/ChatApp/merges","archive_url":"https://api.github.com/repos/sa-inu/ChatApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sa-inu/ChatApp/downloads","issues_url":"https://api.github.com/repos/sa-inu/ChatApp/issues{/number}","pulls_url":"https://api.github.com/repos/sa-inu/ChatApp/pulls{/number}","milestones_url":"https://api.github.com/repos/sa-inu/ChatApp/milestones{/number}","notifications_url":"https://api.github.com/repos/sa-inu/ChatApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sa-inu/ChatApp/labels{/name}","releases_url":"https://api.github.com/repos/sa-inu/ChatApp/releases{/id}","deployments_url":"https://api.github.com/repos/sa-inu/ChatApp/deployments","created_at":"2016-07-22T05:48:44Z","updated_at":"2016-07-22T05:48:58Z","pushed_at":"2016-08-02T16:22:37Z","git_url":"git://github.com/sa-inu/ChatApp.git","ssh_url":"git@github.com:sa-inu/ChatApp.git","clone_url":"https://github.com/sa-inu/ChatApp.git","svn_url":"https://github.com/sa-inu/ChatApp","homepage":null,"size":5930,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"sa-inu:develop","ref":"develop","sha":"4eae5ee1236051985a9aece489942e4e43e853f7","user":{"login":"sa-inu","id":12888685,"avatar_url":"https://avatars.githubusercontent.com/u/12888685?v=3","gravatar_id":"","url":"https://api.github.com/users/sa-inu","html_url":"https://github.com/sa-inu","followers_url":"https://api.github.com/users/sa-inu/followers","following_url":"https://api.github.com/users/sa-inu/following{/other_user}","gists_url":"https://api.github.com/users/sa-inu/gists{/gist_id}","starred_url":"https://api.github.com/users/sa-inu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa-inu/subscriptions","organizations_url":"https://api.github.com/users/sa-inu/orgs","repos_url":"https://api.github.com/users/sa-inu/repos","events_url":"https://api.github.com/users/sa-inu/events{/privacy}","received_events_url":"https://api.github.com/users/sa-inu/received_events","type":"User","site_admin":false},"repo":{"id":63926913,"name":"ChatApp","full_name":"sa-inu/ChatApp","owner":{"login":"sa-inu","id":12888685,"avatar_url":"https://avatars.githubusercontent.com/u/12888685?v=3","gravatar_id":"","url":"https://api.github.com/users/sa-inu","html_url":"https://github.com/sa-inu","followers_url":"https://api.github.com/users/sa-inu/followers","following_url":"https://api.github.com/users/sa-inu/following{/other_user}","gists_url":"https://api.github.com/users/sa-inu/gists{/gist_id}","starred_url":"https://api.github.com/users/sa-inu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa-inu/subscriptions","organizations_url":"https://api.github.com/users/sa-inu/orgs","repos_url":"https://api.github.com/users/sa-inu/repos","events_url":"https://api.github.com/users/sa-inu/events{/privacy}","received_events_url":"https://api.github.com/users/sa-inu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sa-inu/ChatApp","description":null,"fork":false,"url":"https://api.github.com/repos/sa-inu/ChatApp","forks_url":"https://api.github.com/repos/sa-inu/ChatApp/forks","keys_url":"https://api.github.com/repos/sa-inu/ChatApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sa-inu/ChatApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sa-inu/ChatApp/teams","hooks_url":"https://api.github.com/repos/sa-inu/ChatApp/hooks","issue_events_url":"https://api.github.com/repos/sa-inu/ChatApp/issues/events{/number}","events_url":"https://api.github.com/repos/sa-inu/ChatApp/events","assignees_url":"https://api.github.com/repos/sa-inu/ChatApp/assignees{/user}","branches_url":"https://api.github.com/repos/sa-inu/ChatApp/branches{/branch}","tags_url":"https://api.github.com/repos/sa-inu/ChatApp/tags","blobs_url":"https://api.github.com/repos/sa-inu/ChatApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sa-inu/ChatApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sa-inu/ChatApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/sa-inu/ChatApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sa-inu/ChatApp/statuses/{sha}","languages_url":"https://api.github.com/repos/sa-inu/ChatApp/languages","stargazers_url":"https://api.github.com/repos/sa-inu/ChatApp/stargazers","contributors_url":"https://api.github.com/repos/sa-inu/ChatApp/contributors","subscribers_url":"https://api.github.com/repos/sa-inu/ChatApp/subscribers","subscription_url":"https://api.github.com/repos/sa-inu/ChatApp/subscription","commits_url":"https://api.github.com/repos/sa-inu/ChatApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/sa-inu/ChatApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/sa-inu/ChatApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/sa-inu/ChatApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/sa-inu/ChatApp/contents/{+path}","compare_url":"https://api.github.com/repos/sa-inu/ChatApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sa-inu/ChatApp/merges","archive_url":"https://api.github.com/repos/sa-inu/ChatApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sa-inu/ChatApp/downloads","issues_url":"https://api.github.com/repos/sa-inu/ChatApp/issues{/number}","pulls_url":"https://api.github.com/repos/sa-inu/ChatApp/pulls{/number}","milestones_url":"https://api.github.com/repos/sa-inu/ChatApp/milestones{/number}","notifications_url":"https://api.github.com/repos/sa-inu/ChatApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sa-inu/ChatApp/labels{/name}","releases_url":"https://api.github.com/repos/sa-inu/ChatApp/releases{/id}","deployments_url":"https://api.github.com/repos/sa-inu/ChatApp/deployments","created_at":"2016-07-22T05:48:44Z","updated_at":"2016-07-22T05:48:58Z","pushed_at":"2016-08-02T16:22:37Z","git_url":"git://github.com/sa-inu/ChatApp.git","ssh_url":"git@github.com:sa-inu/ChatApp.git","clone_url":"https://github.com/sa-inu/ChatApp.git","svn_url":"https://github.com/sa-inu/ChatApp","homepage":null,"size":5930,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sa-inu/ChatApp/pulls/38"},"html":{"href":"https://github.com/sa-inu/ChatApp/pull/38"},"issue":{"href":"https://api.github.com/repos/sa-inu/ChatApp/issues/38"},"comments":{"href":"https://api.github.com/repos/sa-inu/ChatApp/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/sa-inu/ChatApp/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/sa-inu/ChatApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sa-inu/ChatApp/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/sa-inu/ChatApp/statuses/cadc575ca07d8b857e7be1d5a4c21ccb7d8ec7f7"}}}}
{"actor":{"display_login":"sa-inu"}}