Skip to content

Topic/next#56

Merged
sethdeckard merged 16 commits intomasterfrom
topic/next
Mar 7, 2026
Merged

Topic/next#56
sethdeckard merged 16 commits intomasterfrom
topic/next

Conversation

@sethdeckard
Copy link
Copy Markdown
Owner

No description provided.

Convert instance parse method to self.parse class method, matching
the pattern used by other item classes. Apply AttributeFormatter
for boolean formatting and remove M3u8 module inclusion.
Convert instance parse method to self.parse class method with private
class helpers for base attributes, interstitials, and client
attributes. Replace include M3u8 with extend M3u8.
Merge instance parse logic into self.parse with private class method
helpers. Replace include M3u8 with extend M3u8.
Move parsing logic from Reader into SegmentItem.parse class method,
matching the pattern used by other item classes.
Replace manual byterange_format with quoted_format using
AttributeFormatter, switching to array-based formatted_attributes.
Replace manual duration_format, uri_format, and byterange_format
helpers with unquoted_format and quoted_format from
AttributeFormatter.
Replace repeated gsub tag-prefix patterns with a single tag_value
method that splits on the first colon.
Convert proc blocks to lambda syntax for consistency. Zero-arg procs
become lambdas that accept and ignore the line argument.
Inline the last parse_yes_no usage and remove include M3u8, since
all item parsing now uses class-level parse methods.
Add YARD @param, @return annotations to all helper methods in the
M3u8 module and AttributeFormatter.
Add YARD annotations to all public methods including .build, .codecs,
.read, #write, #to_s, #valid?, #errors, #live?, #master?, #freeze,
#duration, and all convenience accessors.
Add YARD annotations to attrs, .parse, #to_s, #resolution,
and #codecs methods.
Add YARD annotations to Encryptable, KeyItem, SessionKeyItem,
and MediaItem classes.
Add YARD annotations to MapItem, DateRangeItem, ByteRange, TimeItem,
DiscontinuityItem, GapItem, and BitrateItem.
Add YARD annotations to PartItem, PartInfItem, ServerControlItem,
PreloadHintItem, RenditionReportItem, and SkipItem.
Add YARD annotations to PlaybackStart, SessionDataItem,
ContentSteeringItem, DefineItem, Codecs, Reader, Writer,
and Builder.
@sethdeckard sethdeckard merged commit 69f9f2c into master Mar 7, 2026
4 checks passed
@sethdeckard sethdeckard deleted the topic/next branch March 7, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant