Skip to content

Fix nil return from YOM_HAATZMAUT#5

Merged
dorner merged 3 commits intodorner:masterfrom
wtn:update
Feb 22, 2026
Merged

Fix nil return from YOM_HAATZMAUT#5
dorner merged 3 commits intodorner:masterfrom
wtn:update

Conversation

@wtn
Copy link
Copy Markdown
Contributor

@wtn wtn commented Feb 22, 2026

Fix from_holiday(:YOM_HAATZMAUT) returning nil for years where Iyar 5 needs no day-of-week shift or falls on Shabbat, which also crashed from_holiday(:YOM_HAZIKARON)

Additional changes

  • Exclude doc/ from the gem
  • Move development dependencies to the Gemfile
  • Remove Gemfile.lock from the repo

wtn and others added 3 commits February 21, 2026 18:32
The if/elsif/end block didn't return date as a default, so years where
Iyar 5 falls on Wed/Thu/Sun returned nil. The Shabbat branch also
returned nil since set_hebrew_date mutates in place. This crashed
YOM_HAZIKARON which calls #back on the result.

Co-authored-by: Claude <noreply@anthropic.com>
Replace tab indentation with spaces in _hebrew_calendar_elapsed_days
and _hebrew_date_to_abs_date to align if/else/end keywords.

Co-authored-by: Claude <noreply@anthropic.com>
@dorner dorner merged commit 713df66 into dorner:master Feb 22, 2026
13 checks passed
@wtn wtn deleted the update branch February 22, 2026 16:27
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.

2 participants