Version Gemfile is a simple gem to add version numbers to your Gemfile gems.
is that most people don't add that simple
'~> x.x.x' part at the end and
that makes it horrible to run
bundle update. Well, at least, you can't trust that!
How does it work?
Version Gemfile will go through your Gemfile looking for unversioned gems, then will query your Gemfile.lock to get the current version of each gem you're using and update your Gemfile.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install version_gemfile
$ version_gemfile and you're done.
Also, you should consider the Add Gem gem to add gems to your Gemfile.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request