lib/gemika/matrix.rb
##
# Checks if the requested ruby version is aliased by rbenv to use another ruby version.
# Returns the runnable ruby version.
#
Checks if the requested ruby version is aliased by rbenv to use another ruby version.
Returns the runnable ruby version.
Checks if the requested ruby version is aliased by rbenv to use another ruby version . Returns the runnable ruby version .
def aliased_ruby(requested_version)
        ruby_aliases = rbenv_aliases
        aliased_versions = {}
        ruby_aliases.split("\n").each do |ruby_alias|
          split_pattern = /\A(.+) => (.+)\z/
          alias_name, aliased_version = ruby_alias.match(split_pattern)&.captures
          aliased_versions[alias_name] = aliased_version
        end
        find_aliased_ruby(requested_version, aliased_versions)
      end
def aliased_ruby ( requested_version ) ruby_aliases = rbenv_aliases aliased_versions = { } ruby_aliases . split ( "\n" ) . each do | ruby_alias | split_pattern = / \A (.+) => (.+) \z / alias_name , aliased_version = ruby_alias . match ( split_pattern ) &. captures aliased_versions [ alias_name ] = aliased_version end find_aliased_ruby ( requested_version , aliased_versions ) end
Checks if the requested ruby version is aliased by rbenv to use another ruby version.
Checks if the requested ruby version is aliased by rbenv to use another ruby version .
requested_version