
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
puma-rufus-scheduler
Advanced tools
Puma plugin to run Rufus Scheduler.
gem "puma-rufus-scheduler"
bundle install
config/puma.rb:plugin "rufus-scheduler"
config/scheduler.rb:scheduler = Rufus::Scheduler.new
scheduler.every "5s" do
puts "Every 5 seconds #{Time.current}"
end
# This will attach scheduler thread to Puma's background thread.
# Dont forget to add this line!
scheduler.join
$ bin/rails server
=> Booting Puma
=> Rails 7.1.3.2 application starting in development
...
Every 5 seconds 2024-04-17 14:13:11 UTC
Every 5 seconds 2024-04-17 14:13:16 UTC
Every 5 seconds 2024-04-17 14:13:21 UTC
You can change the scheduler file path by setting the RUFUS_SCHEDULER_FILE environment variable:
RUFUS_SCHEDULER_FILE=config/my_scheduler.rb bin/rails server
After checking out the repo, run bin/setup to install dependencies. Then, run bin/rake test to run the tests.
To install this gem onto your local machine, run bin/rake install.
To release a new version, update the version number in version.rb, and then run bin/rake release,
which will create a git tag for the version, push git commits and the created tag, and push the .gem file to
rubygems.org.
Copyright © 2024 Javier Aranda. Released under the terms of the MIT license.
FAQs
Unknown package
We found that puma-rufus-scheduler 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.