lib/write_xlsx/package/app.rb in write_xlsx-1.11.1 vs lib/write_xlsx/package/app.rb in write_xlsx-1.11.2

- old
+ new

@@ -44,28 +44,32 @@ def add_worksheet_heading_pairs add_heading_pair( [ 'Worksheets', - @workbook.worksheets.reject { |s| s.is_chartsheet? }.count + @workbook.worksheets.reject do |s| + s.is_chartsheet? || s.very_hidden? + end.count ] ) end def add_chartsheet_heading_pairs add_heading_pair(['Charts', @workbook.chartsheet_count]) end def add_worksheet_part_names @workbook.worksheets - .reject { |sheet| sheet.is_chartsheet? } - .each { |sheet| add_part_name(sheet.name) } + .reject { |sheet| sheet.is_chartsheet? || sheet.very_hidden? } + .each do |sheet| + add_part_name(sheet.name) + end end def add_chartsheet_part_names @workbook.worksheets - .select { |sheet| sheet.is_chartsheet? } - .each { |sheet| add_part_name(sheet.name) } + .select { |sheet| sheet.is_chartsheet? } + .each { |sheet| add_part_name(sheet.name) } end def add_part_name(part_name) @part_names.push(part_name) end