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 Ruby 2.5 incopatibility #10

Merged
merged 2 commits into from
Jan 19, 2021
Merged

Fix Ruby 2.5 incopatibility #10

merged 2 commits into from
Jan 19, 2021

Conversation

flvrone
Copy link
Contributor

@flvrone flvrone commented Jan 19, 2021

Resolves #9

We don't really need that second optional argument, as its default value is just what we need, here:
https://ruby-doc.org/core-2.7.2/Module.html#method-i-private_method_defined-3F

We don't really need that second optional argument, 
as its default value is just what we need
https://ruby-doc.org/core-2.7.2/Module.html#method-i-private_method_defined-3F
@doudou
Copy link

doudou commented Jan 19, 2021

Thanks !

A suggestion: add 2.5 to the CI at the same time, to avoid a repeat.

@nobu nobu merged commit 956156b into ruby:master Jan 19, 2021
@benlangfeld
Copy link

@nobu Thanks for merging. Do you plan to release this soon?

@benlangfeld
Copy link

0.0.4 was released.

@eregon
Copy link
Member

eregon commented Jan 19, 2021

Related discussion: #8 (comment)

@doudou
Copy link

doudou commented Jan 19, 2021

That was ... incredibly fast.

Thanks a lot.

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.

`private_method_defined?': wrong number of arguments (given 2, expected 1) in ruby2_keywords.rb
5 participants