method

extract_gem_info

ruby latest stable - Class: Bundler::Definition

Method not available on this version

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

extract_gem_info(error)
private

No documentation available.

# File lib/bundler/definition.rb, line 958
    def extract_gem_info(error)
      # This method will extract the error message like "Could not find foo-1.2.3 in any of the sources"
      # to an array. The first element will be the gem name (e.g. foo), the second will be the version number.
      error.message.scan(/Could not find (\w+)-(\d+(?:\.\d+)+)/).flatten
    end