javan / javan/whenever

Missing "script/runner", undocumented dependency on rails?

Open
#819 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
8.9k
Forks
715
PR merge metrics
No merged PRs in 30d

Description

When I try to use this gem in a plain old ruby project, runner tasks fail with:

bundler: command not found: script/runner
Install missing gem executables with `bundle install`

I know this is exists in rails projects, but the readme didn't make it seem like Rails was a hard requirement. I'm just trying to run a script on a schedule and this gem seemed perfect.

schedule.rb:

set :output, "./checker.log"
every 1.minutes do
  runner "Checker.run"
end

I installed whenever using the instructions, added to my Gemfile and ran bundle exec wheneverize ., then whenever --update-crontab

Contributor guide

Open the contributing guide

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.

Research direction

Start with the README's runner documentation and the schedule.rb example, then inspect the script/runner command produced by whenever --update-crontab. Compare the documented setup with a plain Ruby project and the reported Bundler failure. Done should make the Rails requirement and supported runner setup explicit.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
cli
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.