Class: Homebrew::DevCmd::AdvisoryMatch::Emitter Private

Inherits:
Object
  • Object
show all
Defined in:
dev-cmd/advisory-match.rb

Overview

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

--output and text mode write per-record and only accumulate counts; --json accumulates the array (single-formula / PR-bot use, so bounded).

Direct Known Subclasses

CountEmitter, DirEmitter, JsonEmitter

Instance Method Summary collapse

Instance Method Details

#alias_protected?(_record_id) ⇒ 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.

Parameters:

Returns:

  • (Boolean)


477
# File 'dev-cmd/advisory-match.rb', line 477

def alias_protected?(_record_id) = false

#emit(record, revalidated: false, initial_introduction: false) ⇒ void

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 returns an undefined value.

Parameters:

  • record (Hash{Symbol => T.untyped})
  • revalidated (Boolean) (defaults to: false)
  • initial_introduction (Boolean) (defaults to: false)


503
# File 'dev-cmd/advisory-match.rb', line 503

def emit(record, revalidated: false, initial_introduction: false); end

#finish ⇒ void

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 returns an undefined value.



506
# File 'dev-cmd/advisory-match.rb', line 506

def finish; end

#fixed_boundary_valid?(_record_id, _boundary) ⇒ 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.

Parameters:

Returns:

  • (Boolean)


486
# File 'dev-cmd/advisory-match.rb', line 486

def fixed_boundary_valid?(_record_id, _boundary) = true

#history_required?(_record_id) ⇒ 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.

Parameters:

Returns:

  • (Boolean)


483
# File 'dev-cmd/advisory-match.rb', line 483

def history_required?(_record_id) = true

#prepare_aliases(_formula_name, _groups) ⇒ Array<String>

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.

Parameters:

Returns:



474
# File 'dev-cmd/advisory-match.rb', line 474

def prepare_aliases(_formula_name, _groups) = []

#range_basis_changed?(_record) ⇒ 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.

Parameters:

Returns:

  • (Boolean)


480
# File 'dev-cmd/advisory-match.rb', line 480

def range_basis_changed?(_record) = false

#record_history_unavailable(_formula_name) ⇒ void

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 returns an undefined value.

Parameters:



492
# File 'dev-cmd/advisory-match.rb', line 492

def record_history_unavailable(_formula_name); end

#record_history_walk ⇒ void

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 returns an undefined value.



489
# File 'dev-cmd/advisory-match.rb', line 489

def record_history_walk; end

#reintroduction_boundary_valid?(_record_id, _boundary) ⇒ 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.

Parameters:

Returns:

  • (Boolean)


498
# File 'dev-cmd/advisory-match.rb', line 498

def reintroduction_boundary_valid?(_record_id, _boundary) = true

#reviewed_range_state(_record_id) ⇒ Symbol?

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.

Parameters:

Returns:



495
# File 'dev-cmd/advisory-match.rb', line 495

def reviewed_range_state(_record_id); end