Module: Bundler::Overrule::Patcher::GemfileDependencies

Defined in:
lib/bundler/overrule/patcher.rb

Overview

Seam 1 — the Gemfile's own dependencies.

Instance Method Summary collapse

Instance Method Details

#to_definition(*args, **kwargs) ⇒ Object



112
113
114
115
116
117
118
119
120
# File 'lib/bundler/overrule/patcher.rb', line 112

def to_definition(*args, **kwargs)
  # Bundler evaluates the whole Gemfile once through Bundler::Plugin::DSL
  # before any plugin is installed, purely to find `plugin` lines. That
  # pass resolves nothing, so it must not count as a real run — otherwise
  # every rule looks like it "matched nothing".
  Overrule.note_definition_built! unless Overrule.plugin_prepass?(self)
  Overrule.rewrite_gemfile_dependencies!(@dependencies)
  super
end