зеркало из https://github.com/github/ruby.git
* test/rubygems/test_gem_installer.rb: Fixed broken test with extension
build. https://github.com/rubygems/rubygems/pull/1645 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
03141e203a
Коммит
7376907959
|
@ -1,3 +1,8 @@
|
|||
Sat Jun 18 14:01:40 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* test/rubygems/test_gem_installer.rb: Fixed broken test with extension
|
||||
build. https://github.com/rubygems/rubygems/pull/1645
|
||||
|
||||
Sat Jun 18 13:59:54 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems
|
||||
|
|
|
@ -1146,10 +1146,17 @@ gem 'other', version
|
|||
write_file File.join(@tempdir, "extconf.rb") do |io|
|
||||
io.write <<-RUBY
|
||||
require "mkmf"
|
||||
|
||||
CONFIG['CC'] = '$(TOUCH) $@ ||'
|
||||
CONFIG['LDSHARED'] = '$(TOUCH) $@ ||'
|
||||
$ruby = '#{Gem.ruby}'
|
||||
|
||||
create_makefile("#{@spec.name}")
|
||||
RUBY
|
||||
end
|
||||
|
||||
write_file File.join(@tempdir, "depend")
|
||||
|
||||
write_file File.join(@tempdir, "a.c") do |io|
|
||||
io.write <<-C
|
||||
#include <ruby.h>
|
||||
|
@ -1162,7 +1169,7 @@ gem 'other', version
|
|||
io.write "# b.rb"
|
||||
end
|
||||
|
||||
@spec.files += %w[extconf.rb lib/b.rb a.c]
|
||||
@spec.files += %w[extconf.rb lib/b.rb depend a.c]
|
||||
|
||||
use_ui @ui do
|
||||
path = Gem::Package.build @spec
|
||||
|
|
Загрузка…
Ссылка в новой задаче