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.
1133c2f700
This commit is contained in:
parent
c78839902b
commit
c4f7c260f9
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
# TODO remove at RubyGems 4
|
# TODO remove at RubyGems 4
|
||||||
module Gem
|
module Gem
|
||||||
RubyGemsVersion = VERSION
|
RubyGemsVersion = VERSION
|
||||||
|
deprecate_constant(:RubyGemsVersion)
|
||||||
|
|
||||||
RbConfigPriorities = %w[
|
RbConfigPriorities = %w[
|
||||||
MAJOR
|
MAJOR
|
||||||
|
@ -29,6 +30,7 @@ module Gem
|
||||||
ConfigMap = Hash.new do |cm, key|
|
ConfigMap = Hash.new do |cm, key|
|
||||||
cm[key] = RbConfig::CONFIG[key.to_s]
|
cm[key] = RbConfig::CONFIG[key.to_s]
|
||||||
end
|
end
|
||||||
|
deprecate_constant(:ConfigMap)
|
||||||
else
|
else
|
||||||
RbConfigPriorities.each do |key|
|
RbConfigPriorities.each do |key|
|
||||||
ConfigMap[key.to_sym] = RbConfig::CONFIG[key]
|
ConfigMap[key.to_sym] = RbConfig::CONFIG[key]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue