Make row validation optional, parse XLSX files, add worksheet column to Excel parser #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hi, added the following features.
:validate_rows
as a parameter to their source object. If this is turned off, then the process won't die when a row has the wrong number of fields.worksheet_column: :column_name
in the definition configuration, the excel parser will add the name of the worksheet to each row in a field by that name.My change to ETL::Engine is for compatibility with activerecord 3.x, which won't allow mass assignment to fields that have not been declared as accessible in the model. I didn't add any attr_accessible calls on the model because I don't want to mess with backward compatibility.
Lastly, I am not having an easy time with getting the test suite to work. I'm happy to do the leg work in getting these changes properly tested but I wanted to see if you're interested in these changes -- and if so, whether you wouldn't mind helping me out with the test environment.
I have some cool new DSL I've developed, and if I can get my test environment working I'll pull it out of my application and send another pull request to see about adding it to the gem.
Cheers!
Tyler