Skip to content

Commit

Permalink
I dub thee v0.17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
andymeneely committed Sep 7, 2021
1 parent 70b38b7 commit 695cbec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Squib CHANGELOG
Squib follows [semantic versioning](http://semver.org).

## v0.17.1 / 2021-09-07

Bugs:
* Fix frozen string error on `Squib.xlsx` import when stripping newlines is enabled

## v0.17.1 / 2021-08-11

Bugs:
Expand Down
4 changes: 2 additions & 2 deletions lib/squib/import/xlsx_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ def import_to_dataframe(import, &block)
data = Squib::DataFrame.new
s.first_column.upto(s.last_column) do |col|
header = s.cell(s.first_row, col).to_s
header.strip! if import.strip?
header = header.strip if import.strip?
data[header] = []
(s.first_row + 1).upto(s.last_row) do |row|
cell = s.cell(row, col)
# Roo hack for avoiding unnecessary .0's on whole integers (https://github.com/roo-rb/roo/issues/139)
cell = s.excelx_value(row, col) if s.excelx_type(row, col) == [:numeric_or_formula, 'General']
cell.strip! if cell.respond_to?(:strip) && import.strip?
cell = cell.strip if cell.respond_to?(:strip) && import.strip?
cell = block.yield(header, cell) unless block.nil?
data[header] << cell
end# row
Expand Down
2 changes: 1 addition & 1 deletion lib/squib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Squib
# Most of the time this is in the alpha of the next release.
# e.g. v0.0.5a is on its way to becoming v0.0.5
#
VERSION = '0.18.0a'
VERSION = '0.17.2'
end

0 comments on commit 695cbec

Please sign in to comment.