diff options
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-x | tool/rbinstall.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 9f6c1c76a8..8790268476 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -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 |