Project

General

Profile

Actions

Feature #16431

closed

Optionally load did_you_mean (and RubyGems)

Added by vo.x (Vit Ondruch) over 4 years ago. Updated 4 months ago.

Status:
Closed
Target version:
-
[ruby-core:96310]

Description

I just have opened PR 1, which allows Ruby to run when did_you_mean is not available. As I previously discussed in #16427, there are cases when speed, memory, disk or network bandwidth is a concern and did_you_mean is not useful for runtime. This is especially useful when Ruby is installed via packaging systems of (Linux) distributions.

The PR is split into 4 commits, because since I was there, I prepared similar changes to RubyGems.


Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #16427: Revert did_you_mean promotion to default gem.Rejectednobu (Nobuyoshi Nakada)Actions
Related to Ruby master - Feature #16363: Promote did_you_mean to default gemClosedyuki24 (Yuki Nishijima)Actions
Actions #1

Updated by vo.x (Vit Ondruch) over 4 years ago

  • Related to Bug #16427: Revert did_you_mean promotion to default gem. added
Actions #2

Updated by vo.x (Vit Ondruch) over 4 years ago

  • Related to Feature #16363: Promote did_you_mean to default gem added
Actions #3

Updated by mame (Yusuke Endoh) over 4 years ago

  • Tracker changed from Bug to Feature
  • ruby -v deleted (ruby 2.7.0dev (2019-12-10 master af11efd377) [x86_64-linux])
  • Backport deleted (2.5: UNKNOWN, 2.6: UNKNOWN)

Updated by shevegen (Robert A. Heiler) over 4 years ago

While I agree on the situation at hand (being able to use did you mean
or disable it at the discretion of the user), I think there was a wrong
filing in the linked issue in that the suggestion of the linked in
thread was "Revert did_you_mean promotion to default gem", and that
is different to the situation of "make did-you-mean gem
optional/disablable", if the latter is a word.

In other words, I think the filing should be on the topic at hand, and
there is a big difference between:

a) making did-you-mean optional

versus

b) revert promoting did-you-mean gem to default

I am all in favour of a), but not in favour of b).

If I understood your use case or situation, then I think that a) would
be the proper solution which should fit nicely with the "general" philosophy
in ruby to let the ruby user decide what to use, when to use it and so
forth. E. g. to let people customize how they use ruby for their particular
use case.

Reverting the addition of did-you-mean is different to making things
customizable. It's a similar reasoning I mentioned before in the integration
of bundler - I myself do not use bundler (only rubygems), but other ruby users
do, and the rubygems team pointed out in the past that there is unnecessary
code duplication; so the long-time best solution was to integrate both
approaches, which may help the ruby ecosystem in the long run, even though
it can short-term issues (I think you mentioned fedora/red hat packaging
before, but debian also wanted more flexibility too; see also other
aspects related to changes, such as wanting to have the possibility for
reproducible builds).

Anyway, to finish this lengthy comment, I think it is much better to make
the software at hand as flexible as possible, to allow for different use
cases - but not at the expense of other users. That has always been part
of ruby really (e. g. see the ability to modify ruby via duck patching
at all times). And again, I agree that it should be flexible, but that is
not the same as an reversion; it's different.

Updated by hsbt (Hiroshi SHIBATA) about 1 year ago

  • Status changed from Open to Assigned
  • Assignee set to hsbt (Hiroshi SHIBATA)

Updated by hsbt (Hiroshi SHIBATA) 4 months ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0