add .ruby-version to .gitignore
update Gemfile.lock from Gemfile
resolve nil.call error in certain environments