ruby-changes:43879
From: nobu <ko1@a...>
Date: Thu, 18 Aug 2016 02:36:34 +0900 (JST)
Subject: [ruby-changes:43879] nobu:r55952 (trunk): skip failed gems
nobu 2016-08-18 02:36:28 +0900 (Thu, 18 Aug 2016) New Revision: 55952 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55952 Log: skip failed gems * tool/rbinstall.rb: skip gems which failed to build extensions. [ruby-dev:49764] [Bug #12683] Modified files: trunk/ChangeLog trunk/tool/rbinstall.rb Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 55951) +++ tool/rbinstall.rb (revision 55952) @@ -777,8 +777,15 @@ install?(:ext, :comm, :gem) do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L777 next if gems.empty? if defined?(Zlib) Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name))) + silent = Gem::SilentUI.new gems.each do |gem| - Gem.install(gem, Gem::Requirement.default, options) + inst = Gem::Installer.new(gem, options) + inst.spec.extension_dir = with_destdir(inst.spec.extension_dir) + begin + Gem::DefaultUserInteraction.use_ui(silent) {inst.install} + rescue Gem::InstallError => e + next + end gemname = File.basename(gem) puts "#{" "*30}#{gemname}" end Index: ChangeLog =================================================================== --- ChangeLog (revision 55951) +++ ChangeLog (revision 55952) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Aug 18 02:36:26 2016 Nobuyoshi Nakada <nobu@r...> + + * tool/rbinstall.rb: skip gems which failed to build extensions. + [ruby-dev:49764] [Bug #12683] + Wed Aug 17 23:35:12 2016 Nobuyoshi Nakada <nobu@r...> * gems/bundled_gems (tk): bump up to 0.1.1. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/