From 06bd57793144d20bd25c53e4aae023acd68924ef Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 Jul 2018 05:05:27 +0000 Subject: ruby.c: disable DidYouMean as gem * ruby.c (process_options): as DidYouMean requires Rubygems, disable the former when the latter is disabled too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index a34b956184..8a225869a5 100644 --- a/ruby.c +++ b/ruby.c @@ -1690,9 +1690,9 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) Init_ext(); /* load statically linked extensions before rubygems */ if (opt->features & FEATURE_BIT(gems)) { rb_define_module("Gem"); - } - if (opt->features & FEATURE_BIT(did_you_mean)) { - rb_define_module("DidYouMean"); + if (opt->features & FEATURE_BIT(did_you_mean)) { + rb_define_module("DidYouMean"); + } } ruby_init_prelude(); if ((opt->features ^ DEFAULT_FEATURES) & COMPILATION_FEATURES) { -- cgit v1.2.3