use each_line on String for compatibility
Merge pull request #2 from OpsRockin/fix_for_ruby19

use each_line on String for compatibility