Ruby1.9 Support

String.each is deprecated in Ruby1.9.3. Should use each_line instead, so it works with both Ruby1.8 and Ruby1.9.3
Merge pull request #8 from trondiz/patch-1

Ruby1.9 Support