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

"Every day at 9am" stopped working in v2.0.0rc #21

Open
bjonord opened this issue Oct 31, 2018 · 7 comments
Open

"Every day at 9am" stopped working in v2.0.0rc #21

bjonord opened this issue Oct 31, 2018 · 7 comments

Comments

@bjonord
Copy link
Contributor

bjonord commented Oct 31, 2018

Not sure if this is being worked on or if the incantation is going to be dropped?

> Tickle.parse('every day at 9am')
Traceback (most recent call last):
        1: from (irb):12
ArgumentError (argument out of range)

This works as before:

> Tickle.parse('every tuesday')
=> {:next=>2018-11-06 12:00:00 +0000, :expression=>"every tuesday", :starting=>2018-10-31 09:28:52 +0000, :until=>nil}

Let me know if I can lend a hand.

Cheers

@yb66
Copy link
Owner

yb66 commented Oct 31, 2018

Hi @bjonord

Development has stalled on this, because the codebase is a bit too messy to do anything in a short time frame and other stuff gets in the way (life, plans… and bugs!) and Chronic, which Tickle depends on, keeps threatening a new release which also puts me off.

As to your problem, it does seem that phrasing dropped out of the code at some point, my apologies. I'll add a spec for it in spec/tickle_spec.rb and if you want to have a crack at it, by all means. I'll give it a look too, it'll be Friday afternoon though.

Regards,
iain

@yb66
Copy link
Owner

yb66 commented Oct 31, 2018

I've added a branch with the failing test here https://github.com/yb66/tickle/blob/issue-21-every-day-at-9am/spec/tickle_spec.rb#L443

@bjonord
Copy link
Contributor Author

bjonord commented Nov 1, 2018

Chronic, which Tickle depends on, keeps threatening a new release which also puts me off.

I noticed that too. Very unfortunate. Have you gotten an indication of how breaking the new release will be?

if you want to have a crack at it, by all means.

Not sure when I'll get a chance to have look, possibly tomorrow afternoon as well.

@yb66
Copy link
Owner

yb66 commented Nov 2, 2018

Have you gotten an indication of how breaking the new release will be?

Not at all. It was on a private branch for a while, and may be public now but it's been spoken of for so long that I decided to wait.

My plans for change, roughly, are to change Tickle's API, possibly into an (lazy) enumerator with a more standard ISO time response (I'd need to re-read my notes). The guts can change when Chronic changes.

iain

@bjonord
Copy link
Contributor Author

bjonord commented Nov 2, 2018

Started, but got pulled away on other stuff.

One thing I noted, the branch above is branched from RC1 instead of RC2?

@yb66
Copy link
Owner

yb66 commented Nov 2, 2018

Well spotted, for some reason I didn't have rc2. Weird. Anyway, I've fixed that. I also was sidetracked, I'll have a go at it tomorrow (I'm on Japan time).

iain

@yb66
Copy link
Owner

yb66 commented Nov 15, 2018

Hi @bjonord

After wading through the code it seems Chronic was handling that bit of the parsing. I'm going to see if I can hack something in that works instead, it may or may not work. The Chronic rewrite doesn't handle it either. I'll let you know if I can get it to work.

iain

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