lib/liberty_buildpack/repository/repository_index.rb
def find_item(version)
      version = VersionResolver.resolve(version, @index.keys)
      uri = @index[version.to_s]
      if @index[version.to_s].include?('uri') && @index[version.to_s].include?('license')
        uri = @index[version.to_s]['uri']
        license = @index[version.to_s]['license']
      end
      return version, uri, license # rubocop:disable RedundantReturn
    end
# Finds a version of the file matching the given, possibly wildcarded, version.
#
# @param [String] version the possibly wildcarded version to find
# @return [TokenizedVersion] the version of the file found
# @return [String] the URI of the file found
Finds a version of the file matching the given, possibly wildcarded, version.
Finds a version of the file matching the given possibly wildcarded version .
def find_item(version)
      version = VersionResolver.resolve(version, @index.keys)
      uri = @index[version.to_s]
      if @index[version.to_s].include?('uri') && @index[version.to_s].include?('license')
        uri = @index[version.to_s]['uri']
        license = @index[version.to_s]['license']
      end
      return version, uri, license 
    end
def find_item ( version ) version = VersionResolver . resolve ( version , @index . keys ) uri = @index [ version . to_s ] if @index [ version . to_s ] . include? ( 'uri' ) && @index [ version . to_s ] . include? ( 'license' ) uri = @index [ version . to_s ] [ 'uri' ] license = @index [ version . to_s ] [ 'license' ] end return version , uri , license end
Finds a version of the file matching the given, possibly wildcarded, version.
Finds a version of the file matching the given possibly wildcarded version .
# rubocop:disable RedundantReturn
the version of the file found
the version of the file found
TokenizedVersion
the URI of the file found
the URI of the file found
String
version
version the possibly wildcarded version to find
version the possibly wildcarded version to find