google_drive 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google_drive/session.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fff5ef1112cf60c78cc1cbd54372ec34a87e3aad
|
4
|
+
data.tar.gz: 5448d5cba8278598b46b432e1b5e812ac33e0f87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffc511d0d0aba64d4510753abde1fac34fc4940bfc6233d04c0bd4093b3af53ae4c663aba856032b09e11300b10a7b31130dad7638abfb982b6e1a5d6aa3b8c5
|
7
|
+
data.tar.gz: 076cf4ceeaec5fb63ea8374a940c091544a413ca8c7cd5604d5a2cc642715e2f3513fb641230c560371d89bda2fb1a70d014631030ff2038c3be31b4d7fe9b41
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ $ sudo gem install google_drive
|
|
39
39
|
|
40
40
|
### Authorization
|
41
41
|
|
42
|
-
Follow one of the options in [Authorization](https://github.com/gimite/google-drive-ruby/doc/authorization.md) to construct a session object. The example code below assumes "On behalf of you" option.
|
42
|
+
Follow one of the options in [Authorization](https://github.com/gimite/google-drive-ruby/blob/master/doc/authorization.md) to construct a session object. The example code below assumes "On behalf of you" option.
|
43
43
|
|
44
44
|
### Example to read/write files in Google Drive
|
45
45
|
|
data/lib/google_drive/session.rb
CHANGED
@@ -44,7 +44,7 @@ module GoogleDrive
|
|
44
44
|
# Constructs a GoogleDrive::Session object from OAuth2 credentials such as
|
45
45
|
# Google::Auth::UserRefreshCredentials.
|
46
46
|
#
|
47
|
-
# See https://github.com/gimite/google-drive-ruby/doc/authorization.md for a usage example.
|
47
|
+
# See https://github.com/gimite/google-drive-ruby/blob/master/doc/authorization.md for a usage example.
|
48
48
|
def self.from_credentials(credentials)
|
49
49
|
Session.new(credentials)
|
50
50
|
end
|
@@ -58,7 +58,7 @@ module GoogleDrive
|
|
58
58
|
#
|
59
59
|
# You can pass either the path to a JSON file, or an IO-like object with the JSON.
|
60
60
|
#
|
61
|
-
# See https://github.com/gimite/google-drive-ruby/doc/authorization.md for a usage example.
|
61
|
+
# See https://github.com/gimite/google-drive-ruby/blob/master/doc/authorization.md for a usage example.
|
62
62
|
def self.from_service_account_key(json_key_path_or_io, scope = DEFAULT_SCOPE)
|
63
63
|
if json_key_path_or_io.is_a?(String)
|
64
64
|
open(json_key_path_or_io) do |f|
|
@@ -78,7 +78,7 @@ module GoogleDrive
|
|
78
78
|
# This will prompt the credential via command line for the first time and save it to
|
79
79
|
# +config+ for later usages.
|
80
80
|
#
|
81
|
-
# See https://github.com/gimite/google-drive-ruby/doc/authorization.md for a usage example.
|
81
|
+
# See https://github.com/gimite/google-drive-ruby/blob/master/doc/authorization.md for a usage example.
|
82
82
|
#
|
83
83
|
# You can also provide a config object that must respond to:
|
84
84
|
# client_id
|