Skip to content
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

Add headers option to encode to match decode #34

Merged
merged 1 commit into from
Apr 3, 2016

Conversation

barruumrex
Copy link
Contributor

Added the headers option to encode to allow processing of lists of maps. This allows the encoder to immediately process the output from CSV.decode(stream, headers: true). Using CSV.encode(stream, headers: true) results in the columns being ordered by the default key sort order of maps. Passing in a list to the headers option locks the order and limits the columns to only those specified.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling ffc10d2 on barruumrex:master into 5baca56 on beatrichartz:master.

@beatrichartz
Copy link
Owner

Great, thanks for the good work! Merging this...

@beatrichartz beatrichartz merged commit 74c646e into beatrichartz:master Apr 3, 2016
@beatrichartz
Copy link
Owner

Released in 1.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants