Revert following rbinstall.rb changes
Because unexpected names are listed in gemspec files. * "Fix gemspec only case" fc56b96b09e477686975c978142e3af9179219cd * "Refined installation of gemspecs placed other than ext and lib" 31f4dec6373c15a58899f8b86e35d48a7d813bf6
This commit is contained in:
parent
ff527e7e32
commit
504d6dc429
@ -701,20 +701,14 @@ module RbInstall
|
|||||||
when "lib"
|
when "lib"
|
||||||
base = @base_dir
|
base = @base_dir
|
||||||
prefix = base.sub(/lib\/.*?\z/, "")
|
prefix = base.sub(/lib\/.*?\z/, "")
|
||||||
else
|
|
||||||
# other/something.gemspec ->
|
|
||||||
# [other/something.rb, other/something/foo.rb, ...]
|
|
||||||
base = @gemspec.chomp('.gemspec')
|
|
||||||
prefix = @base_dir
|
|
||||||
end
|
end
|
||||||
|
|
||||||
libs = Dir.glob("#{base}{.rb,/**/*.rb}").collect do |ruby_source|
|
if base
|
||||||
|
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
|
else
|
||||||
libs
|
[File.basename(@gemspec, '.gemspec') + '.rb']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user