diff --git a/ruby/google_drive/bin/files_to_spreadsheet b/ruby/google_drive/bin/files_to_spreadsheet index e7dbeb8..cf0c644 100755 --- a/ruby/google_drive/bin/files_to_spreadsheet +++ b/ruby/google_drive/bin/files_to_spreadsheet @@ -7,11 +7,11 @@ Dotenv.load require './lib/google_drive_spreadsheet' title, path = ARGV -abort "Usage: #{__FILE__} worksheet_title [files_path]" unless title +abort "Usage: #{__FILE__} worksheet_title files_path" unless title && path path ||= `pwd` cells = [%w[Name Ext Size MTime]] -cells += Pathname.glob("#{path}/*.*").sort.map{|file| [file.basename('.*'), file.extname, file.size, file.mtime] } +cells += Pathname.glob("#{path}/*").sort.map{|file| [file.basename('.*'), file.extname, file.size, file.mtime] } GoogleDriveSpreadsheet.write(title, cells) diff --git a/ruby/showoff/Gemfile.lock b/ruby/showoff/Gemfile.lock index e5b5d44..f4a921a 100644 --- a/ruby/showoff/Gemfile.lock +++ b/ruby/showoff/Gemfile.lock @@ -16,10 +16,14 @@ GEM blankslate (2.1.2.4) gli (2.5.6) json (1.7.7) - nokogiri (1.5.9) + mini_portile2 (2.7.1) + nokogiri (1.13.0) + mini_portile2 (~> 2.7.0) + racc (~> 1.4) parslet (1.5.0) blankslate (~> 2.0) pdfkit (0.5.3) + racc (1.6.0) rack (1.5.2) rack-protection (1.5.0) rack