[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

List gem updates without installing?

Mason Brown

7/9/2006 1:43:00 AM

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

--
Posted via http://www.ruby-....

6 Answers

Andrew Hodgkinson

7/9/2006 10:57:00 PM

0

Mason Brown wrote:

> 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...

Is there a better way?

--
Posted via http://www.ruby-....

James Britt

7/9/2006 11:31:00 PM

0

Andrew Hodgkinson wrote:
> Mason Brown wrote:
>
>
>>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:

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.



--
James Britt

"Take eloquence and wring its neck."
- Paul Verlaine

Mason Brown

7/10/2006 2:48:00 AM

0

Andrew Hodgkinson wrote:
> Mason Brown wrote:
>
>> 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...
>
> Is there a better way?

That's exactly the type of thing I was looking for. Thanks for the
quick and awesome response.

Maybe the gem project would consider including this kind of
functionality as a future feature? They obviously already maintain
local and remote versions and compare them to determine if they need to
be upgraded.

Again, thanks!

-Mason


--
Posted via http://www.ruby-....

Bernard Kenik

7/15/2006 4:11:00 PM

0


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

Bernard Kenik

7/15/2006 4:11:00 PM

0


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

Andrew Hodgkinson

7/15/2006 4:23:00 PM

0

bbiker wrote:

> 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.

--
Posted via http://www.ruby-....