How to update a single commit on a Gem?

I set will_paginate using Gem and Bundle; now I see there a GitHub update ( this commit ) - How can I update it? Manually? Reinstall it with git clone ?

Halp!

+4
source share
2 answers

Do you want bundle update

You can add a gem name if you want to update a specific one using bundle update will_paginate

Here is a more detailed tutorial: http://gembundler.com/rationale.html

You need a subsection called "Updating the Gem Without Changing the Gemfile".

If you included a gem in the Gemfile with a git outline (and you did not specify any directive that would prevent updating, such as version number), it will update the gem based on the provided source. You will need to do this everywhere. Updates do not sync with your version control applications.


Here is a guide specific to git: http://gembundler.com/git.html

If you only need a specific commit, you need to add an argument :ref with a hash.

+11
source

run

 bundle update will_paginate 
+2
source

Source: https://habr.com/ru/post/1334694/


All Articles