Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't show calendar for month of December #1

Closed
electrodude opened this issue May 14, 2020 · 2 comments
Closed

Can't show calendar for month of December #1

electrodude opened this issue May 14, 2020 · 2 comments

Comments

@electrodude
Copy link

calrom -m 12 fails with the following error:

Traceback (most recent call last):
        7: from /home/$USER/.gem/ruby/2.5.0/bin/calrom:23:in `<main>'
        6: from /home/$USER/.gem/ruby/2.5.0/bin/calrom:23:in `load'
        5: from /home/$USER/.gem/ruby/2.5.0/gems/calrom-0.1.0/exe/calrom:7:in `<top (required)>'
        4: from /home/$USER/.gem/ruby/2.5.0/gems/calrom-0.1.0/lib/calrom/cli.rb:4:in `call'
        3: from /home/$USER/.gem/ruby/2.5.0/gems/calrom-0.1.0/lib/calrom/option_parser.rb:45:in `call'
        2: from /home/$USER/.gem/ruby/2.5.0/gems/calrom-0.1.0/lib/calrom/option_parser.rb:45:in `new'
        1: from /home/$USER/.gem/ruby/2.5.0/gems/calrom-0.1.0/lib/calrom/date_range.rb:17:in `initialize'
/home/$USER/.gem/ruby/2.5.0/gems/calrom-0.1.0/lib/calrom/date_range.rb:17:in `new': invalid date (ArgumentError)

(wherein I replaced my username with $USER)

The same thing happens if you also specify a year, e.g. calrom -m 12 2021.

@igneus
Copy link
Contributor

igneus commented Jun 11, 2020

Thank you very much for reporting. I confirm I reproduced the error. It turned out it's been fixed in master for some time (commit d872f42). I will release a new version of the gem to Rubygems in near future.

@igneus
Copy link
Contributor

igneus commented Jun 16, 2020

Fixed in 0.2.0 which was just released to Rubygems.

@igneus igneus closed this as completed Jun 16, 2020
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

No branches or pull requests

2 participants