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 #14461 - removed :method_missing from Proxy::Settings::Plugin class #404

Closed
wants to merge 1 commit into from
Closed

Fixes #14461 - removed :method_missing from Proxy::Settings::Plugin class #404

wants to merge 1 commit into from

Conversation

dmitri-d
Copy link
Member

@dmitri-d dmitri-d commented Apr 4, 2016

OpenStruct always returned 'nil' when calling methods for non-existing keys. Before ruby 2.3 methods for keys were defined during OpenStruct instantiation.
Starting with ruby 2.3 methods for members of the OpenStruct are defined lazily, via method_missing. Our override of the method was breaking OpenStruct (and
as a consequence Proxy::Settings::Plugin).

  OpenStruct always returned 'nil' when calling methods for non-existing keys. Before ruby 2.3 methods for keys were defined during OpenStruct instantiation.
  Starting with ruby 2.3 methods for members of the OpenStruct are defined lazily, via method_missing. Our override of the method was breaking OpenStruct (and
  as a consequence Proxy::Settings::Plugin).
@GregSutcliffe
Copy link
Member

Tested locally having hit this on Ruby 2.3/Archlinux - fixes the issue for me. :shipit:

@mmoll
Copy link
Contributor

mmoll commented Apr 5, 2016

Fixes the problem also here (Debian/testing already switched to 2.3) 👍

@domcleal
Copy link
Contributor

domcleal commented Apr 6, 2016

Merged as b215df8, thanks @witlessbird.

@domcleal domcleal closed this Apr 6, 2016
@dmitri-d dmitri-d deleted the fixes_for_ruby_2_3 branch May 24, 2016 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants