
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.
** RECTOR IS CURRENTLY VAPORWARE; THIS README IS SIMPLY MY THOUGHTS ON HOW IT MIGHT WORK **
Rector allows coordination of a number of jobs spawned with a mechanism like Resque (though any job manager will do). If you are able to parallelize the processing of a task, yet all these tasks are generating metrics, statistics, or other data that need to be combined, Rector might be for you.
Rector currently supports Redis as a backend for job coordination and data storage.
Rector.configure do |c|
c.redis = Redis.new(:host => "10.0.1.1", :port => 6380)
end
Rector requires that some process be designated as the "master" process. This is usually the process that is also responsible for spawning the worker jobs.
job = Rector::Job.new
# e.g., processing files in parallel
files.each do |file|
worker = job.workers.create
# e.g., using Resque for job management; Rector doesn't really care
Resque.enqueue(WordCounterJob, worker.id, file)
end
# wait for all the workers to complete
job.join
# get aggregated data from all the jobs
job.data.each do |word, count|
puts "#{word} was seen #{count} times across all files"
end
job.cleanup
class ProcessFileJob
def self.perform(worker_id, file)
worker = Rector::Worker.new(worker_id)
words = File.read(file).split(/\W/)
words.reject(&:blank?).each do |word|
worker.data[word] ||= 0
worker.data[word] += 1
end
worker.finish
end
end
FAQs
Unknown package
We found that rector 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.