Support Getting Input From Text File

If recieving xcode output from a file, need to add support for using 'each_line' instead of 'each' for ruby 1.9+.

As of ruby 1.9.X, String#each is no longer supported - documentation: http://ruby-doc.org/core-1.9.3/String.html

Also added a unit test to highlight the problem and show the fix.

This is an improvement over the pull request #25 , as the actual problem was only partially the ruby version - the other issue was due to having a need to read the xcode output from a file, instead of directly from xcodebuild.