# frozen_string_literal: true module Makit VERSION = "0.0.4" class Version # given an array of version strings, return the highest version def self.get_highest_version(versions) versions.sort { |a, b| Gem::Version.new(a) <=> Gem::Version.new(b) }.last end end end