From: Luis Lavena Date: 2010-07-05T22:35:11+09:00 Subject: Re: speeding up "gem1.9 install" during development On Jul 5, 2:58 am, "R.. Kumar 1.9.1 OSX" wrote: > During development, I keep running rake install. The following command > often takes a minute to execute, although the gem is created in a > second. > > gem1.9 install ../pkg/xxxx.gem > > Running --trace doesn't help at all since no details come after the > above line. > > Is there any way this can be speeded up. Do others use some other > alternative? "rake install", depending on the gem project you're working on (which you don't specify) might be running test or any other task prior the gem building and installation. Check the tasks dependencies of "rake install" using "rake -P" and see on which other tasks it depends. > Should I be testing and using my app from the development directory > itself as: > > ruby lib/x.rb instead of from the PATH. (Its a CLI program so it > installs in my path as well). > Run your tests, or do with ruby -Ilib bin/xxx > Does the number of dependencies slow down "gem install" ? Depending on how "rake install" works, it should be running with gem install --local, to avoid hitting the remote source index. -- Luis Lavena