mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
Fix gemspec only case
This commit is contained in:
parent
07a8f09b9f
commit
fc56b96b09
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue