Fix IO#lines deprecation warning for Ruby 2.0
Merge pull request #6 from johnadamson/deprecation_fix

Fix IO#lines deprecation warning for Ruby 2.0