lib/cranium/data_reader.rb in cranium-0.3.0 vs lib/cranium/data_reader.rb in cranium-0.3.1

- old
+ new

@@ -1,7 +1,6 @@ require 'csv' -require 'cranium/extensions/file' class Cranium::DataReader def initialize(source) @source = source @@ -19,10 +18,10 @@ private def read_input_file(input_file, read_block) - Cranium::ProgressOutput.show_progress File.basename(input_file), File.line_count(input_file) do |progress_bar| + Cranium::ProgressOutput.show_progress File.basename(input_file), Cranium::FileUtils.line_count(input_file) do |progress_bar| line_number = 0 CSV.foreach input_file, csv_read_options_for(@source) do |row| next if 1 == (line_number += 1) record = Hash[@source_field_names.zip row]