Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ def pad(array)
array.each do |row|
i = 0
row.each do |col|
max[i] = [max[i] || 0, col.length].max
max[i] = [max[i] || 0, col.bytesize].max
i += 1
end
end

array.each do |row|
i = 0
row.each do |col|
col << " " * (max[i] - col.length)
col << " " * (max[i] - col.bytesize)
i += 1
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/mini_mime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def initialize(path, sort_order)
@path = path
@file = PReadFile.new(@path)

@row_length = @file.readline("\n").length
@row_length = @file.readline("\n").bytesize
@file_length = File.size(@path)
@rows = @file_length / @row_length

Expand Down
Loading