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

Fixes broken references on Ruby v1.9.x #42

Merged
merged 1 commit into from
Aug 20, 2012
Merged

Conversation

lee-dohm
Copy link
Contributor

Calling to_s on an array containing strings results in different output on Ruby v1.8 and v1.9:

% rvm all do ruby -e 'puts ["foo", "bar", "baz"].to_s'
foobarbaz
["foo", "bar", "baz"]

But join works the same:

% rvm all do ruby -e 'puts ["foo", "bar", "baz"].join(" ")'
foo bar baz
foo bar baz

So I changed the to_s to join("\n").

@travisbot
Copy link

This pull request passes (merged 071bb40 into f91f733).

nricciar added a commit that referenced this pull request Aug 20, 2012
Fixes broken references on Ruby v1.9.x
@nricciar nricciar merged commit f1f82f6 into nricciar:master Aug 20, 2012
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