Skip to content

Commit

Permalink
Remove Gemfile
Browse files Browse the repository at this point in the history
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
jeremyevans committed Jul 17, 2023
1 parent f94c1db commit c8a7944
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Gemfile

This file was deleted.

2 comments on commit c8a7944

@Nakilon
Copy link

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?

@jeremyevans
Copy link
Owner Author

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?

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.

How do you update them?`

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.

Please sign in to comment.