diff --git a/ruby/coderwall_leaderboard_users_csv/Gemfile.lock b/ruby/coderwall_leaderboard_users_csv/Gemfile.lock index 5772709..dcc3fc7 100644 --- a/ruby/coderwall_leaderboard_users_csv/Gemfile.lock +++ b/ruby/coderwall_leaderboard_users_csv/Gemfile.lock @@ -12,10 +12,14 @@ GEM ntlm-http (~> 0.1, >= 0.1.1) webrobots (~> 0.0, >= 0.0.9) mime-types (1.21) + mini_portile2 (2.7.1) net-http-digest_auth (1.2.1) net-http-persistent (2.8) - nokogiri (1.5.6) + nokogiri (1.13.0) + mini_portile2 (~> 2.7.0) + racc (~> 1.4) ntlm-http (0.1.1) + racc (1.6.0) unf (0.0.5) unf_ext unf_ext (0.0.6) 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)