mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Support bundler/inline mode
This commit is contained in:
parent
70c6613781
commit
754e15f4d0
Notes:
git
2024-09-12 07:28:21 +00:00
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ class Binding
|
|||
Bundler.ui = ui
|
||||
|
||||
@builder = Bundler::Dsl.new
|
||||
if Bundler.definition.gemfiles.empty? # bundler/inline
|
||||
Bundler.definition.locked_gems.specs.each{|spec| @builder.gem spec.name, spec.version.to_s }
|
||||
else
|
||||
Bundler.definition.gemfiles.each{|gemfile| @builder.eval_gemfile(gemfile) }
|
||||
end
|
||||
@builder.gem gem
|
||||
|
||||
definition = @builder.to_definition(nil, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue