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

ruby-changes:57109

From: Hiroshi <ko1@a...>
Date: Sat, 17 Aug 2019 08:27:25 +0900 (JST)
Subject: [ruby-changes:57109] Hiroshi SHIBATA: c4f7c260f9 (master): [rubygems/rubygems] Make deprecate Gem::RubyGemsVersion and Gem::ConfigMap.

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

From c4f7c260f995778a40c6fc15107090fdb51d49a8 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Wed, 31 Jul 2019 11:46:09 +0800
Subject: [rubygems/rubygems] Make deprecate Gem::RubyGemsVersion and
 Gem::ConfigMap.

https://github.com/rubygems/rubygems/commit/1133c2f700

diff --git a/lib/rubygems/compatibility.rb b/lib/rubygems/compatibility.rb
index 9238dee..f1d452e 100644
--- a/lib/rubygems/compatibility.rb
+++ b/lib/rubygems/compatibility.rb
@@ -13,6 +13,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/compatibility.rb#L13
 # TODO remove at RubyGems 4
 module Gem
   RubyGemsVersion = VERSION
+  deprecate_constant(:RubyGemsVersion)
 
   RbConfigPriorities = %w[
     MAJOR
@@ -29,6 +30,7 @@ module Gem https://github.com/ruby/ruby/blob/trunk/lib/rubygems/compatibility.rb#L30
     ConfigMap = Hash.new do |cm, key|
       cm[key] = RbConfig::CONFIG[key.to_s]
     end
+    deprecate_constant(:ConfigMap)
   else
     RbConfigPriorities.each do |key|
       ConfigMap[key.to_sym] = RbConfig::CONFIG[key]
-- 
cgit v0.10.2


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

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