From 83ea4017476333c0e0a44c9940cf4ff56f766279 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 10 Apr 2017 15:26:49 +0000 Subject: [PATCH] Make .gemspec slimmer. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the same code that RubyGems are using: https://github.com/rubygems/rubygems/commit/a1a5ab55cb1501cbfeee29131a56cfa2e763174f [ci skip] [Fix GH-1578] Author: Vít Ondruch git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 1851f01f79..b923d81653 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -784,7 +784,7 @@ def install_default_gem(dir, srcdir) puts "#{" "*30}#{gemspec.name} #{gemspec.version}" gemspec_path = File.join(default_spec_dir, "#{full_name}.gemspec") open_for_install(gemspec_path, $data_mode) do - gemspec.to_ruby + gemspec.to_ruby_for_cache end unless gemspec.executables.empty? then