diff --git a/Gemfile.lock b/Gemfile.lock index 546472b..0ed80e7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - lt-google-api (0.1.1) + lt-google-api (0.2.1) google-api-client googleauth @@ -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) @@ -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) @@ -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) diff --git a/lib/lt/google/api/drive.rb b/lib/lt/google/api/drive.rb index e630f29..7b0d709 100644 --- a/lib/lt/google/api/drive.rb +++ b/lib/lt/google/api/drive.rb @@ -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 @@ -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