-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use worksheet without block #45
Use worksheet without block #45
Conversation
Could you describe how the commit "Track worksheet with WorksheetEntry" contributes to the close checking? The commit message says it is needed, but I can't really see a relation the the close checking code. Also why did you change the author on the initial commit by @kukicola? |
Thanks @felixbuenemann It's needed because we need a reference to the worksheet, to check the I never changed it, I just copied the diff. Couldn't work out how to fork his fork so I ended up recreating the commit instead. I wrote "credit @kukicola" in the commit message though. If it's important I can google and see if I can change the author via git CLI. |
@felixbuenemann I've managed to change the author of the commit (I think) I've also made the change backwards-compatible. Let me know what you think! |
@felixbuenemann @sandstrom Hi guys! I like the idea of having those errors, good job! One thing that bothers me here: You are using |
@kukicola Thanks! And thanks for bringing this up in the first place! I actually wrote it that way first, but that would require more changes to the code since worksheets are created "on their own" in the tests. So to keep the change delta down I did this instead. Don't have a strong preference though, if felix would like it that way instead I'm happy to change. |
I think the most straighjt forward solution would be to just add the Since we store a referece to the worksheet class anyways, I don't see a reason to wrap it in a struct. Am I missing something? |
@felixbuenemann Alright, I'll go with that. We'd need to pass in "dummy" id and name in worksheet_test.rb, but it's fairly straightforward. |
This method was never documented (private) so it's unlikely that anyone was relying on it. But in case they did we continue supporting this use-case and emit a warning.
@felixbuenemann @kukicola I've updated the PR, let me know what you think! |
I don't think we really need that, if we use default values. I also don't quite like that we have the default value for name handled outside the worksheet class, when we could just pass it through via the options hash. But I can take care of those when merging the code. |
@felixbuenemann Thanks Felix! Do/change whatever you like here. You have commit rights to this branch (in my fork) if that helps. Thanks for a great library! 🏅 |
and add the code location to the deprecation warning to help track down the location of the deprecated call.
and hide the warning during test runs. This allows to hide the warning using eg. RUBYOPT=-W0.
since it is already included by the workbook source.
@sandstrom @kukicola Thanks for your work on this, I've merged it with a few tweaks and fixes. |
This feature is now released in xlsxtream 2.4.0. |
Awesome, thanks @felixbuenemann 🎉 |
Successor to #42
Credit to @kukicola