mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 01:23:57 +02:00
* lib/rubygems: RubyGems 2.2.2 which contains the following bug fixes:
http://rubygems.rubyforge.org/rubygems-update/History_txt.html#label-2.2.2+%2F+2014-02-05 https://bugs.ruby-lang.org/issues/9489 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
39cb784095
commit
9b9d3bac4d
64 changed files with 934 additions and 299 deletions
|
@ -228,7 +228,18 @@ to write the specification by hand. For example:
|
|||
def install_gem_without_dependencies name, req # :nodoc:
|
||||
gem = nil
|
||||
|
||||
if remote? then
|
||||
if local? then
|
||||
if name =~ /\.gem$/ and File.file? name then
|
||||
source = Gem::Source::SpecificFile.new name
|
||||
spec = source.spec
|
||||
else
|
||||
source = Gem::Source::Local.new
|
||||
spec = source.find_gem name, req
|
||||
end
|
||||
gem = source.download spec if spec
|
||||
end
|
||||
|
||||
if remote? and not gem then
|
||||
dependency = Gem::Dependency.new name, req
|
||||
dependency.prerelease = options[:prerelease]
|
||||
|
||||
|
@ -236,13 +247,6 @@ to write the specification by hand. For example:
|
|||
gem = fetcher.download_to_cache dependency
|
||||
end
|
||||
|
||||
if local? and not gem then
|
||||
source = Gem::Source::Local.new
|
||||
spec = source.find_gem name, req
|
||||
|
||||
gem = source.download spec
|
||||
end
|
||||
|
||||
inst = Gem::Installer.new gem, options
|
||||
inst.install
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue