{"action":"created","comment":{"url":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/comments/46549938","id":46549938,"diff_hunk":"@@ -86,70 +84,50 @@ def self.login_with_oauth(client_or_access_token, proxy = nil)\n     # +path+ defaults to ENV[\"HOME\"] + \"/.ruby_google_drive.token\".\n     #\n     # You can specify your own OAuth +client_id+ and +client_secret+. Otherwise the default one is used.\n-    def self.saved_session(path = nil, proxy = nil, client_id = nil, client_secret = nil)\n+    def self.saved_session(path = './.config.json', proxy = nil, client_id = nil, client_secret = nil)","path":"lib/google_drive.rb","position":23,"original_position":23,"commit_id":"f10d30415e24c4b6d44b2bfc390b12d80df33f15","original_commit_id":"f10d30415e24c4b6d44b2bfc390b12d80df33f15","user":{"login":"gimite","id":15363,"avatar_url":"https://avatars.githubusercontent.com/u/15363?v=3","gravatar_id":"","url":"https://api.github.com/users/gimite","html_url":"https://github.com/gimite","followers_url":"https://api.github.com/users/gimite/followers","following_url":"https://api.github.com/users/gimite/following{/other_user}","gists_url":"https://api.github.com/users/gimite/gists{/gist_id}","starred_url":"https://api.github.com/users/gimite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gimite/subscriptions","organizations_url":"https://api.github.com/users/gimite/orgs","repos_url":"https://api.github.com/users/gimite/repos","events_url":"https://api.github.com/users/gimite/events{/privacy}","received_events_url":"https://api.github.com/users/gimite/received_events","type":"User","site_admin":false},"body":"Can you keep default to ENV[\"HOME\"] + \"/.ruby_google_drive.token\" for backward compatibility?","created_at":"2015-12-03T13:23:12Z","updated_at":"2015-12-03T13:23:12Z","html_url":"https://github.com/gimite/google-drive-ruby/pull/176#discussion_r46549938","pull_request_url":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/176","_links":{"self":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/comments/46549938"},"html":{"href":"https://github.com/gimite/google-drive-ruby/pull/176#discussion_r46549938"},"pull_request":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/176"}}},"pull_request":{"url":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/176","id":51722010,"html_url":"https://github.com/gimite/google-drive-ruby/pull/176","diff_url":"https://github.com/gimite/google-drive-ruby/pull/176.diff","patch_url":"https://github.com/gimite/google-drive-ruby/pull/176.patch","issue_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/176","number":176,"state":"open","locked":false,"title":"Use Config class to store credentials","user":{"login":"mtczerwinski","id":644275,"avatar_url":"https://avatars.githubusercontent.com/u/644275?v=3","gravatar_id":"","url":"https://api.github.com/users/mtczerwinski","html_url":"https://github.com/mtczerwinski","followers_url":"https://api.github.com/users/mtczerwinski/followers","following_url":"https://api.github.com/users/mtczerwinski/following{/other_user}","gists_url":"https://api.github.com/users/mtczerwinski/gists{/gist_id}","starred_url":"https://api.github.com/users/mtczerwinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtczerwinski/subscriptions","organizations_url":"https://api.github.com/users/mtczerwinski/orgs","repos_url":"https://api.github.com/users/mtczerwinski/repos","events_url":"https://api.github.com/users/mtczerwinski/events{/privacy}","received_events_url":"https://api.github.com/users/mtczerwinski/received_events","type":"User","site_admin":false},"body":"Related to #173.\r\nA user creates a file such as:\r\n```json\r\n{\r\n  \"client_id\": \"xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com\",\r\n  \"client_secret\": \"xxxxxxxxxxxxxxxxxxxxxxxx\",\r\n  \"redirect_uris\": [\r\n    \"urn:ietf:wg:oauth:2.0:oob\"\r\n  ],\r\n  \"scope\": [\r\n    \"https://www.googleapis.com/auth/drive \",\r\n    \"https://spreadsheets.google.com/feeds/\"\r\n  ],\r\n  \"access_token\": \"\"\r\n}\r\n```\r\nwhich contains everything that should have in order to save a session and allows the user to fetch Google Docs or Sheets.\r\n\r\nIt requires a little bit more testing (please check it also) and I am waiting for @gimite's opinion and community.","created_at":"2015-11-24T21:48:52Z","updated_at":"2015-12-03T13:23:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7df249d354d47aca2677b4c90c46a09b555f3357","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/176/commits","review_comments_url":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/176/comments","review_comment_url":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/176/comments","statuses_url":"https://api.github.com/repos/gimite/google-drive-ruby/statuses/f10d30415e24c4b6d44b2bfc390b12d80df33f15","head":{"label":"mtczerwinski:master","ref":"master","sha":"f10d30415e24c4b6d44b2bfc390b12d80df33f15","user":{"login":"mtczerwinski","id":644275,"avatar_url":"https://avatars.githubusercontent.com/u/644275?v=3","gravatar_id":"","url":"https://api.github.com/users/mtczerwinski","html_url":"https://github.com/mtczerwinski","followers_url":"https://api.github.com/users/mtczerwinski/followers","following_url":"https://api.github.com/users/mtczerwinski/following{/other_user}","gists_url":"https://api.github.com/users/mtczerwinski/gists{/gist_id}","starred_url":"https://api.github.com/users/mtczerwinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtczerwinski/subscriptions","organizations_url":"https://api.github.com/users/mtczerwinski/orgs","repos_url":"https://api.github.com/users/mtczerwinski/repos","events_url":"https://api.github.com/users/mtczerwinski/events{/privacy}","received_events_url":"https://api.github.com/users/mtczerwinski/received_events","type":"User","site_admin":false},"repo":{"id":46817650,"name":"google-drive-ruby","full_name":"mtczerwinski/google-drive-ruby","owner":{"login":"mtczerwinski","id":644275,"avatar_url":"https://avatars.githubusercontent.com/u/644275?v=3","gravatar_id":"","url":"https://api.github.com/users/mtczerwinski","html_url":"https://github.com/mtczerwinski","followers_url":"https://api.github.com/users/mtczerwinski/followers","following_url":"https://api.github.com/users/mtczerwinski/following{/other_user}","gists_url":"https://api.github.com/users/mtczerwinski/gists{/gist_id}","starred_url":"https://api.github.com/users/mtczerwinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtczerwinski/subscriptions","organizations_url":"https://api.github.com/users/mtczerwinski/orgs","repos_url":"https://api.github.com/users/mtczerwinski/repos","events_url":"https://api.github.com/users/mtczerwinski/events{/privacy}","received_events_url":"https://api.github.com/users/mtczerwinski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mtczerwinski/google-drive-ruby","description":"A Ruby library to read/write files/spreadsheets in Google Drive/Docs.","fork":true,"url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby","forks_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/forks","keys_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/teams","hooks_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/hooks","issue_events_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/events","assignees_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/tags","blobs_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/languages","stargazers_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/stargazers","contributors_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/contributors","subscribers_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/subscribers","subscription_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/subscription","commits_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/merges","archive_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/downloads","issues_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/labels{/name}","releases_url":"https://api.github.com/repos/mtczerwinski/google-drive-ruby/releases{/id}","created_at":"2015-11-24T20:47:18Z","updated_at":"2015-11-24T20:47:18Z","pushed_at":"2015-12-02T21:30:51Z","git_url":"git://github.com/mtczerwinski/google-drive-ruby.git","ssh_url":"git@github.com:mtczerwinski/google-drive-ruby.git","clone_url":"https://github.com/mtczerwinski/google-drive-ruby.git","svn_url":"https://github.com/mtczerwinski/google-drive-ruby","homepage":null,"size":411,"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":"gimite:master","ref":"master","sha":"e3b98d394aae2aac5d92689bc35fb98d16b362b3","user":{"login":"gimite","id":15363,"avatar_url":"https://avatars.githubusercontent.com/u/15363?v=3","gravatar_id":"","url":"https://api.github.com/users/gimite","html_url":"https://github.com/gimite","followers_url":"https://api.github.com/users/gimite/followers","following_url":"https://api.github.com/users/gimite/following{/other_user}","gists_url":"https://api.github.com/users/gimite/gists{/gist_id}","starred_url":"https://api.github.com/users/gimite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gimite/subscriptions","organizations_url":"https://api.github.com/users/gimite/orgs","repos_url":"https://api.github.com/users/gimite/repos","events_url":"https://api.github.com/users/gimite/events{/privacy}","received_events_url":"https://api.github.com/users/gimite/received_events","type":"User","site_admin":false},"repo":{"id":4173125,"name":"google-drive-ruby","full_name":"gimite/google-drive-ruby","owner":{"login":"gimite","id":15363,"avatar_url":"https://avatars.githubusercontent.com/u/15363?v=3","gravatar_id":"","url":"https://api.github.com/users/gimite","html_url":"https://github.com/gimite","followers_url":"https://api.github.com/users/gimite/followers","following_url":"https://api.github.com/users/gimite/following{/other_user}","gists_url":"https://api.github.com/users/gimite/gists{/gist_id}","starred_url":"https://api.github.com/users/gimite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gimite/subscriptions","organizations_url":"https://api.github.com/users/gimite/orgs","repos_url":"https://api.github.com/users/gimite/repos","events_url":"https://api.github.com/users/gimite/events{/privacy}","received_events_url":"https://api.github.com/users/gimite/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gimite/google-drive-ruby","description":"A Ruby library to read/write files/spreadsheets in Google Drive/Docs.","fork":false,"url":"https://api.github.com/repos/gimite/google-drive-ruby","forks_url":"https://api.github.com/repos/gimite/google-drive-ruby/forks","keys_url":"https://api.github.com/repos/gimite/google-drive-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gimite/google-drive-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gimite/google-drive-ruby/teams","hooks_url":"https://api.github.com/repos/gimite/google-drive-ruby/hooks","issue_events_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/gimite/google-drive-ruby/events","assignees_url":"https://api.github.com/repos/gimite/google-drive-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/gimite/google-drive-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/gimite/google-drive-ruby/tags","blobs_url":"https://api.github.com/repos/gimite/google-drive-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gimite/google-drive-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gimite/google-drive-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/gimite/google-drive-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gimite/google-drive-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/gimite/google-drive-ruby/languages","stargazers_url":"https://api.github.com/repos/gimite/google-drive-ruby/stargazers","contributors_url":"https://api.github.com/repos/gimite/google-drive-ruby/contributors","subscribers_url":"https://api.github.com/repos/gimite/google-drive-ruby/subscribers","subscription_url":"https://api.github.com/repos/gimite/google-drive-ruby/subscription","commits_url":"https://api.github.com/repos/gimite/google-drive-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/gimite/google-drive-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/gimite/google-drive-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/gimite/google-drive-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/gimite/google-drive-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gimite/google-drive-ruby/merges","archive_url":"https://api.github.com/repos/gimite/google-drive-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gimite/google-drive-ruby/downloads","issues_url":"https://api.github.com/repos/gimite/google-drive-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/gimite/google-drive-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/gimite/google-drive-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/gimite/google-drive-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gimite/google-drive-ruby/labels{/name}","releases_url":"https://api.github.com/repos/gimite/google-drive-ruby/releases{/id}","created_at":"2012-04-29T08:09:52Z","updated_at":"2015-12-02T08:38:29Z","pushed_at":"2015-12-02T21:30:51Z","git_url":"git://github.com/gimite/google-drive-ruby.git","ssh_url":"git@github.com:gimite/google-drive-ruby.git","clone_url":"https://github.com/gimite/google-drive-ruby.git","svn_url":"https://github.com/gimite/google-drive-ruby","homepage":null,"size":519,"stargazers_count":891,"watchers_count":891,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":42,"forks":201,"open_issues":42,"watchers":891,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/176"},"html":{"href":"https://github.com/gimite/google-drive-ruby/pull/176"},"issue":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/issues/176"},"comments":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/issues/176/comments"},"review_comments":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/176/comments"},"review_comment":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/pulls/176/commits"},"statuses":{"href":"https://api.github.com/repos/gimite/google-drive-ruby/statuses/f10d30415e24c4b6d44b2bfc390b12d80df33f15"}}}}