Skip to content

Add Ruby 2.6 fixing issues #233

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

Merged
merged 1 commit into from
Feb 23, 2019

Conversation

junaruga
Copy link
Contributor

@junaruga junaruga commented Feb 14, 2019

  • Remove existing Tokens#filter (Array#filter) for Ruby 2.6 compatibility.
  • Install proper version's rdoc considering installed Ruby version.

This PR is for Ruby 2.6 compatibility.

As Array#filter is a new alias for Array#select on Ruby 2.6, we need to remove the method in Tokens.
https://github.com/ruby/ruby/blob/trunk/doc/NEWS-2.6.0

I added 2 assertions, because Enumerate#filter returns Enumerate object not Tokens object when we does not remove Enumerate#filter.

* Remove existing Tokens#filter (Array#filter) for Ruby 2.6 compatibility.
* Install proper version's rdoc considering installed Ruby version.
@korny
Copy link
Member

korny commented Feb 23, 2019

Thank you for figuring out the solution to the #filter problem :)

@korny korny merged commit 7818585 into rubychan:master Feb 23, 2019
@korny korny self-assigned this Feb 23, 2019
@junaruga
Copy link
Contributor Author

Thanks for merging!

@junaruga junaruga deleted the hotfix/ruby26-expression-enumerator branch February 23, 2019 15:07
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.

2 participants