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

New version is unforgiving for trailing spaces #726

Closed
arokettu opened this issue Nov 20, 2017 · 1 comment
Closed

New version is unforgiving for trailing spaces #726

arokettu opened this issue Nov 20, 2017 · 1 comment
Labels

Comments

@arokettu
Copy link

every '47 */6 * * * ' do
  # ...
end

produces error ArgumentError: Couldn't parse: 47 */6 * * *

My issue was resolved by removing the trailing space manually however it's a backward incompatible change with a misleading error message

@benlangfeld
Copy link
Collaborator

The backward compatability is something we have to live with until we cut v1.0, but we can do a better job with the error message by calling #inspect on the value so it would read:

ArgumentError: Couldn't parse: "47 */6 * * * "

Is this something you would be prepared to submit a PR for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants