
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
h1. Cadence
Track counts and compute rate of iteration. Set up callbacks for various intervals such as @every@ n increments or every n @ticks@.
h2. Sample
require 'lib/cadence' data = (1..100).to_a computer = Cadence::Computer.new do |c| c.every 5 do p [:every, 5, n] end c.for(:tens).every do p [:tens, :every, n] end c.twenties.every 2 do p [:twenties, :every, 2, n] end c.ticks 1 do p [:tock, n, timestamp] end end computer.start do |c| data.each do |n| c.next c.tens.next if n % 10 == 0 p [:n, n] sleep 0.02 end end
h2. License
MIT
h2. Copyright
Copyright (C) 2010 Matt Todd.
FAQs
Unknown package
We found that cadence 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
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.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.