google_drive 2.0.0.pre1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_drive.rb +5 -5
- data/lib/google_drive/util.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6953205de39d68d7052796a2e727a9373ca3051
|
4
|
+
data.tar.gz: 6c1ef6b82a4a565a89422bc383963b05d611f0c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88b057f25437a247166b64f04105b1593a43ae609a8749c1cb87c03644c3d0425103411ba5612858886cc029368a0b2474f2aacea36435a6fd30291192fd9d01
|
7
|
+
data.tar.gz: 9b61fb42dbf08b7f0601c61a43d67c6e422aaa5195280e42bd8f0f06372469d98eb06d3d679baab796730bc2061351d8feb8ad75b5f5669ff120109076eca2e2
|
data/lib/google_drive.rb
CHANGED
@@ -30,8 +30,8 @@ module GoogleDrive
|
|
30
30
|
# credentials.fetch_access_token!
|
31
31
|
# session = GoogleDrive.login_with_oauth(credentials)
|
32
32
|
#
|
33
|
-
#
|
34
|
-
#
|
33
|
+
# credentials.access_token expires in 1 hour. If you want to restore a session afterwards, you can store
|
34
|
+
# credentials.refresh_token somewhere after auth.fetch_access_token! above, and use this code:
|
35
35
|
#
|
36
36
|
# require "googleauth"
|
37
37
|
#
|
@@ -43,9 +43,9 @@ module GoogleDrive
|
|
43
43
|
# "https://spreadsheets.google.com/feeds/",
|
44
44
|
# ],
|
45
45
|
# redirect_uri: "http://example.com/redirect")
|
46
|
-
#
|
47
|
-
#
|
48
|
-
# session = GoogleDrive.login_with_oauth(
|
46
|
+
# credentials.refresh_token = refresh_token
|
47
|
+
# credentials.fetch_access_token!
|
48
|
+
# session = GoogleDrive.login_with_oauth(credentials.access_token)
|
49
49
|
#
|
50
50
|
# For command-line apps, it would be easier to use saved_session method instead.
|
51
51
|
def self.login_with_oauth(client_or_access_token, proxy = nil)
|
data/lib/google_drive/util.rb
CHANGED
@@ -22,6 +22,7 @@ module GoogleDrive
|
|
22
22
|
'.png' => 'image/png',
|
23
23
|
'.ppt' => 'application/vnd.ms-powerpoint',
|
24
24
|
'.pps' => 'application/vnd.ms-powerpoint',
|
25
|
+
'.pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
25
26
|
'.htm' => 'text/html',
|
26
27
|
'.html' => 'text/html',
|
27
28
|
'.zip' => 'application/zip',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_drive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Ichikawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -208,9 +208,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
version: 2.0.0
|
209
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
210
|
requirements:
|
211
|
-
- - "
|
211
|
+
- - ">="
|
212
212
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
213
|
+
version: '0'
|
214
214
|
requirements: []
|
215
215
|
rubyforge_project:
|
216
216
|
rubygems_version: 2.5.1
|