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

NoMethodError: undefined method `parse' for nil:NilClass in parse_time #37

Open
xeruf opened this issue May 10, 2023 · 1 comment
Open

Comments

@xeruf
Copy link

xeruf commented May 10, 2023

Heyo! I am unable to integrate this Gem in a legacy project,
seems another version constraint is needed.

  • Ruby 2.6.10
  • Rails 4.2

Extract from Gemfile.lock:

delayed_job (4.1.10)
  activesupport (>= 3.0, < 8.0)
delayed_job_active_record (4.1.7)
  activerecord (>= 3.0, < 8.0)
  delayed_job (>= 3.0, < 5)
delayed_job_recurring (0.2)
  delayed_job (>= 4.0)
  delayed_job_active_record (>= 4.0)
delorean (2.1.0)
  chronic

Got this errir in Version 0.2, 0.3.7, 0.3.9:

[2] pry(main)> DailyJob.schedule!
  Delayed::Backend::ActiveRecord::Job Load (0.9ms)  SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE (((handler LIKE '--- !ruby/object:DailyJob %') OR (handler LIKE '--- !ruby/object:DailyJob\n%')))
NoMethodError: undefined method `parse' for nil:NilClass
from /usr/local/lib/app-bundle/gems/delayed_job_recurring-0.3.7/lib/delayed/recurring_job.rb:95:in `parse_time'

Using the Example Code.

@xeruf
Copy link
Author

xeruf commented May 10, 2023

Oh, the actual issue was that it did not recognize the 'am' as I am in a European (German) locale. Would be good to adjust that.

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

1 participant