summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2024-01-10 17:01:29 +0900
committerHiroshi SHIBATA <[email protected]>2024-01-11 13:51:52 +0900
commitff0119354ee4bd836749b171e95458affa10b064 (patch)
treed72653a1bc098881d016da88230cc87dbc9583af /lib/rubygems/commands
parent08e22c64b34e2809ba6cafc82615b9c1fa8185fe (diff)
[rubygems/rubygems] bin/rubocop -A --only Performance/StringInclude
https://github.com/rubygems/rubygems/commit/34df962cf4
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r--lib/rubygems/commands/rdoc_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/rdoc_command.rb b/lib/rubygems/commands/rdoc_command.rb
index 1321bc45f7..2303e16424 100644
--- a/lib/rubygems/commands/rdoc_command.rb
+++ b/lib/rubygems/commands/rdoc_command.rb
@@ -87,7 +87,7 @@ Use --overwrite to force rebuilding of documentation.
begin
doc.generate
rescue Errno::ENOENT => e
- match = / - /.match(e.message)
+ match = e.message.include?(' - ')
alert_error "Unable to document #{spec.full_name}, " \
" #{match.post_match} is missing, skipping"
terminate_interaction 1 if specs.length == 1