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

Allow concat to take non-array second parameters #222

Merged
merged 1 commit into from Apr 24, 2014
Merged

Allow concat to take non-array second parameters #222

merged 1 commit into from Apr 24, 2014

Conversation

mfoo
Copy link

@mfoo mfoo commented Feb 24, 2014

This allows the concat command to take any object type as the second parameter. It should preserve existing functionality.

I have also expanded upon the existing tests to lock down the current functionality.

I initially used .concat(x).flatten!, but realised that if somebody is passing nested arrays as the second parameter then this change will break their existing functionality. A test case was added to ensure this behaviour is preserved for future changes.

As per the contributing guidelines I have signed the contributing agreement and signed up to JIRA, but see no JIRA project for puppet-stdlib. I raised a question about this on the freenode IRC channel but got no response.

Please advise if I've missed anything.

Also improve and extend concat tests to lock down functionality
apenney pushed a commit that referenced this pull request Apr 24, 2014
Allow concat to take non-array second parameters
@apenney apenney merged commit 0b59dfe into puppetlabs:master Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants