mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +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
|
prefix = @base_dir
|
||||||
end
|
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)
|
remove_prefix(prefix, ruby_source)
|
||||||
end
|
end
|
||||||
|
if libs.empty?
|
||||||
|
[File.basename(@gemspec, '.gemspec') + '.rb']
|
||||||
|
else
|
||||||
|
libs
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def built_libraries
|
def built_libraries
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue