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 to_h to the class used for ENV #3218

Merged
merged 2 commits into from Aug 6, 2015

Conversation

reuben-sutton
Copy link
Contributor

That makes it so that it duplicates rather than returning the same object to make compatible with MRI

fixes #3162

@kares
Copy link
Member

kares commented Aug 4, 2015

change seem to introduce a failure e.g. here https://travis-ci.org/jruby/jruby/jobs/73959532#L3277-L3284

@reuben-sutton
Copy link
Contributor Author

@kares So it does. Doesn't happen on oraclejdk8, so installing openjdk7 to see if I can reproduce there.

@reuben-sutton
Copy link
Contributor Author

hi @kares - just found the issue and committed a fix.

@kares
Copy link
Member

kares commented Aug 5, 2015

since this is rubyspecs your updating it needs a certain level of quality, you seem to set ENV['foo'] for no reason ... either assert smt around it (maybe even change the key name to not collide with another spec) or simply remove the first/last lines.

we also need the spec change to be in separate commits (so it can be easy ported upstream), thus please update your commits to be clean (one fixinig to_h another one adding a spec)

@reuben-sutton
Copy link
Contributor Author

Hi @kares, that's done. Thanks!

@kares
Copy link
Member

kares commented Aug 5, 2015

@reuben-sutton excellent, thanks! this should be good to go - we're just wait to hear about travis-ci (no worries about unrelated failures)

kares added a commit that referenced this pull request Aug 6, 2015
@kares kares merged commit 3ff99ce into jruby:master Aug 6, 2015
@kares kares added this to the JRuby 9.0.1.0 milestone Aug 6, 2015
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.

Different results for to_h and to_hash on ENV
2 participants