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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e6caa28bd80c52ae0514e07d508a62c7b4b4ebf
4
- data.tar.gz: 1ede4e3d45234bd9f492e63048193a3c57785836
3
+ metadata.gz: 5bf7956b153e220ffa3c09c0aaa15a06d72683df
4
+ data.tar.gz: f7b3ccb5e1bd511e070037bef2def79c27935f68
5
5
  SHA512:
6
- metadata.gz: 4e7a61540baef46bdd5c9b9b85ff3b4ab4e2fbc4ad31417543cb558bbab6a80c9ab7e1e530779f20f8cb5d9bc0e082b4e75506ec001e6b32783de9017bb9decc
7
- data.tar.gz: bfa2356628d021c587b039d33f70cb8b031861fbf93a2e1e858932d325a36a9942cdaed3a8c471f43ff34d64d814335c72f34520fa792dfd551cb902064c0cbd
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' })
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module GoogleDrive
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
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.0
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-19 00:00:00.000000000 Z
12
+ date: 2014-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core