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 respond_to? method signature #8

Merged
merged 1 commit into from Oct 7, 2015

Conversation

thenickcox
Copy link
Contributor

As of Ruby 2.0.0, the Ruby interpreter now gives a warning message when
respond_to? is used with the deprecated method signature (taking one
argument). As of version 2.0.0, the second argument is include_all, meaning that it should include private methods, which defaults to false. You can see this in the Ruby source
here. This PR adds that second parameter and defaults it to false to stop the
warnings.

As of Ruby 2.0.0, the Ruby interpreter now gives a warning message when
`respond_to?` is used with the deprecated method signature, taking one
argument. As of version 2.0.0, the second argument is `include_all`,
which defaults to false. You can see this in the Ruby source
[here](https://github.com/ruby/ruby/blob/ruby_2_0_0/vm_method.c#L1578-L1579).
This PR adds that second parameter and defaults it to false to stop the
warnings.
jsuchal added a commit that referenced this pull request Oct 7, 2015
@jsuchal jsuchal merged commit 6f1b65a into jsuchal:master Oct 7, 2015
@jsuchal
Copy link
Owner

jsuchal commented Oct 7, 2015

Thanks.

@thenickcox
Copy link
Contributor Author

Awesome. Thanks for merging, @jsuchal. (Also, thanks for the great library!) Any chance I could get you to bump the version and release to rubygems? If not, no problem. Failing that, could you maybe tag the current master so I can reference it from my app without pointing to the master branch, which may change?

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

Successfully merging this pull request may close these issues.

None yet

2 participants