module

Quartz::Signal::ContentId

Content-addressed identifier for signal captures.

Canonical form:

  • read bytes as UTF-8 text
  • normalize line endings (\r\n and \r → \n)
  • strip trailing whitespace from every line
  • strip trailing blank lines
  • ensure the result ends with a single \n if it had any content

Two semantically equal FFF captures with different trailing whitespace or CRLF/LF endings yield the same ContentId. This is the foundation for federated taps (content-addressed sharing).

Constants

PREFIX = "q1:"

Class methods

canonicalize(text : String) : String
Source
of(path : String) : String
Source
of_bytes(bytes : Bytes) : String
Source
of_io(io : IO) : String
Source