I dub thee v0.17.2
parent
70b38b74ed
commit
695cbec183
|
|
@ -1,6 +1,11 @@
|
||||||
# Squib CHANGELOG
|
# Squib CHANGELOG
|
||||||
Squib follows [semantic versioning](http://semver.org).
|
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
|
## v0.17.1 / 2021-08-11
|
||||||
|
|
||||||
Bugs:
|
Bugs:
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,13 @@ module Squib::Import
|
||||||
data = Squib::DataFrame.new
|
data = Squib::DataFrame.new
|
||||||
s.first_column.upto(s.last_column) do |col|
|
s.first_column.upto(s.last_column) do |col|
|
||||||
header = s.cell(s.first_row, col).to_s
|
header = s.cell(s.first_row, col).to_s
|
||||||
header.strip! if import.strip?
|
header = header.strip if import.strip?
|
||||||
data[header] = []
|
data[header] = []
|
||||||
(s.first_row + 1).upto(s.last_row) do |row|
|
(s.first_row + 1).upto(s.last_row) do |row|
|
||||||
cell = s.cell(row, col)
|
cell = s.cell(row, col)
|
||||||
# Roo hack for avoiding unnecessary .0's on whole integers (https://github.com/roo-rb/roo/issues/139)
|
# 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 = 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?
|
cell = block.yield(header, cell) unless block.nil?
|
||||||
data[header] << cell
|
data[header] << cell
|
||||||
end# row
|
end# row
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,6 @@ module Squib
|
||||||
# Most of the time this is in the alpha of the next release.
|
# 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
|
# e.g. v0.0.5a is on its way to becoming v0.0.5
|
||||||
#
|
#
|
||||||
VERSION = '0.18.0a'
|
VERSION = '0.17.2'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue