Skip to content
This repository was archived by the owner on May 24, 2025. It is now read-only.

fix up delegated methods in distributed server, patch compatibility fix for Ruby 2.4 - #392

Open
damienrch wants to merge 1 commit into
gavinlaking:masterfrom
damienrch:feature/ruby-2.4-delegator-fix
Open

fix up delegated methods in distributed server, patch compatibility fix for Ruby 2.4#392
damienrch wants to merge 1 commit into
gavinlaking:masterfrom
damienrch:feature/ruby-2.4-delegator-fix

Conversation

@damienrch

@damienrch damienrch commented Mar 28, 2018

Copy link
Copy Markdown

This fixes an issue with the delegator methods in Ruby 2.4. Changes to Ruby introduced a compile which blows up delegated methods that eval:

iseq = RubyVM::InstructionSequence.compile("().#{method}", nil, nil, 0, false)

Change introduced here:

ruby/ruby@2283d14#diff-f8ad465135e9b25d06e71454b6e18317R6

I'm aware your other commit which fixes this removes $SAFE = 1, but I guess this allows you keep the safety. Not entirely sure of the implications of removing (perhaps isn't such a big deal). Sucks that CI is wailing :/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant