Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
lt-google-api (0.1.1)
lt-google-api (0.2.1)
google-api-client
googleauth

Expand All @@ -14,9 +14,10 @@ GEM
childprocess (4.0.0)
declarative (0.0.20)
declarative-option (0.1.0)
faraday (1.0.1)
faraday (1.2.0)
multipart-post (>= 1.2, < 3)
google-api-client (0.46.1)
ruby2_keywords
google-api-client (0.52.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 0.9)
httpclient (>= 2.8.1, < 3.0)
Expand All @@ -43,13 +44,13 @@ GEM
overcommit (0.57.0)
childprocess (>= 0.6.3, < 5)
iniparse (~> 1.4)
parallel (1.19.2)
parallel (1.20.1)
parser (2.7.2.0)
ast (~> 2.4.1)
public_suffix (4.0.6)
rainbow (3.0.0)
rake (13.0.1)
regexp_parser (1.8.2)
rake (13.0.3)
regexp_parser (2.0.1)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
Expand All @@ -65,9 +66,10 @@ GEM
rubocop-ast (>= 0.6.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.8.0)
rubocop-ast (1.3.0)
parser (>= 2.7.1.5)
ruby-progressbar (1.10.1)
ruby2_keywords (0.0.2)
signet (0.14.0)
addressable (~> 2.3)
faraday (>= 0.17.3, < 2.0)
Expand Down
4 changes: 2 additions & 2 deletions lib/lt/google/api/drive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def copy(file_ids, folder_id)
else
service.copy_file(
id,
Google::Apis::DriveV3::File.new(name: f.name, parents: [folder_id]),
::Google::Apis::DriveV3::File.new(name: f.name, parents: [folder_id]),
supports_all_drives: true
)
end
Expand All @@ -62,7 +62,7 @@ def copy_files(folder_id, target_id)
next if current_files.detect { |f| f.name == file.name }

# copy if it's a new file
new_file = Google::Apis::DriveV3::File.new(name: file.name, parents: [target_id])
new_file = ::Google::Apis::DriveV3::File.new(name: file.name, parents: [target_id])
service.copy_file(file.id, new_file, supports_all_drives: true)
end
end
Expand Down