List gem updates without installing?

M

Mason Brown

Is there a way to list, but not install, updated gems? I know that 'gem
update' will automatically update any gems to newer versions, but I'd
like to see what it's planning to do before actually doing the updates.

Thanks!

-Mason
 
A

Andrew Hodgkinson

Mason said:
Is there a way to list, but not install, updated gems?

All I could think of was querying the local gems, querying the remote
gems, then comparing the version numbers on the remote gems also in the
local repository. I've thrown a Ruby script together to do it, though it
lacks any elegance and has only had minimal testing:

http://pond.org.uk/misc/gem-would-update.rb

Is there a better way?
 
J

James Britt

Andrew said:
Mason Brown wrote:




All I could think of was querying the local gems, querying the remote
gems, then comparing the version numbers on the remote gems also in the
local repository. I've thrown a Ruby script together to do it, though it
lacks any elegance and has only had minimal testing:

More generally, is there a nice way to add customized behavior to one's
install of rubygems? Basically, plugins, such as could add to or alter
the default behavior?

I've poked around a bit, but not settled on a pleasing solution.
 
B

bbiker

What about using "gem update", it updates all the installed gems ... at
least for me it does.
 
B

bbiker

What about using "gem update", it updates all the installed gems ... at
least for me it does.
 
A

Andrew Hodgkinson

bbiker said:
What about using "gem update", it updates all the installed gems ... at
least for me it does.

Yes, but the OP wanted to see what gem *would* update, without actually
doing the update. It's a cautious (and IMHO wise) approach to upgrading
software rather than just updating and hoping nothing breaks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top