summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-31 11:46:09 +0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-17 07:35:48 +0900
commitc4f7c260f995778a40c6fc15107090fdb51d49a8 (patch)
tree367835978227d428976056211f988cf438511fe6 /lib/rubygems
parentc78839902b47bf6a91226fbef00443e7d344033d (diff)
[rubygems/rubygems] Make deprecate Gem::RubyGemsVersion and Gem::ConfigMap.
https://github.com/rubygems/rubygems/commit/1133c2f700
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/compatibility.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/compatibility.rb b/lib/rubygems/compatibility.rb
index 9238deee72..f1d452ea04 100644
--- a/lib/rubygems/compatibility.rb
+++ b/lib/rubygems/compatibility.rb
@@ -13,6 +13,7 @@
# TODO remove at RubyGems 4
module Gem
RubyGemsVersion = VERSION
+ deprecate_constant(:RubyGemsVersion)
RbConfigPriorities = %w[
MAJOR
@@ -29,6 +30,7 @@ module Gem
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]