summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/commands/contents_command.rb4
-rw-r--r--lib/rubygems/commands/open_command.rb1
2 files changed, 2 insertions, 3 deletions
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
diff --git a/lib/rubygems/commands/open_command.rb b/lib/rubygems/commands/open_command.rb
index 8eaeb64ba9..e538e58d46 100644
--- a/lib/rubygems/commands/open_command.rb
+++ b/lib/rubygems/commands/open_command.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
-require 'English'
require 'rubygems/command'
require 'rubygems/version_option'
require 'rubygems/util'