Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.2
-
Fix Version/s: JRuby 1.2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
ActiveSupport's BufferedLogger has code like:
case period
when true; 1
when false, nil, 0; MAX_BUFFER_SIZE
when Integer; period
else raise ArgumentError, "Unrecognized auto_flushing period: #{period.inspect}"
end
0 was incorrectly getting picked up as the true branch.
Added to rubyspec: http://github.com/rubyspec/rubyspec/commit/e5e1772fa91a1cf884edd388ebdd99018cc8cad7