diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-04 06:21:53 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-04 06:21:53 +0000 |
commit | e2cf71a0858715eb884996b4fc2d6fd39b0c0f8c (patch) | |
tree | 729ecf1549356e45f778666a8806420c8223d05d /lib/rubygems/basic_specification.rb | |
parent | e4c15e313d3ba8a7d9b8dfae3cc171229e041dbf (diff) |
* lib/rubygems: Update to RubyGems 2.5.0+ HEAD(fdab4c4).
this version includes #1396, #1397, #1398, #1399
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/basic_specification.rb')
-rw-r--r-- | lib/rubygems/basic_specification.rb | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/lib/rubygems/basic_specification.rb b/lib/rubygems/basic_specification.rb index 3e411f33bc..53beb43402 100644 --- a/lib/rubygems/basic_specification.rb +++ b/lib/rubygems/basic_specification.rb @@ -65,22 +65,17 @@ class Gem::BasicSpecification # Return true if this spec can require +file+. def contains_requirable_file? file - @contains_requirable_file ||= {} - @contains_requirable_file[file] ||= - begin - if @ignored then - return false - elsif missing_extensions? then - @ignored = true - - warn "Ignoring #{full_name} because its extensions are not built. " + - "Try: gem pristine #{name} --version #{version}" - return false - end + if @ignored then + return false + elsif missing_extensions? then + @ignored = true + + warn "Ignoring #{full_name} because its extensions are not built. " + + "Try: gem pristine #{name} --version #{version}" + return false + end - have_file? file, Gem.suffixes - end ? :yes : :no - @contains_requirable_file[file] == :yes + have_file? file, Gem.suffixes end def default_gem? |