Module: Homebrew::Livecheck::Strategic Abstract Private
- Extended by:
- T::Helpers
- Included in:
- Homebrew::Livecheck::Strategy::Apache, Homebrew::Livecheck::Strategy::Bitbucket, Homebrew::Livecheck::Strategy::Cpan, Homebrew::Livecheck::Strategy::Crate, Homebrew::Livecheck::Strategy::ElectronBuilder, Homebrew::Livecheck::Strategy::ExtractPlist, Homebrew::Livecheck::Strategy::Git, Homebrew::Livecheck::Strategy::GithubLatest, Homebrew::Livecheck::Strategy::GithubReleases, Homebrew::Livecheck::Strategy::Gnome, Homebrew::Livecheck::Strategy::Gnu, Homebrew::Livecheck::Strategy::Hackage, Homebrew::Livecheck::Strategy::HeaderMatch, Homebrew::Livecheck::Strategy::Json, Homebrew::Livecheck::Strategy::Launchpad, Homebrew::Livecheck::Strategy::Npm, Homebrew::Livecheck::Strategy::PageMatch, Homebrew::Livecheck::Strategy::Pypi, Homebrew::Livecheck::Strategy::Sourceforge, Homebrew::Livecheck::Strategy::Sparkle, Homebrew::Livecheck::Strategy::Xml, Homebrew::Livecheck::Strategy::Xorg, Homebrew::Livecheck::Strategy::Yaml
- Defined in:
- livecheck/strategic.rb
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.
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
-
#find_versions(url:, regex: nil, provided_content: nil, options: Options.new, &block) ⇒ Hash{Symbol => T.anything}
abstract
private
Checks the content at the URL for new versions.
-
#match?(url) ⇒ Boolean
abstract
private
Whether the strategy can be applied to the provided URL.
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.
Checks the content at the URL for new versions. Implementations may not support all options.
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.
Whether the strategy can be applied to the provided URL.
17 |
# File 'livecheck/strategic.rb', line 17 def match?(url); end |