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

Update ERB stdlib from MRI 2.5.0 to at least 2.5.1 #5479

Closed
presidentbeef opened this issue Nov 28, 2018 · 4 comments
Closed

Update ERB stdlib from MRI 2.5.0 to at least 2.5.1 #5479

presidentbeef opened this issue Nov 28, 2018 · 4 comments
Milestone

Comments

@presidentbeef
Copy link

Environment

jruby 9.2.4.0 (2.5.0) 2018-11-13 8faff06 Java HotSpot(TM) 64-Bit Server VM 10.0.1+10 on 10.0.1+10 +jit [darwin-x86_64]

Issue

JRuby 9.2.4.0 uses the stdlib version of ERB from MRI 2.5.0. Unfortunately, that version introduced a backwards-incompatible change, as documented in https://redmine.ruby-lang.org/issues/14243. The change was reverted in MRI 2.5.1.

FWIW I tried the current trunk version of ERB instead and it seemed to work fine with JRuby 9.2.4.0.

I'm not sure what the JRuby policy is for updating the stdlib, but I'm guessing it's to match the compatibility version that's reported with jruby -v. That would rule out just updating ERB to the 2.5.1 version.

So I suppose this ticket is just a little bit of motivation to update to the latest 2.5.x stdlib :)

@presidentbeef presidentbeef changed the title Update ERB stdlib from MRI Update ERB stdlib from MRI 2.5.0 to at least 2.5.1 Nov 28, 2018
@headius
Copy link
Member

headius commented Nov 28, 2018

@presidentbeef So you're saying that 2.5.1 has the fix? I agree, we should do a stdlib update for 9.2.6 (9.2.5 already has a lot of fixes in it) to the latest 2.5.x stdlib.

Need to figure out a better policy here...maybe I can get our patches into the MRI repo so we can just source stdlib directly from.there.

@headius headius added this to the JRuby 9.2.6.0 milestone Nov 28, 2018
@presidentbeef
Copy link
Author

Yes, that's correct: 2.5.1 has the fix.

I was tracking down why I was having test failures with JRuby and I realized it was the same bug I had already seen and reported with MRI. It's only in 2.5.0.

@headius
Copy link
Member

headius commented Nov 28, 2018

Gotcha, thanks. We will roll stdlib to latest 2.5.x (and gems, if there's updates) for 9.2.6 some time in December. I'll start that soon...if it looks like not-too-many changes it might make 9.2.5.

@headius
Copy link
Member

headius commented Dec 13, 2018

This has been fixed in #5505 and which was merged to master in d03c357. JRuby 9.2.6 will ship with Ruby 2.5.3 stdlib. We also fixed all relevant test failures in the updated MRI test suite, mostly outside of stdlib (in core).

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

No branches or pull requests

2 participants