method
extract_gem_info
ruby latest stable - Class:
Bundler::Definition
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