[rubygems/rubygems] Added another case of extconf.rb
https://github.com/rubygems/rubygems/commit/3d0fa3dee8
This commit is contained in:
parent
9801ad47bd
commit
f7b215af0e
@ -3674,9 +3674,18 @@ end
|
|||||||
FileUtils.mkdir_p File.join(@ext.gem_dir, "lib")
|
FileUtils.mkdir_p File.join(@ext.gem_dir, "lib")
|
||||||
|
|
||||||
# ext_spec used empty extconf.rb, so we need to create dummy extension for rake-compiler case.
|
# ext_spec used empty extconf.rb, so we need to create dummy extension for rake-compiler case.
|
||||||
|
# Ex. lib/gemname.so
|
||||||
FileUtils.touch File.join(@ext.gem_dir, "lib", "#{@ext.name}.#{RbConfig::CONFIG['DLEXT']}")
|
FileUtils.touch File.join(@ext.gem_dir, "lib", "#{@ext.name}.#{RbConfig::CONFIG['DLEXT']}")
|
||||||
|
|
||||||
refute @ext.missing_extensions?
|
refute @ext.missing_extensions?
|
||||||
|
|
||||||
|
# Try to another case of extconf.rb
|
||||||
|
# Ex. lib/gemname/parser.so
|
||||||
|
FileUtils.rm File.join(@ext.gem_dir, "lib", "#{@ext.name}.#{RbConfig::CONFIG['DLEXT']}")
|
||||||
|
FileUtils.mkdir_p File.join(@ext.gem_dir, "lib", @ext.name)
|
||||||
|
FileUtils.touch File.join(@ext.gem_dir, "lib", @ext.name, "parser.#{RbConfig::CONFIG['DLEXT']}")
|
||||||
|
|
||||||
|
refute @ext.missing_extensions?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_find_all_by_full_name
|
def test_find_all_by_full_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user