mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
* lib/rubygems: Update to RubyGems 2.4.5.
* test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a0b80a4410
commit
97f80207d0
32 changed files with 458 additions and 103 deletions
|
@ -709,8 +709,6 @@ class Gem::Specification < Gem::BasicSpecification
|
|||
specs = {}
|
||||
Gem.loaded_specs.each_value{|s| specs[s] = true}
|
||||
@@all.each{|s| s.activated = true if specs[s]}
|
||||
|
||||
_resort!(@@all)
|
||||
end
|
||||
@@all
|
||||
end
|
||||
|
@ -1478,6 +1476,16 @@ class Gem::Specification < Gem::BasicSpecification
|
|||
File.join build_info_dir, "#{full_name}.info"
|
||||
end
|
||||
|
||||
##
|
||||
# Used to detect if the gem is bundled in older version of Ruby, but not
|
||||
# detectable as default gem (see BasicSpecification#default_gem?).
|
||||
|
||||
def bundled_gem_in_old_ruby?
|
||||
!default_gem? &&
|
||||
RUBY_VERSION < "2.0.0" &&
|
||||
summary == "This #{name} is bundled with Ruby"
|
||||
end
|
||||
|
||||
##
|
||||
# Returns the full path to the cache directory containing this
|
||||
# spec's cached gem.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue