{"action":"created","comment":{"url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/comments/38808304","id":38808304,"diff_hunk":"@@ -0,0 +1,465 @@\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+  config.external_providers = [:twitter]\n+\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+  #\n+  # config.external_providers =\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 = ENV[\"sorcery_twitter_key\"]\n+  config.twitter.secret = ENV[\"sorcery_twitter_secret\"]","path":"config/initializers/sorcery.rb","position":116,"original_position":116,"commit_id":"9319f4edd7134a1ac71ca3a52d420c7ddf38dba4","original_commit_id":"9319f4edd7134a1ac71ca3a52d420c7ddf38dba4","user":{"login":"mkdev-mentor-1","id":11962702,"avatar_url":"https://avatars.githubusercontent.com/u/11962702?v=3","gravatar_id":"","url":"https://api.github.com/users/mkdev-mentor-1","html_url":"https://github.com/mkdev-mentor-1","followers_url":"https://api.github.com/users/mkdev-mentor-1/followers","following_url":"https://api.github.com/users/mkdev-mentor-1/following{/other_user}","gists_url":"https://api.github.com/users/mkdev-mentor-1/gists{/gist_id}","starred_url":"https://api.github.com/users/mkdev-mentor-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkdev-mentor-1/subscriptions","organizations_url":"https://api.github.com/users/mkdev-mentor-1/orgs","repos_url":"https://api.github.com/users/mkdev-mentor-1/repos","events_url":"https://api.github.com/users/mkdev-mentor-1/events{/privacy}","received_events_url":"https://api.github.com/users/mkdev-mentor-1/received_events","type":"User","site_admin":false},"body":"переменные окружения обычно капсом пишут","created_at":"2015-09-05T06:37:11Z","updated_at":"2015-09-05T06:37:11Z","html_url":"https://github.com/yuri-polessky/flashcards/pull/10#discussion_r38808304","pull_request_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/comments/38808304"},"html":{"href":"https://github.com/yuri-polessky/flashcards/pull/10#discussion_r38808304"},"pull_request":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/10","id":44214605,"html_url":"https://github.com/yuri-polessky/flashcards/pull/10","diff_url":"https://github.com/yuri-polessky/flashcards/pull/10.diff","patch_url":"https://github.com/yuri-polessky/flashcards/pull/10.patch","issue_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/10","number":10,"state":"open","locked":false,"title":"Ninth task","user":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-04T12:55:46Z","updated_at":"2015-09-05T06:37:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3009913d73558b7437e28a02ff5444f069a1926d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/10/commits","review_comments_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/10/comments","review_comment_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/10/comments","statuses_url":"https://api.github.com/repos/yuri-polessky/flashcards/statuses/9319f4edd7134a1ac71ca3a52d420c7ddf38dba4","head":{"label":"yuri-polessky:ninth-task","ref":"ninth-task","sha":"9319f4edd7134a1ac71ca3a52d420c7ddf38dba4","user":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"repo":{"id":41664877,"name":"flashcards","full_name":"yuri-polessky/flashcards","owner":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuri-polessky/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/yuri-polessky/flashcards","forks_url":"https://api.github.com/repos/yuri-polessky/flashcards/forks","keys_url":"https://api.github.com/repos/yuri-polessky/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuri-polessky/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuri-polessky/flashcards/teams","hooks_url":"https://api.github.com/repos/yuri-polessky/flashcards/hooks","issue_events_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/yuri-polessky/flashcards/events","assignees_url":"https://api.github.com/repos/yuri-polessky/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/yuri-polessky/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/yuri-polessky/flashcards/tags","blobs_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuri-polessky/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/yuri-polessky/flashcards/languages","stargazers_url":"https://api.github.com/repos/yuri-polessky/flashcards/stargazers","contributors_url":"https://api.github.com/repos/yuri-polessky/flashcards/contributors","subscribers_url":"https://api.github.com/repos/yuri-polessky/flashcards/subscribers","subscription_url":"https://api.github.com/repos/yuri-polessky/flashcards/subscription","commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuri-polessky/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuri-polessky/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/yuri-polessky/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuri-polessky/flashcards/merges","archive_url":"https://api.github.com/repos/yuri-polessky/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuri-polessky/flashcards/downloads","issues_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/yuri-polessky/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/yuri-polessky/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuri-polessky/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/yuri-polessky/flashcards/releases{/id}","created_at":"2015-08-31T08:35:45Z","updated_at":"2015-08-31T14:46:09Z","pushed_at":"2015-09-05T04:43:36Z","git_url":"git://github.com/yuri-polessky/flashcards.git","ssh_url":"git@github.com:yuri-polessky/flashcards.git","clone_url":"https://github.com/yuri-polessky/flashcards.git","svn_url":"https://github.com/yuri-polessky/flashcards","homepage":null,"size":0,"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":"yuri-polessky:master","ref":"master","sha":"d88bfc3b827177d61dd818845cfdc9fcdb29eb91","user":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"repo":{"id":41664877,"name":"flashcards","full_name":"yuri-polessky/flashcards","owner":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuri-polessky/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/yuri-polessky/flashcards","forks_url":"https://api.github.com/repos/yuri-polessky/flashcards/forks","keys_url":"https://api.github.com/repos/yuri-polessky/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuri-polessky/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuri-polessky/flashcards/teams","hooks_url":"https://api.github.com/repos/yuri-polessky/flashcards/hooks","issue_events_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/yuri-polessky/flashcards/events","assignees_url":"https://api.github.com/repos/yuri-polessky/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/yuri-polessky/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/yuri-polessky/flashcards/tags","blobs_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuri-polessky/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/yuri-polessky/flashcards/languages","stargazers_url":"https://api.github.com/repos/yuri-polessky/flashcards/stargazers","contributors_url":"https://api.github.com/repos/yuri-polessky/flashcards/contributors","subscribers_url":"https://api.github.com/repos/yuri-polessky/flashcards/subscribers","subscription_url":"https://api.github.com/repos/yuri-polessky/flashcards/subscription","commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuri-polessky/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuri-polessky/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/yuri-polessky/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuri-polessky/flashcards/merges","archive_url":"https://api.github.com/repos/yuri-polessky/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuri-polessky/flashcards/downloads","issues_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/yuri-polessky/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/yuri-polessky/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuri-polessky/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/yuri-polessky/flashcards/releases{/id}","created_at":"2015-08-31T08:35:45Z","updated_at":"2015-08-31T14:46:09Z","pushed_at":"2015-09-05T04:43:36Z","git_url":"git://github.com/yuri-polessky/flashcards.git","ssh_url":"git@github.com:yuri-polessky/flashcards.git","clone_url":"https://github.com/yuri-polessky/flashcards.git","svn_url":"https://github.com/yuri-polessky/flashcards","homepage":null,"size":0,"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/yuri-polessky/flashcards/pulls/10"},"html":{"href":"https://github.com/yuri-polessky/flashcards/pull/10"},"issue":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/issues/10"},"comments":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/statuses/9319f4edd7134a1ac71ca3a52d420c7ddf38dba4"}}}}