Issue #6849 has been reported by BrandonMathis (Brandon Mathis).

----------------------------------------
Bug #6849: Psych.load_file throws TypeError for empty file
https://bugs.ruby-lang.org/issues/6849

Author: BrandonMathis (Brandon Mathis)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0] 


When parsing an empty file via Psych.load_file:
TypeError: no implicit conversion from nil to integer
I would expect that an empty hash or array would be returned.

This, more directly, relates to parsing YAML documents using YAML.load_file 


-- 
http://bugs.ruby-lang.org/