module

Pomtex::Core::UpdateCheck

Tells pomtex doctor whether a newer release exists, and how to get it. Never used during builds: a network check must not slow down compilation.

Constants

TIMEOUT = 3.seconds

Instance methods

check(current : String = VERSION) : Result
Source
homebrew?(path : String) : Bool

Homebrew links bin/pomtex to its Cellar/pomtex/<version>/bin/pomtex.

Source
latest_version

The latest release tag on GitHub, without the leading "v".

Source
newer?(candidate : String, current : String) : Bool

Numeric comparison of dotted versions: 0.10.0 is newer than 0.9.1.

Source
upgrade_hint(executable : String | Nil = Process.executable_path) : String

How this binary was installed decides how to update it.

Source

Nested types