aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-12 04:50:06 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-12 04:50:06 +0000
commitd8bae00c82b7dfec849011769c256d6b64edfa2a (patch)
tree58f10e4d9889404e62192b90809755c667c567e7 /lib/rubygems.rb
parenta873164ce8d70ce3d6872a4afaea223b62d632a4 (diff)
downloadruby-d8bae00c82b7dfec849011769c256d6b64edfa2a.tar.gz
* lib/rubygems: Update to RubyGems 2.5.0+ HEAD(db78980).
this version includes #1367 , #1373 , #1375 * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index c84a67ba76..5ee82c2397 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -307,11 +307,10 @@ module Gem
# package is not available as a gem, return nil.
def self.datadir(gem_name)
-# TODO: deprecate and move to Gem::Specification
-# and drop the extra ", gem_name" which is uselessly redundant
+# TODO: deprecate
spec = @loaded_specs[gem_name]
return nil if spec.nil?
- File.join spec.full_gem_path, "data", gem_name
+ spec.datadir
end
##