mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added the specific files to the default gems like net-http and optparse
This commit is contained in:
parent
39c01aef66
commit
93420d34aa
1 changed files with 15 additions and 6 deletions
|
@ -710,13 +710,22 @@ module RbInstall
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if base
|
files = if base
|
||||||
Dir.glob("#{base}{.rb,/**/*.rb}").collect do |ruby_source|
|
Dir.glob("#{base}{.rb,/**/*.rb}").collect do |ruby_source|
|
||||||
remove_prefix(prefix, ruby_source)
|
remove_prefix(prefix, ruby_source)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
[File.basename(@gemspec, '.gemspec') + '.rb']
|
[File.basename(@gemspec, '.gemspec') + '.rb']
|
||||||
|
end
|
||||||
|
|
||||||
|
case Pathname.new(@gemspec).basename(".gemspec").to_s
|
||||||
|
when "net-http"
|
||||||
|
files << "lib/net/https.rb"
|
||||||
|
when "optparse"
|
||||||
|
files << "lib/optionparser.rb"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
files
|
||||||
end
|
end
|
||||||
|
|
||||||
def built_libraries
|
def built_libraries
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue