1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Make deprecate Gem::RubyGemsVersion and Gem::ConfigMap.

https://github.com/rubygems/rubygems/commit/1133c2f700
This commit is contained in:
Hiroshi SHIBATA 2019-07-31 11:46:09 +08:00
parent c78839902b
commit c4f7c260f9
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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]