gdrivestrg 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gdrivestrg/gdrivestrg.rb +2 -2
- data/lib/gdrivestrg/gdrivestrg.rb~ +1 -1
- data/lib/gdrivestrg/version.rb +1 -1
- data/lib/gdrivestrg/version.rb~ +1 -1
- metadata +2 -2
@@ -3,8 +3,8 @@ require 'cloudstrg/cloudstrg'
|
|
3
3
|
class GdriveStrg < CloudStrg::CloudStorage
|
4
4
|
require 'google/api_client'
|
5
5
|
|
6
|
-
CLIENT_ID = "
|
7
|
-
CLIENT_SECRET = "
|
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
|
246
|
+
return r.data['webContentLink']
|
247
247
|
else
|
248
248
|
puts "An error occurred: #{result.data['error']['message']}"
|
249
249
|
return nil
|
data/lib/gdrivestrg/version.rb
CHANGED
data/lib/gdrivestrg/version.rb~
CHANGED
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.
|
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-
|
12
|
+
date: 2013-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|