Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
= 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.