[前][次][番号順一覧][スレッド一覧]

ruby-changes:60923

From: Hiroshi <ko1@a...>
Date: Tue, 28 Apr 2020 11:39:26 +0900 (JST)
Subject: [ruby-changes:60923] de58dfc911 (master): [rubygems/rubygems] Removed the depdendency of English library

https://git.ruby-lang.org/ruby.git/commit/?id=de58dfc911

From de58dfc911738b2cbb2b848fa2e2cc93616a0ec5 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
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

diff --git a/lib/rubygems/commands/contents_command.rb b/lib/rubygems/commands/contents_command.rb
index 989ca58..2da8c49 100644
--- a/lib/rubygems/commands/contents_command.rb
+++ b/lib/rubygems/commands/contents_command.rb
@@ -1,5 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/contents_command.rb#L1
 # 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. https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/contents_command.rb#L105
     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 8eaeb64..e538e58 100644
--- a/lib/rubygems/commands/open_command.rb
+++ b/lib/rubygems/commands/open_command.rb
@@ -1,5 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/open_command.rb#L1
 # frozen_string_literal: true
-require 'English'
 require 'rubygems/command'
 require 'rubygems/version_option'
 require 'rubygems/util'
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]