Open cgunther opened 3 years ago
Is there any chance this PR will get merged and released? Our logs are absolutely spammed by this warning. Alternatively, is there a way we can get it to display only once instead of every time it's called?
Hey all - I know you're all really busy, but is there any chance of merging this in and getting a fresh version of this gem released to rubygems?
Calling
Excelx#set
internally calledExcelx::Cell.new
, which is deprecated in favor ofExcelx::Cell.create_cell
.I tried using the recommended
Excelx::Cell.create_cell
, however it expects atype
as the first argument.#set
tries to infer the type viacell_type_by_value
, however it only returns:float
or:string
, butExcelx::Cell.cell_class
doesn't support:float
.Even if I add
:float
to map toCell::Number
, then there's a dilemma becauseExcelx::Cell.create_cell
passes all the arguments except the first onto the specific cell class, but the arity ofCell::String
is 5 whereas the arity ofCell::Number
is 6, meaningExcelx#set
would need to initialize each cell class individually to pass the appropriate arguments.Therefore I landed on simply using
Cell::Base
. It's probably not the most accurate, but given persisting the spreadsheet isn't an option, the uses forExcelx#set
should be minimal. In my case, I simply use it in testing to avoid creating new files for every possible scenario, opting to manually set various cells to triggered assorted scenarios.Fixes #529.