lib/flapjack/patches.rb in flapjack-0.7.18 vs lib/flapjack/patches.rb in flapjack-0.7.19

- old
+ new

@@ -1,49 +1,9 @@ #!/usr/bin/env ruby -require 'ostruct' require 'thin' require 'resque' -# require 'log4r' - -class OpenStruct - def to_h - @table - end -end - -#module Log4r -# class Logger -# def error(args) -# err(args) -# end -# -# def warning(args) -# warn(args) -# end -# end -#end - -# extracted from Extlib. -# FIXME: what's the licensing here? -class String - def camel_case - return self if self !~ /_/ && self =~ /[A-Z]+.*/ - split('_').map{|e| e.capitalize}.join - end -end - -# http://gist.github.com/151324 -class Hash - def symbolize_keys - inject({}) do |acc, (k,v)| - key = String === k ? k.to_sym : k - value = Hash === v ? v.symbolize_keys : v - acc[key] = value - acc - end - end -end +require 'redis' # we don't want to stop the entire EM reactor when we stop a web server # & @connections data type changed in thin 1.5.1 module Thin