lib/dldinternet/mixlib/logging.rb in dldinternet-mixlib-logging-0.7.0 vs lib/dldinternet/mixlib/logging.rb in dldinternet-mixlib-logging-0.7.1

- old
+ new

@@ -80,13 +80,13 @@ l_opts[o] = opts.delete(o) if opts.has_key? o end layout = ::Logging::Layouts::Pattern.new(l_opts) a_opts = Hash.new - a_opts[:size] = size if size.instance_of?(Fixnum) + a_opts[:size] = size if size.instance_of?(Integer) a_opts[:age] = age if age.instance_of?(String) - a_opts[:keep] = keep if keep.instance_of?(Fixnum) + a_opts[:keep] = keep if keep.instance_of?(Integer) a_opts[:filename] = dev if dev.instance_of?(String) a_opts[:layout] = layout a_opts.merge! opts appender = @@ -222,11 +222,11 @@ def define_log_methods( logger ) ::Logging::LEVELS.each do |name,num| code = "undef :#{name} if method_defined? :#{name}\n" code << "undef :#{name}? if method_defined? :#{name}?\n" - unless logger.level.is_a?(Fixnum) - puts "logger.level for #{logger.name} is a #{logger.level.class} instead of a Fixnum!!!" + unless logger.level.is_a?(Integer) + puts "logger.level for #{logger.name} is a #{logger.level.class} instead of a Integer!!!" exit -1 end # if logger.level > num # code << <<-CODE # def #{name}?( ) false end