lib/ledis.rb in ledis-0.0.1 vs lib/ledis.rb in ledis-0.0.2

- old
+ new

@@ -62,13 +62,17 @@ module Ledis ## # class << Ledis def version - '0.0.1' + '0.0.2' end + def description + 'a K.I.S.S auto-rotating redis logger for ruby/rails' + end + def dependencies { 'map' => [ 'map' , ' >= 6.0.1' ], 'redis' => [ 'redis' , ' >= 2.2.2' ] } @@ -145,12 +149,12 @@ Hash[ Severity.constants.map{|c| [c.to_s.downcase, Severity.const_get(c)]} ] def level_for(level) case level when Integer - Levels[ Levels.invert[level] || 4 ] + Levels[ Levels.invert[level] || 0 ] else - Levels[ level.to_s.downcase ] + Levels[ level.to_s.downcase || 'debug' ] end end %w( redis redis=