def version
      return @detected_version if defined? @detected_version
      return if Gem.win_platform?

      version = installed_versions.find { |p, _v| p == path }
      @detected_version = version.nil? ? nil : version[1]
    end
def version
      return @detected_version if defined? @detected_version
      return if Gem.win_platform?

      version = installed_versions.find { |p, _v| p == path }
      @detected_version = version.nil? ? nil : version[1]
    end
Returns the version of the resolved dependency