
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.
A simple cron-like scheduler for Ruby.
Add this line to your application's Gemfile:
gem 'rcron'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rcron
As of now, most of the expressions except for ? and W are supported.
http://en.wikipedia.org/wiki/Cron#Format
require 'rcron'
rcron = RCron.new
# Enqueue a task running every two minutes
rcron.enq('task #1', '*/2 * * * *') do |task|
# Task logic
# ...
end
# You can `enq' any number of tasks before starting rcron
rcron.start
rcron = RCron.new
# will run once at 8pm next second friday
rcron.enq('task #2', '0 8 * * fri#2') do |task|
# Removes the task from the queue
task.deq
# Task logic
# ...
end
rcron.start
rcron = RCron.new
# :exclusive - Only one instance of this task will run simultaneously.
# :timeout - Task will be terminated if it takes longer than the specified seconds.
rcron.enq('Every ten-minutes during summer',
'*/10 * * jun-aug *',
:exclusive => true,
:timeout => 1200) do |task|
# Task logic
# ...
end
# log to $stderr instead of default $stdout
rcron.start Logger.new($stderr)
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)Copyright (c) 2011 Junegunn Choi. See LICENSE.txt for further details.
FAQs
Unknown package
We found that rcron 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.