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

Fix failing stdlib_test with Ruby 3 keyword argument #167

Merged
merged 2 commits into from Jan 3, 2020

Conversation

pocke
Copy link
Member

@pocke pocke commented Jan 3, 2020

Today removing Ruby 2 keyword argument was committed to the master branch of Ruby.
ruby/ruby@beae6cb

So the stdlib test fails with the master branch.

This pull request fixes the failing.

The original idea is from @mame. Thanks!

@@ -3,6 +3,8 @@
require "ruby/signature/test"
require "logger"

return unless Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7.0')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It skips test for Ruby::Signature::Test:Hook if the Ruby runtime version is less than 2.7.

We also use ruby2_keywords gem to apply the polyfill instead of the skipping, but it needs ruby/ruby2_keywords#3.

@soutaro soutaro merged commit 459df5a into ruby:master Jan 3, 2020
@pocke pocke deleted the add-ruby2_keywords branch January 4, 2020 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants