I created a ruby gem. And I made a change to it. But I did not change any of its development or runtime dependencies. After I made a change to the gem and pushed it to git, I then run bundle update --source
on the Rails project that is using the gem:
bundle update --source my_gem
My expectation is that it will just update my_gem and nothing else. However, I found it is updating several other gems in Gemfile.lock of my Rails project:
- google-cloud-core (1.2.6)
+ google-cloud-core (1.2.7)
- google-cloud-env (1.0.4)
+ google-cloud-env (1.0.5)
- google-cloud-vision (0.30.3)
+ google-cloud-vision (0.30.4)
- signet (0.9.1)
+ signet (0.9.2)
Now yes my gem depends on google cloud. However, I did not update google cloud in my gem. I just updated one line of code in my gem itself. Why is it updating other gems and how can I prevent this?