mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
e4c15e313d
commit
e2cf71a085
10 changed files with 57 additions and 27 deletions
|
@ -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
|
||||
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
|
||||
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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue