From de58dfc911738b2cbb2b848fa2e2cc93616a0ec5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 20 Apr 2020 10:06:45 +0900 Subject: [rubygems/rubygems] Removed the depdendency of English library English.rb is extracted to the default gems at https://github.com/ruby/ruby/commit/2c5764ec223d976e0d0da1494596a1519104be3e https://github.com/rubygems/rubygems/commit/532f488c0b --- lib/rubygems/commands/contents_command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rubygems/commands/contents_command.rb') diff --git a/lib/rubygems/commands/contents_command.rb b/lib/rubygems/commands/contents_command.rb index 989ca5855c..2da8c49031 100644 --- a/lib/rubygems/commands/contents_command.rb +++ b/lib/rubygems/commands/contents_command.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true -require 'English' require 'rubygems/command' require 'rubygems/version_option' @@ -106,7 +105,8 @@ prefix or only the files that are requireable. spec.files.map do |file| case file when /\A#{spec.bindir}\// - [RbConfig::CONFIG['bindir'], $POSTMATCH] + # $' is POSTMATCH + [RbConfig::CONFIG['bindir'], $'] when /\.so\z/ [RbConfig::CONFIG['archdir'], file] else -- cgit v1.2.3