NoirTaggers
Constants
AUTH_ENTRIES = FRAMEWORK_ENTRIES.select() do |__arg3| __arg3.key.ends_with?("_auth") end
The framework taggers that emit the auth tag. They share one naming
convention, {framework}_auth, and a spec pins it.
ENTRIES = begin
{% if true %}
[
{% for tagger in Tagger.all_subclasses
.select(&.annotation(Noir::TaggerFor))
.sort_by do |sub| (sub.annotation(Noir::TaggerFor))[:order] end %}
{% ann = tagger.annotation(Noir::TaggerFor) %}
Entry.new({{ ann[:key] }}, {{ ann[:name] }}, {{ ann[:desc] }},
{{ tagger.ancestors.includes?(FrameworkTagger) }}),
{% end %}
] of Entry
{% end %}
end
Every annotated tagger, in order. Derived from the classes, so a
tagger joins the registry by existing: the two hand-maintained hash
literals this replaces were a second place to remember, where
forgetting produced no error and no failing spec — just a tagger that
never ran.
FRAMEWORK_ENTRIES = ENTRIES.select(&.framework)
PLAIN_ENTRIES = ENTRIES.reject(&.framework)
Class methods
Whether a --use-taggers list runs at least one tagger that can emit
the auth tag.
available_tagger_names
SourceInstantiates the tagger key names, or nil when nothing claims it.
Techs a framework tagger declares an interest in; empty for plain taggers, which run against every endpoint.