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
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
Andrew H. wrote:
Mason B. 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 B.
“Take eloquence and wring its neck.”
Andrew H. wrote:
Mason B. 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-update.rb
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
Mason B. 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-update.rb
Is there a better way?
What about using “gem update”, it updates all the installed gems … at
least for me it does.
What about using “gem update”, it updates all the installed gems … at
least for me it does.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs