Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Issue with humanizing a RRULE with BYMONTHDAY

Open
#65 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
ruby
Domain
backend

Research direction

Reproduce the failure with RRule::Rule.new('RRULE:FREQ=MONTHLY;BYMONTHDAY=1').humanize and start at the RRule::Humanizer entry point named in the error. Verify that BYMONTHDAY values produce the requested ordinal wording for 15, 1, and -1, with no NameError.

Written by the indexing model from the issue text.

Description

I'm getting an error when I try to humanize a RRULE with BYMONTHDAY.

Error:

> RRule::Rule.new('RRULE:FREQ=MONTHLY;BYMONTHDAY=1').humanize
NameError: undefined local variable or method `_bymonthday' for #<RRule::Humanizer:0x0000000163012908>

The example I'm using is

RRULE:FREQ=MONTHLY;BYMONTHDAY=1

From rrule.js demo:
https://jkbrzt.github.io/rrule/#/rfc/RRULE:FREQ=MONTHLY;BYMONTHDAY=1

It should read:

  • every month on the 15th if BYMONTHDAy=15
  • every month on the 1st if BYMONTHDAY=1
  • every month on the last if BYMONTHDAY=-1

I'll try to fix when I get some time, but if someone else wants to take a crack at it, then by all means.

Dominant language
Ruby
Stars
186
Forks
26
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from square/ruby-rrule

All issues in square/ruby-rrule

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.