lib/itools/find_unuse_img.rb in itools-0.3.0 vs lib/itools/find_unuse_img.rb in itools-0.4.0

- old
+ new

@@ -73,10 +73,11 @@ end end } puts "\033[32m无用图片#{imags.size}张,图片名称如下:\033[0m" unuse_total_size = 0 - Spreadsheet.client_encoding = 'utf-8' + + Spreadsheet.client_encoding = 'utf-8' book = Spreadsheet::Workbook.new sheet1 = book.create_worksheet sheet1.row(0)[0] = "文件名" sheet1.row(0)[1] = "文件路径" imags.each_with_index {|item,idx|