Skip to content

Fix missing require for Time parsing#61

Merged
sethdeckard merged 1 commit into
masterfrom
fix-require-time
May 23, 2026
Merged

Fix missing require for Time parsing#61
sethdeckard merged 1 commit into
masterfrom
fix-require-time

Conversation

@sethdeckard

Copy link
Copy Markdown
Owner

TimeItem parses EXT-X-PROGRAM-DATE-TIME with Time.parse and renders it with Time#iso8601, but the library never required 'time'. Parsing such a playlist after only require 'm3u8' raised NoMethodError; it worked only because the test suite loaded 'time' transitively.

Add the require and a regression test that parses a program-date-time playlist in a clean subprocess.

TimeItem parses EXT-X-PROGRAM-DATE-TIME with Time.parse and
renders it with Time#iso8601, but the library never required
'time'. Parsing such a playlist after only require 'm3u8'
raised NoMethodError; it worked only because the test suite
loaded 'time' transitively.

Add the require and a regression test that parses a
program-date-time playlist in a clean subprocess.
@sethdeckard
sethdeckard merged commit da570f0 into master May 23, 2026
4 checks passed
@sethdeckard
sethdeckard deleted the fix-require-time branch May 23, 2026 13:12
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