use https for rubygems and gitignore Gemfile.lock and add lib to test path

- use https for rubygems
- add `Gemfile.lock` to gitignore
- add `lib` to test path