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

Ruby 2.4 does not like Naught.build(&:black_hole) form #70

Open
tjchambers opened this issue Mar 4, 2017 · 1 comment
Open

Ruby 2.4 does not like Naught.build(&:black_hole) form #70

tjchambers opened this issue Mar 4, 2017 · 1 comment

Comments

@tjchambers
Copy link

I am in the process of updating an app to Ruby 2.4.0.

I found I needed to use:

NullBeaneater = Naught.build do |config|
  config.black_hole
end

form in place of the shorthand above.

I don't understand why specifically.

@eugeneius
Copy link

This is a regression in Ruby 2.4.0: https://bugs.ruby-lang.org/issues/13074

The fix has been backported to the 2.4 branch, so it should be fixed in 2.4.1.

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