From d0622b79d8d011c80f63e71c96e69754a5b0ec16 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Thu, 10 Aug 2017 19:09:14 -0400 Subject: Better categorize test coverage results Also marks a few things as uncovered, and removes an unused class. --- lib/file_streamer.rb | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 lib/file_streamer.rb (limited to 'lib/file_streamer.rb') diff --git a/lib/file_streamer.rb b/lib/file_streamer.rb deleted file mode 100644 index 4e3c6d3c773..00000000000 --- a/lib/file_streamer.rb +++ /dev/null @@ -1,16 +0,0 @@ -class FileStreamer #:nodoc: - attr_reader :to_path - - def initialize(path) - @to_path = path - end - - # Stream the file's contents if Rack::Sendfile isn't present. - def each - File.open(to_path, 'rb') do |file| - while chunk = file.read(16384) - yield chunk - end - end - end -end -- cgit v1.2.1