Module: Homebrew::Livecheck::Strategic Abstract Private

Overview

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

This module is abstract.

Subclasses must implement the abstract methods below.

The interface for livecheck strategies. Because third-party strategies are not required to extend this module, we do not provide any default method implementations here.

Instance Method Summary collapse

Instance Method Details

#find_versions(url:, regex: nil, provided_content: nil, options: Options.new, &block) ⇒ Hash{Symbol => T.anything}

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method is abstract.

Checks the content at the URL for new versions. Implementations may not support all options.

Parameters:

  • url (String)

    the URL of the content to check

  • regex (Regexp, nil) (defaults to: nil)

    a regex for matching versions in content

  • provided_content (String, nil) (defaults to: nil)

    content to check instead of fetching

  • options (Options) (defaults to: Options.new)

    options to modify behavior

  • block (Proc, nil)

    a block to match the content

Returns:



37
# File 'livecheck/strategic.rb', line 37

def find_versions(url:, regex: nil, provided_content: nil, options: Options.new, &block); end

#match?(url) ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method is abstract.

Whether the strategy can be applied to the provided URL.

Parameters:

  • url (String)

    the URL to match against

Returns:

  • (Boolean)


17
# File 'livecheck/strategic.rb', line 17

def match?(url); end