add .gitignore
fix syntax for ruby 2.x