
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
redisk
Advanced tools
= redisk
An interface to Redis that mimic's Ruby's IO classes
== WHAT
Redis (http://code.google.com/p/redis/) is a super awesome persisted key-value store.
Why are we still logging to files then?
Redisk is a set of Ruby classes that mimic's Ruby's built in IO classes to allow drop in replacement for logging and other fun things.
== USAGE
Currently, Redisk provides two main classes Redisk::IO and Redisk::Logger.
Redisk::IO implements most of the methods of Ruby's IO class (http://ruby-doc.org/core/classes/IO.html)
require 'redisk'
io = Redisk::IO.new('mylog.log') # not a file, a Redis List
io.puts "Log this!"
io.gets #=> "Log this!"
io.gets #=> nil
io.lineno = 2
Its much more interesting to use it with logger.
logger = Logger.new(Redisk::IO.new('test.log))
logger.info("Hahah, I'm logging to redis")
logger.warn("whu?")
logger.error("zuh")
Theres also a nifty wrapper for that behavior:
logger = Redisk::Logger.new('test.log')
logger.info "10 less characters!"
By default, Redisk uses the Redis on localhost:6379, but you can change that by setting
Redisk.redis = 'myhost:myport'
Check out the small but growing list of examples in examples/
== INSTALL (NOW!)
Proudly tested and working on Ruby 1.8.6, 1.8.7, and 1.9.1
Gems are on gemcutter:
gem install redisk
Dependencies:
redis running somewhere
gems:
redis
redis-namespace
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2009 Aaron Quint. See LICENSE for details.
FAQs
Unknown package
We found that redisk 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.