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

Rubinius behaves differently than Ruby wrt. use of to_ary/to_s #3456

Closed
wkoszek opened this issue Jul 7, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@wkoszek
Copy link

commented Jul 7, 2015

I pushed to Git my Ruby exercises I wrote a while back when learning Ruby.

git clone git://github.com/wkoszek/ruby_edu.git

I went and enabled Travis-CI builds for both Ruby 2.1 and Rubinius.

https://travis-ci.org/wkoszek/ruby_edu/jobs/69929229
https://travis-ci.org/wkoszek/ruby_edu/jobs/69929231

Ruby passes, while Rubinius is failing. Looks like to_s function is called where to_ary is expected, assuming Ruby 2.1 is a reference result.

Upon cloning, do "make". It will run Ruby on each .rb file and generate .o file, which is a result. Then the .o file is compared against corresponding .t file (expected result).

@wkoszek

This comment has been minimized.

Copy link
Author

commented Jul 9, 2015

Is this problem also related with Travis using out-of-date Rubinius?

(more details on outdated Travis: #3457)

@brixen

This comment has been minimized.

Copy link
Member

commented Jul 9, 2015

This build is using 2.5.7 https://travis-ci.org/wkoszek/ruby_edu/jobs/69929231#L104 so it does not look related to the version problem in #3457.

@andre-richter

This comment has been minimized.

Copy link
Member

commented Jan 9, 2016

Interesting find, thank you!
Has been fixed in 648a80c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.