Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It is a bad idea to use Gemfile in libraries due to the creation of a lock file. You always want to make sure you are testing the library against the latest version of the installed dependencies to catch regressions, and having a lockfile prevents automatically picking up newer versions of installed dependencies.
- Loading branch information
c8a7944
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But having no Gemfile does not prevent you from "not using the latest dependencies", does it?
How do you update them?
c8a7944
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What having no Gemfile does is makes sure that if you have an updated gem installed, it gets used. If you have a Gemfile, even if you have an updated gem installed, it won't be used, because of the lockfile.
gem install
. Honestly, it's kind of a weird question to me, but maybe that's because I was around before bundler. I suppose if you've only used bundler, maybe a non-bundler approach is unfamiliar or odd.