Module Cliver
In: lib/cliver.rb
lib/cliver/filter.rb
lib/cliver/detector.rb
lib/cliver/dependency.rb
lib/cliver/version.rb
lib/cliver/shell_capture.rb

encoding: utf-8

Methods

Classes and Modules

Module Cliver::Filter
Class Cliver::Dependency
Class Cliver::Detector
Class Cliver::ShellCapture

Constants

VERSION = '0.3.2'   Cliver follows {semver.org SemVer}

Public Class methods

A legacy interface for {::detect} with the option `strict: true`, ensures that the first executable on your path matches the requirements. @see Cliver::Dependency @overload (see Cliver::Dependency#initialize) @param (see Cliver::Dependency#initialize) @option options [Boolean] :strict (true) @see Cliver::Dependency::initialize @raise (see Cliver::Dependency#detect!) @return (see Cliver::Dependency#detect!)

A non-raising variant of {::detect!}, simply returns false if dependency cannot be found. @see Cliver::Dependency @overload (see Cliver::Dependency#initialize) @param (see Cliver::Dependency#initialize) @raise (see Cliver::Dependency#detect) @return (see Cliver::Dependency#detect)

The primary interface for the Cliver gem allows detection of an executable on your path that matches a version requirement, or raise an appropriate exception to make resolution simple and straight-forward. @see Cliver::Dependency @overload (see Cliver::Dependency#initialize) @param (see Cliver::Dependency#initialize) @raise (see Cliver::Dependency#detect!) @return (see Cliver::Dependency#detect!)

Verify an absolute-path to an executable. @overload verify!(executable, *requirements, options = {})

  @param executable [String] absolute path to an executable
  @param requirements (see Cliver::Dependency#initialize)
  @option options (see Cliver::Dependency::initialize)
  @raise (see Cliver::Dependency#detect!)
  @return (see Cliver::Dependency#detect!)

Public Instance methods

Wraps Cliver::assert and returns truthy/false instead of raising @see Cliver::assert @overload (see Cliver::Assertion#initialize) @param (see Cliver::Assertion#initialize) @return [False,String] either returns false or the reason why the

                       assertion was unmet.

[Validate]