From: "Aditya L." Date: 2008-12-19T00:04:59+09:00 Subject: Re: Gem update on Windows is broken? Hey Many thanks :D will try it now Charles Roper wrote: > 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 -- Posted via http://www.ruby-forum.com/.