gdrivestrg 0.0.14 → 0.0.15

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.
@@ -3,8 +3,8 @@ require 'cloudstrg/cloudstrg'
3
3
  class GdriveStrg < CloudStrg::CloudStorage
4
4
  require 'google/api_client'
5
5
 
6
- CLIENT_ID = "867108581948.apps.googleusercontent.com"
7
- CLIENT_SECRET = "Z3TXaBvx36ex8RRD-Wu-3PGK"
6
+ CLIENT_ID = "203391830542.apps.googleusercontent.com"
7
+ CLIENT_SECRET = "rDeCX9CGcCYgSph2w8NPsRBr"
8
8
  SCOPES = [
9
9
  'https://www.googleapis.com/auth/drive',
10
10
  'https://www.googleapis.com/auth/drive.file', # we will only see the files createdby this app
@@ -243,7 +243,7 @@ class GdriveStrg < CloudStrg::CloudStorage
243
243
  file.save
244
244
 
245
245
  r = @client.execute!(:api_method => @drive_api.files.get, :parameters => {'fileId' => params[:file_id]})
246
- return r.data.download_url
246
+ return r.data['webContentLink']
247
247
  else
248
248
  puts "An error occurred: #{result.data['error']['message']}"
249
249
  return nil
@@ -1,3 +1,3 @@
1
1
  module Gdrivestrg
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Gdrivestrg
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdrivestrg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-03 00:00:00.000000000 Z
12
+ date: 2013-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails