google_drive 2.0.0.pre1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55c7313948e140230848e220a36ab07648790d38
4
- data.tar.gz: aea2dafd3efb8cce5911a5a0475a51276bdef75f
3
+ metadata.gz: c6953205de39d68d7052796a2e727a9373ca3051
4
+ data.tar.gz: 6c1ef6b82a4a565a89422bc383963b05d611f0c0
5
5
  SHA512:
6
- metadata.gz: b4866bc23c4cad36082f3487ad90f9b15cca81fb789c19a869770eb9d40b10651b1e40e4a10833f39a802884dba4f8a0b9855c57d4160ca9aa56ddd3621bc1fd
7
- data.tar.gz: cf998e7d7ed9073c7f5f3bb3d10a29ea45fc79c99f9f1fa3c2d23d306c17e2e2e38a6d6a289db115ee678ff66179c76f2484db5d3dd42349ebccf1c27cc9b2fc
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
- # auth.access_token expires in 1 hour. If you want to restore a session afterwards, you can store
34
- # auth.refresh_token somewhere after auth.fetch_access_token! above, and use this code:
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
- # auth.refresh_token = refresh_token
47
- # auth.fetch_access_token!
48
- # session = GoogleDrive.login_with_oauth(auth.access_token)
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)
@@ -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.pre1
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-04 00:00:00.000000000 Z
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: 1.3.1
213
+ version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
216
  rubygems_version: 2.5.1