You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there! Thank you for the gem, you made a really good job!
I wanna suggest one feature that I can implement as a contributor if we'll decide to do that. So, there's the subject.
In a gem called roo (definitely you know about it), there's a very good feature that allows passing a hash by a set of headers. My team uses roo for parsing datasheets with headers in Russian, and then we use the content of a datasheet to create some AR entities for example.
That allows you to define the keys of your data items so there is no need to transform the keys of every hash to pass data to the next method for example. And with that feature, you can also automatically detect the offset between the first significant row of your data and some blank space, because sometimes docs that we parse looks like this:
As you can see, there are two rows that shouldn't be present in parsed data – it just the information to one who works with this template on how to fill rows.
So if this interesting for you I could contribute some time to implement that feature in xsv too.
Best regards.
The text was updated successfully, but these errors were encountered:
I would gladly merge something like this. It seems to me that a header_translations parameter on the parse_headers! method would be the way to go. Please submit some tests with your code so we can ensure the feature does not break in the future.
Hello there! Thank you for the gem, you made a really good job!
I wanna suggest one feature that I can implement as a contributor if we'll decide to do that. So, there's the subject.
In a gem called
roo
(definitely you know about it), there's a very good feature that allows passing a hash by a set of headers. My team usesroo
for parsing datasheets with headers in Russian, and then we use the content of a datasheet to create some AR entities for example.In
roo
it looks like:That allows you to define the keys of your data items so there is no need to transform the keys of every hash to pass data to the next method for example. And with that feature, you can also automatically detect the offset between the first significant row of your data and some blank space, because sometimes docs that we parse looks like this:
As you can see, there are two rows that shouldn't be present in parsed data – it just the information to one who works with this template on how to fill rows.
So if this interesting for you I could contribute some time to implement that feature in
xsv
too.Best regards.
The text was updated successfully, but these errors were encountered: