{"action":"created","comment":{"url":"https://api.github.com/repos/ar4ben/flashcards/pulls/comments/88793417","pull_request_review_id":9357595,"id":88793417,"diff_hunk":"@@ -0,0 +1,463 @@\n+# The first thing you need to configure is which modules you need in your app.\n+# The default is nothing which will include only core features (password encryption, login/logout).\n+# Available submodules are: :user_activation, :http_basic_auth, :remember_me,\n+# :reset_password, :session_timeout, :brute_force_protection, :activity_logging, :external\n+Rails.application.config.sorcery.submodules = [:external]\n+\n+# Here you can configure each submodule's features.\n+Rails.application.config.sorcery.configure do |config|\n+  # -- core --\n+  # What controller action to call for non-authenticated users. You can also\n+  # override the 'not_authenticated' method of course.\n+  # Default: `:not_authenticated`\n+  #\n+  # config.not_authenticated_action =\n+\n+\n+  # When a non logged in user tries to enter a page that requires login, save\n+  # the URL he wanted to reach, and send him there after login, using 'redirect_back_or_to'.\n+  # Default: `true`\n+  #\n+  # config.save_return_to_url =\n+\n+\n+  # Set domain option for cookies; Useful for remember_me submodule.\n+  # Default: `nil`\n+  #\n+  # config.cookie_domain =\n+\n+\n+  # Allow the remember_me cookie to be set through AJAX\n+  # Default: `true`\n+  #\n+  # config.remember_me_httponly =\n+\n+\n+  # -- session timeout --\n+  # How long in seconds to keep the session alive.\n+  # Default: `3600`\n+  #\n+  # config.session_timeout =\n+\n+\n+  # Use the last action as the beginning of session timeout.\n+  # Default: `false`\n+  #\n+  # config.session_timeout_from_last_action =\n+\n+\n+  # -- http_basic_auth --\n+  # What realm to display for which controller name. For example {\"My App\" => \"Application\"}\n+  # Default: `{\"application\" => \"Application\"}`\n+  #\n+  # config.controller_to_realm_map =\n+\n+\n+  # -- activity logging --\n+  # will register the time of last user login, every login.\n+  # Default: `true`\n+  #\n+  # config.register_login_time =\n+\n+\n+  # will register the time of last user logout, every logout.\n+  # Default: `true`\n+  #\n+  # config.register_logout_time =\n+\n+\n+  # will register the time of last user action, every action.\n+  # Default: `true`\n+  #\n+  # config.register_last_activity_time =\n+\n+\n+  # -- external --\n+  # What providers are supported by this app, i.e. [:twitter, :facebook, :github, :linkedin, :xing, :google, :liveid, :salesforce] .\n+  # Default: `[]`\n+   config.external_providers = [:github]\n+\n+\n+  # You can change it by your local ca_file. i.e. '/etc/pki/tls/certs/ca-bundle.crt'\n+  # Path to ca_file. By default use a internal ca-bundle.crt.\n+  # Default: `'path/to/ca_file'`\n+  #\n+  # config.ca_file =\n+\n+\n+  # For information about LinkedIn API:\n+  # - user info fields go to https://developer.linkedin.com/documents/profile-fields\n+  # - access permissions go to https://developer.linkedin.com/documents/authentication#granting\n+  #\n+  # config.linkedin.key = \"\"\n+  # config.linkedin.secret = \"\"\n+  # config.linkedin.callback_url = \"http://0.0.0.0:3000/oauth/callback?provider=linkedin\"\n+  # config.linkedin.user_info_fields = ['first-name', 'last-name']\n+  # config.linkedin.user_info_mapping = {first_name: \"firstName\", last_name: \"lastName\"}\n+  # config.linkedin.access_permissions = ['r_basicprofile']\n+  #\n+  #\n+  # For information about XING API:\n+  # - user info fields go to https://dev.xing.com/docs/get/users/me\n+  #\n+  # config.xing.key = \"\"\n+  # config.xing.secret = \"\"\n+  # config.xing.callback_url = \"http://0.0.0.0:3000/oauth/callback?provider=xing\"\n+  # config.xing.user_info_mapping = {first_name: \"first_name\", last_name: \"last_name\"}\n+  #\n+  #\n+  # Twitter will not accept any requests nor redirect uri containing localhost,\n+  # make sure you use 0.0.0.0:3000 to access your app in development\n+  #\n+  # config.twitter.key = \"\"\n+  # config.twitter.secret = \"\"\n+  # config.twitter.callback_url = \"http://0.0.0.0:3000/oauth/callback?provider=twitter\"\n+  # config.twitter.user_info_mapping = {:email => \"screen_name\"}\n+  #\n+  # config.facebook.key = \"\"\n+  # config.facebook.secret = \"\"\n+  # config.facebook.callback_url = \"http://0.0.0.0:3000/oauth/callback?provider=facebook\"\n+  # config.facebook.user_info_mapping = {:email => \"name\"}\n+  # config.facebook.access_permissions = [\"email\", \"publish_actions\"]\n+  # config.facebook.display = \"page\"\n+  # config.facebook.api_version = \"v2.2\"\n+  #\n+   config.github.key = \"#{Rails.application.secrets.sorcery_github_key}\"\n+   config.github.secret = \"#{Rails.application.secrets.sorcery_github_secret}\"\n+   config.github.callback_url = \"#{Rails.application.secrets.sorcery_github_callback_url}\"","path":"config/initializers/sorcery.rb","position":127,"original_position":127,"commit_id":"5b3da33912a9c987e483028fd36ed6b839f75ef9","original_commit_id":"5b3da33912a9c987e483028fd36ed6b839f75ef9","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":"Prefer to_s over string interpolation.","created_at":"2016-11-20T04:46:44Z","updated_at":"2016-11-20T04:46:44Z","html_url":"https://github.com/ar4ben/flashcards/pull/8#discussion_r88793417","pull_request_url":"https://api.github.com/repos/ar4ben/flashcards/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/comments/88793417"},"html":{"href":"https://github.com/ar4ben/flashcards/pull/8#discussion_r88793417"},"pull_request":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/ar4ben/flashcards/pulls/8","id":93493619,"html_url":"https://github.com/ar4ben/flashcards/pull/8","diff_url":"https://github.com/ar4ben/flashcards/pull/8.diff","patch_url":"https://github.com/ar4ben/flashcards/pull/8.patch","issue_url":"https://api.github.com/repos/ar4ben/flashcards/issues/8","number":8,"state":"open","locked":false,"title":"Task without OAuth + 1 broken test","user":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"body":"\r\n    Где хранится залогиненный пользователь?\r\nв сесии\r\n    В каком виде хранятся пароли в базе данных?\r\nв виде хэша\r\n","created_at":"2016-11-14T00:14:46Z","updated_at":"2016-11-20T04:46:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89517df99a792cbca21fe3ff089d33caa9499d1a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ar4ben/flashcards/pulls/8/commits","review_comments_url":"https://api.github.com/repos/ar4ben/flashcards/pulls/8/comments","review_comment_url":"https://api.github.com/repos/ar4ben/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ar4ben/flashcards/issues/8/comments","statuses_url":"https://api.github.com/repos/ar4ben/flashcards/statuses/5b3da33912a9c987e483028fd36ed6b839f75ef9","head":{"label":"ar4ben:ninth-task","ref":"ninth-task","sha":"5b3da33912a9c987e483028fd36ed6b839f75ef9","user":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"repo":{"id":66774918,"name":"flashcards","full_name":"ar4ben/flashcards","owner":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ar4ben/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/ar4ben/flashcards","forks_url":"https://api.github.com/repos/ar4ben/flashcards/forks","keys_url":"https://api.github.com/repos/ar4ben/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ar4ben/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ar4ben/flashcards/teams","hooks_url":"https://api.github.com/repos/ar4ben/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ar4ben/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ar4ben/flashcards/events","assignees_url":"https://api.github.com/repos/ar4ben/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ar4ben/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ar4ben/flashcards/tags","blobs_url":"https://api.github.com/repos/ar4ben/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ar4ben/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ar4ben/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ar4ben/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ar4ben/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ar4ben/flashcards/languages","stargazers_url":"https://api.github.com/repos/ar4ben/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ar4ben/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ar4ben/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ar4ben/flashcards/subscription","commits_url":"https://api.github.com/repos/ar4ben/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ar4ben/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ar4ben/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ar4ben/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ar4ben/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ar4ben/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ar4ben/flashcards/merges","archive_url":"https://api.github.com/repos/ar4ben/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ar4ben/flashcards/downloads","issues_url":"https://api.github.com/repos/ar4ben/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ar4ben/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ar4ben/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ar4ben/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ar4ben/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ar4ben/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/ar4ben/flashcards/deployments","created_at":"2016-08-28T15:12:24Z","updated_at":"2016-09-01T05:33:04Z","pushed_at":"2016-11-20T04:46:28Z","git_url":"git://github.com/ar4ben/flashcards.git","ssh_url":"git@github.com:ar4ben/flashcards.git","clone_url":"https://github.com/ar4ben/flashcards.git","svn_url":"https://github.com/ar4ben/flashcards","homepage":null,"size":105,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ar4ben:master","ref":"master","sha":"b0eba72473a4f4f2c2f9dda4a7034e34de64ae65","user":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"repo":{"id":66774918,"name":"flashcards","full_name":"ar4ben/flashcards","owner":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ar4ben/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/ar4ben/flashcards","forks_url":"https://api.github.com/repos/ar4ben/flashcards/forks","keys_url":"https://api.github.com/repos/ar4ben/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ar4ben/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ar4ben/flashcards/teams","hooks_url":"https://api.github.com/repos/ar4ben/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ar4ben/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ar4ben/flashcards/events","assignees_url":"https://api.github.com/repos/ar4ben/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ar4ben/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ar4ben/flashcards/tags","blobs_url":"https://api.github.com/repos/ar4ben/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ar4ben/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ar4ben/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ar4ben/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ar4ben/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ar4ben/flashcards/languages","stargazers_url":"https://api.github.com/repos/ar4ben/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ar4ben/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ar4ben/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ar4ben/flashcards/subscription","commits_url":"https://api.github.com/repos/ar4ben/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ar4ben/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ar4ben/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ar4ben/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ar4ben/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ar4ben/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ar4ben/flashcards/merges","archive_url":"https://api.github.com/repos/ar4ben/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ar4ben/flashcards/downloads","issues_url":"https://api.github.com/repos/ar4ben/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ar4ben/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ar4ben/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ar4ben/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ar4ben/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ar4ben/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/ar4ben/flashcards/deployments","created_at":"2016-08-28T15:12:24Z","updated_at":"2016-09-01T05:33:04Z","pushed_at":"2016-11-20T04:46:28Z","git_url":"git://github.com/ar4ben/flashcards.git","ssh_url":"git@github.com:ar4ben/flashcards.git","clone_url":"https://github.com/ar4ben/flashcards.git","svn_url":"https://github.com/ar4ben/flashcards","homepage":null,"size":105,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/8"},"html":{"href":"https://github.com/ar4ben/flashcards/pull/8"},"issue":{"href":"https://api.github.com/repos/ar4ben/flashcards/issues/8"},"comments":{"href":"https://api.github.com/repos/ar4ben/flashcards/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/ar4ben/flashcards/statuses/5b3da33912a9c987e483028fd36ed6b839f75ef9"}}}}
{"actor":{"display_login":"houndci-bot"}}