• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

foodcoops / foodsoft / 23919494058

02 Apr 2026 08:03PM UTC coverage: 42.961% (-2.4%) from 45.369%
23919494058

Pull #1292

github

web-flow
Merge 1bc631907 into 14e75af2b
Pull Request #1292: chore(deps): bump rack from 2.2.22 to 2.2.23

3140 of 7309 relevant lines covered (42.96%)

11.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

23.08
/lib/spreadsheet_file.rb
1
require 'roo'
1✔
2

3
class SpreadsheetFile
1✔
4
  def self.parse(file, options = {})
1✔
5
    filepath = file.is_a?(String) ? file : file.to_path
×
6
    filename = options.delete(:filename) || filepath
×
7
    fileext = File.extname(filename)
×
8
    options[:csv_options] = { col_sep: ';', encoding: 'utf-8' }.merge(options[:csv_options] || {})
×
9
    s = Roo::Spreadsheet.open(filepath, options.merge({ extension: fileext }))
×
10

11
    row_index = 1
×
12
    s.each do |row|
×
13
      # header detection must be done by using code (e.g. based on index)
14
      yield row, row_index
×
15
      row_index += 1
×
16
    end
17
    row_index
×
18
  end
19
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc