
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
This gem was born out of a desire to test the schedule for tasks being scheduled with Whenever. Not to test if Whenever can generate the proper CRON schedule, but to test whether I can generate the proper config/schedule.rb
. It turns out I can't sometimes.
Add this to you gemfile:
gem "shoulda-whenever", "~> 0.0.2"
Create a new schedule to be tested at config/schedule.rb
(or anywhere really, but for the sake of the README, that's where it is):
every :friday, at: "12:00 PM" do
runner "Notifier.send_team_lunch_email"
end
Create a new test file for testing your schedule, perhaps something like spec/schedule_spec.rb
:
describe "Schedule" do
include Shoulda::Whenever
let(:whenever) { Whenever::JobList.new(file: File.join(Rails.root, "config", "schedule.rb").to_s) }
it "sends out the team lunch reminder email every friday at noon" do
expect(whenever).to schedule("Notifier.send_team_lunch_email").every(:friday).at("12:00 PM")
end
end
FAQs
Unknown package
We found that shoulda-whenever demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.