Skip to content

Commit

Permalink
Merge pull request #5966 from deivid-rodriguez/remove_config_map_usages
Browse files Browse the repository at this point in the history
Remove usages of deprecated ConfigMap
  • Loading branch information
headius committed Dec 2, 2019
2 parents 3e8b5d1 + 75c4889 commit aa5048f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/ruby/stdlib/rubygems/defaults/jruby.rb
Expand Up @@ -31,15 +31,15 @@ def self.platform_defaults
# to preserve the old location: lib/ruby/gems.
def self.default_dir
dir = RbConfig::CONFIG["default_gem_home"]
dir ||= File.join(ConfigMap[:libdir], 'ruby', 'gems', 'shared')
dir ||= File.join(RbConfig::CONFIG['libdir'], 'ruby', 'gems', 'shared')
dir
end

# Default locations for RubyGems' .rb and bin files
def self.default_rubygems_dirs
[
File.join(ConfigMap[:libdir], 'ruby', 'stdlib'),
ConfigMap[:bindir]
File.join(RbConfig::CONFIG['libdir'], 'ruby', 'stdlib'),
RbConfig::CONFIG['bindir']
]
end

Expand Down
1 change: 0 additions & 1 deletion test/mri/lib/envutil.rb
Expand Up @@ -291,7 +291,6 @@ class << self
end
dir = File.dirname(ruby)
CONFIG['bindir'] = dir
Gem::ConfigMap[:bindir] = dir if defined?(Gem::ConfigMap)
end
end

Expand Down

0 comments on commit aa5048f

Please sign in to comment.