Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check gems ready to update?

Ho to check gems ready to update, without update them?

like image 417
plewas Avatar asked Jul 21 '12 14:07

plewas


3 Answers

If you are not using bundler, just run gem outdated and it will give you a list of outdated gems.

Example of output:

$ gem outdated                                                                                                                                                                                   
acts_as_tree (2.7.1 < 2.9.1)                                                                                                                                                                     
addressable (2.4.0 < 2.7.0)                                                                                                                                                                      
bcrypt (3.1.12 < 3.1.13)                                                                                                                                                                         
bootsnap (1.4.5 < 1.4.6)                                                                                                                                                                         
bootstrap (4.3.1 < 4.4.1)                                                                                                                                                                        
brakeman (4.7.2 < 4.8.0)                                                                                                                                                                         
cancancan (1.17.0 < 3.0.2)                                                                                                                                                                       
chart_js (1.1.0 < 1.1.1)                                                                                                                                                                         
coffee-rails (4.2.2 < 5.0.0)
combustion (0.6.0 < 1.1.2)
database_cleaner (1.8.2 < 1.8.3)
...
like image 128
Pafjo Avatar answered Oct 17 '22 16:10

Pafjo


Bundler has an outdated command. I assume you're using Bundler, of course.

like image 9
Stefan Kanev Avatar answered Oct 17 '22 16:10

Stefan Kanev


gem outdated will give you a list of outdated gems including version number you currently have and the latest version number.

Then to update:

  • gem update GEMNAME to update a specific gem or just
  • gem update to update all gems to the latest stable version
like image 2
xander-miller Avatar answered Oct 17 '22 17:10

xander-miller