method

warn_on_incompatible_bundler_deps

ruby latest stable - Class: Bundler::Installer

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

warn_on_incompatible_bundler_deps()
private

No documentation available.

# File lib/bundler/installer.rb, line 261
    def warn_on_incompatible_bundler_deps
      bundler_version = Gem::Version.create(Bundler::VERSION)
      @definition.specs.each do |spec|
        spec.dependencies.each do |dep|
          next if dep.type == :development
          next unless dep.name == "bundler".freeze
          next if dep.requirement.satisfied_by?(bundler_version)

          Bundler.ui.warn "#{spec.name} (#{spec.version}) has dependency"              " #{SharedHelpers.pretty_dependency(dep)}"              ", which is unsatisfied by the current bundler version #{VERSION}"              ", so the dependency is being ignored"
        end
      end
    end