mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Create build-only gemspec files only if having an extension
This commit is contained in:
parent
d010eba2f4
commit
d20886dd22
1 changed files with 2 additions and 2 deletions
|
@ -18,9 +18,9 @@ def Gem.unpack(file, dir = nil, spec_dir = nil)
|
|||
end
|
||||
FileUtils.mkdir_p(spec_dir)
|
||||
File.binwrite(File.join(spec_dir, "#{spec.name}-#{spec.version}.gemspec"), spec.to_ruby)
|
||||
unless spec.extensions.empty? or spec.dependencies.empty?
|
||||
unless spec.extensions.empty?
|
||||
spec.dependencies.clear
|
||||
File.binwrite(File.join(spec_dir, ".bundled.#{spec.name}-#{spec.version}.gemspec"), spec.to_ruby)
|
||||
end
|
||||
File.binwrite(File.join(spec_dir, ".bundled.#{spec.name}-#{spec.version}.gemspec"), spec.to_ruby)
|
||||
puts "Unpacked #{file}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue