middleman-google_drive 0.2.0 → 0.2.1
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 +2 -2
- data/lib/middleman-google_drive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bf7956b153e220ffa3c09c0aaa15a06d72683df
|
4
|
+
data.tar.gz: f7b3ccb5e1bd511e070037bef2def79c27935f68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cabc9eb4a1a5b3eb1b8486df8f5a9d98c4202223efcf74c4ed85e6f93c53bb0a34dad5b0b240a1c45ec2f0bcadf5f12d85c0296d934c8b7406a0ebeba8fda6b
|
7
|
+
data.tar.gz: aa172b233c0582022b8ec4233a69e8f0f4bc3e7066b1033de6632db662a79ad26ec734c1da73962268d038fe894b1c880c3313039871f51f91af3087f91a117a
|
data/lib/google_drive.rb
CHANGED
@@ -135,14 +135,14 @@ class GoogleDrive
|
|
135
135
|
end
|
136
136
|
|
137
137
|
def copy_doc(file_id, title=nil)
|
138
|
-
drive = client.discovered_api('drive', 'v2')
|
138
|
+
drive = @client.discovered_api('drive', 'v2')
|
139
139
|
|
140
140
|
if title.nil?
|
141
141
|
copied_file = drive.files.copy.request_schema.new
|
142
142
|
else
|
143
143
|
copied_file = drive.files.copy.request_schema.new('title' => title)
|
144
144
|
end
|
145
|
-
cp_resp = client.execute(
|
145
|
+
cp_resp = @client.execute(
|
146
146
|
api_method: drive.files.copy,
|
147
147
|
body_object: copied_file,
|
148
148
|
parameters: { fileId: file_id, visibility: 'PRIVATE' })
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-google_drive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Mark
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|