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..bfeaf80 100644 --- a/ruby/showoff/Gemfile.lock +++ b/ruby/showoff/Gemfile.lock @@ -15,7 +15,7 @@ GEM specs: blankslate (2.1.2.4) gli (2.5.6) - json (1.7.7) + json (2.6.1) nokogiri (1.5.9) parslet (1.5.0) blankslate (~> 2.0)