I have a private git server hosting a gem we developed. The gem got some commits, but the version did not actually change.
How can I force bundler to update my gem even if the version hasn't changed?
I tried "bundler update mygemname" but it did not update anything.
Thanks
that will not work - there is no "force" option - you will have to modify your .gemspec file and increase the version number, then do gem build ...
, and bundle install
It is critical for bundler to be able to read the version number from your gem, which was introduced in the .gemspec
file. It's confusing not only to bundler or gem update
, but also confusing to people if you forget to update the version number in the .gemspec file. They would end up having gem-files lying around, and not be able to tell which versions they are, e.g. which one is newer? (of course you could use md5-sum, but that's beside the point here).
The best thing to do is to correct the mistake in the .gemspec file, and re-release the gem.
Check the bundler source code for available options:
e.g.: bundler-1.0.15/lib/bundler/cli.rb
(search for desc "install"
)