From: Charles Roper Date: 2008-12-18T20:48:06+09:00 Subject: Re: Gem update on Windows is broken? Aditya L. wrote: > Charles Roper wrote: >> >> That didn't quite work, but this did: >> >> `gem.bat >> outdated`.split(/\n/).map{|z|z.scan(/^[^[:space:]]+/)}.flatten.each{|z| >> `gem.bat update #{z}`} >> > > sorry for being so slow... i am new with all these command line > how to apply the above code into command line? You need to paste it into a .rb file, then run the .rb file from the command line. I've attached the file I use. Just stick it in C:\ruby\bin (or some other location in your PATH) and then type update_gems from the command line. Hope that helps. Charles Attachments: http://www.ruby-forum.com/attachment/3080/update_gems.rb -- Posted via http://www.ruby-forum.com/.