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 #7564] Drop dependency on jaro_winkler gem #7673

Closed
wants to merge 1 commit into from

Conversation

buehmann
Copy link
Contributor

Ruby 2.3 and later ship with the did_you_mean gem, which includes a
JaroWinkler implementation.

So there is no need to depend on the jaro_winkler gem that people have
had trouble installing lately.

Fixes #7564 and fixes #7447.

@buehmann
Copy link
Contributor Author

Hmm … will look into the JRuby failures later.

Ruby 2.3 and later ship with the did_you_mean gem, which includes a
reusable spell checker based on a JaroWinkler implementation.
@buehmann
Copy link
Contributor Author

This was a nice idea, but it is too difficult to make this work across all Ruby versions. To be revisited once RuboCop drops support for Ruby 2.3.

@ghost
Copy link

ghost commented Mar 26, 2020

This was a nice idea, but it is too difficult to make this work across all Ruby versions. To be revisited once RuboCop drops support for Ruby 2.3.

Having wasted another hour of my life trying to install rubocop in a container and banging my head against the jaro dependency, I would say that if a nice idea is the difference between being able to install rubocop and not, then it's not just a nice idea anymore. If it's that difficult, please focus on dropping the ruby 2.3 support. This evening would be nice, so I can finish this project.

@koic
Copy link
Member

koic commented Mar 26, 2020

I’m aware of this issue and plan to judgement and drop support for Ruby 2.3 in the near future. But now is not the time.

koic added a commit to koic/rubocop that referenced this pull request Apr 12, 2020
### Summary

This PR drops support for Ruby 2.3.

It is discussed in rubocop#6945.
And this suggestion would mean that RuboCop 1.0 (and pre-release)
requires Ruby 2.4 or higher.

The following is a plan after this PR.
There was a build error report for a dependent jaro_winkler gem.
rubocop#5989, rubocop#6754, rubocop#7447, and rubocop#7564. And rubocop#7673 was trying to solve it.

After dropping Ruby 2.3, replace jaro_winkler with did_you_mean.
did_you_mean is written in Ruby, so the build error due to native
extensions no longer occur. That change opens as anther PR.

### Other Information

The latest did_you_mean (1.4.0) supports Ruby 2.5 or higher,
so it needs to be confirmed old versions it works with Ruby 2.4.
@koic koic mentioned this pull request Apr 12, 2020
8 tasks
bbatsov pushed a commit that referenced this pull request Apr 12, 2020
### Summary

This PR drops support for Ruby 2.3.

It is discussed in #6945.
And this suggestion would mean that RuboCop 1.0 (and pre-release)
requires Ruby 2.4 or higher.

The following is a plan after this PR.
There was a build error report for a dependent jaro_winkler gem.
#5989, #6754, #7447, and #7564. And #7673 was trying to solve it.

After dropping Ruby 2.3, replace jaro_winkler with did_you_mean.
did_you_mean is written in Ruby, so the build error due to native
extensions no longer occur. That change opens as anther PR.

### Other Information

The latest did_you_mean (1.4.0) supports Ruby 2.5 or higher,
so it needs to be confirmed old versions it works with Ruby 2.4.
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.

Installation Error on MacOS Installation fails on Ubuntu 18.04 running Ruby 2.6.3
2 participants