Fix gemspec only case

This commit is contained in:
Nobuyoshi Nakada 2021-02-14 13:20:22 +09:00
parent 07a8f09b9f
commit fc56b96b09
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -708,9 +708,14 @@ module RbInstall
prefix = @base_dir
end
Dir.glob("#{base}{.rb,/**/*.rb}").collect do |ruby_source|
libs = Dir.glob("#{base}{.rb,/**/*.rb}").collect do |ruby_source|
remove_prefix(prefix, ruby_source)
end
if libs.empty?
[File.basename(@gemspec, '.gemspec') + '.rb']
else
libs
end
end
def built_libraries