maint: improve new line detection so tests pass on windows and unix
Use a Gemfile to declare testing dependencies and add to .gitignore
Add .travis.yml file for community PR testing